Link to home
Start Free TrialLog in
Avatar of inampudi1
inampudi1

asked on

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
Avatar of CodedK
CodedK
Flag of Greece image

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.
Avatar of inampudi1
inampudi1

ASKER

Hi,

this allready I tried , but it is very slow ....is their any fast algorithms.
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
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.
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.


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
ASKER CERTIFIED SOLUTION
Avatar of CodedK
CodedK
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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.
Hi,
 

   any experts find the new solution means pl give me.
Hi

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