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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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
CodedKCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.