Page 1 of 1

Use of FilterTypes in ImageMagick.?

Posted: 2012-08-20T03:46:42-07:00
by mbatra
Hi,

I am using Magick++ for my MFC application. I am not able to understand the use of FilterTypes ( file - resample.h ) in ImageMagick.
I have used one of the filter types on an image but saw no effect of that filter. I loaded an image using Image class. Then applied one of the filter types on that Image. I didn't see any effect of that filter on that Image.

Can anybody tell me where to use these filter types.?
For example (CubicFilter, LagrangeFilter, LanczosFilter etc..) what change these filters will do on an Image.?

Or

If somebody has used any of the filter types, plz provide the sample code for the same.

Any help will be appreciated.


Thanx & Regards,
Mbatra

Re: Use of FilterTypes in ImageMagick.?

Posted: 2012-09-03T22:11:10-07:00
by anthony
Filters are used when doing general resizing or distortion of images. Basically when you need to resample the image with scale changes.

See IM examples, Resize which goes into filters extensively from the command line.
http://www.imagemagick.org/Usage/resize/#filter

Re: Use of FilterTypes in ImageMagick.?

Posted: 2012-09-04T00:03:39-07:00
by Bonzo
I have some code ( php ) and examples of filter use here: http://www.rubblewebs.co.uk/imagemagick ... filter.php although I can not see much difference in my examples! I should probably crop a section out to see the effect more.