Use of FilterTypes in ImageMagick.?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
mbatra
Posts: 18
Joined: 2012-05-29T08:37:10-07:00
Authentication code: 13

Use of FilterTypes in ImageMagick.?

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Use of FilterTypes in ImageMagick.?

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Use of FilterTypes in ImageMagick.?

Post 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.
Post Reply