How to give feathering action for images.

Hi experts,

I am working on delphi 7 (pascal). I am working with image processing application. I am copying group of pixels in the image to some other area in the same  image.How to give feathering for pasted part of image, so that it will not look like pasted one.

Regards
Inampudi
inampudi1Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CodedKConnect With a Mentor Commented:
The code from compuphase is a fast robust algorithm, its not perfect.
I didn't test it but i thought it does what it says.

Did you check ImageEn component ? Its as professional it gets.

Also check this :
http://www.koders.com/delphi/fidFB9B1BC7F3599AAF4F172E0C065D441CB1F93441.aspx'
Image.pas
>>    179  :  procedure drawDisk(const bitmap: PBitmap32; const CenterX, CenterY, radius: Single; const Color: TColor32; Feather: Single = 0);

I hope this will give you a boost. :)
0
 
CodedKCommented:
Hi Inampudi1,

Check this out :
http://efg2.com/Lab/ImageProcessing/Feathering.htm

Full source with a demo and step by step guides of how to accomplish a feathering effect.
Demo & source :  http://efg2.com/Lab/ImageProcessing/Feathering.zip

Hope this helps.
0
 
inampudi1Author Commented:
Hi,

this allready I tried , but it is very slow ....is their any fast algorithms.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
inampudi1Author Commented:
Hi,


this all ready I tried. it is very slow, since we need to apply mask for each region. is their any alternative way.

Regards

inampudi
0
 
CodedKCommented:
This should be fast enough :
http://www.compuphase.com/smooth.htm#FILTERMATRIX

The sample code is in C but its extremely easy to convert. Give it a shot.
0
 
CodedKCommented:
Also try ImageEn component :
http://www.hi-components.com/nimageen.asp

Download :
http://www.hi-components.com/ndownloads.asp

Flexible image area selections (rectangle, ellipse, polygon and magicwand) including "soft" selection
(you specify the selection intensity from 0 to 100%) and feathering selections.


0
 
inampudi1Author Commented:
Hi
I used the code in the link  http://www.compuphase.com/smooth.htm#FILTERMATRIX , but it is not giving good feathering effect, it is looking like a disturbed image. How can I do it as showed  in the attached file.

feathering.bmp
0
 
inampudi1Author Commented:
Hi,

in the above link ,he is saying " Bitmap must be a 256 color (pf8bit) palette bitmap" . But in my application  image is 24bit how can use this function.
0
 
CodedKCommented:
I didn't know that inampudi1.
I don't have any other codes in mind...

You can give ImageEn a try or wait for another expert input...
If i find anything else i will post back :)

Good luck.
0
 
inampudi1Author Commented:
Hi,
 

   any experts find the new solution means pl give me.
0
 
inampudi1Author Commented:
Hi

I changed egf2 algoritham and did the feathering now it is ok.
0
All Courses

From novice to tech pro — start learning today.