Mobile app version of vmapp.org
Login or Join
Kevin459

: How to resample an image with lanczos-3 filter using imagemagick? I'm not a pro in imagemagick. I have read documentation, but it has no use if you could not understand clearly how it works.

@Kevin459

Posted in: #Effects #Filter #Imagemagick

I'm not a pro in imagemagick. I have read documentation, but it has no use if you could not understand clearly how it works. I read in the wikipedia about lanczos filter and would like to try it for image resampling. So how could I use imagemagick to resample an image with lanczos filter in its purest form, without any pre- and post- processing?

From wikipedia reading and from sources that was published in the footnote links, I made an assumption that applying lanczos filter is just like any other kernel convolution and resampling in the middle is the only difference.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kevin459

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cugini998

This question is somehow wrong in many ways but warrants an answer nonetheless to get you onto the right track.

There is no image when you have no post processing of the Lanczos filter. See the filter just turns the image into a continuous function. This in itself does nothing visible as this function needs to be used somehow to mean something



Image 1: Filter makes discrete continious

In order for it to be an image again something has to be made to the continuous function to again turn it discrete. So you need to re-scale or otherwise transform and re-sample for this to make any sense. In essence make a new image, but without transform you just end with same image or if you miss-configure the filter you get a interesting blur.



Image 2: the process for a scaling re-sample.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme