recommended Gaussian blur sigma for halving image dimensions

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

recommended Gaussian blur sigma for halving image dimensions

Post by NicolasRobidoux »

What is the "standard" recommendation (if there is any) for the gaussian blur sigma to be used to reduce an image from, say, 512x512 down to 256x256?

(I'll check Turkowski but figured there may be someone on this list with a better recommendation.)
NicolasRobidoux
Posts: 1944
Joined: 2010-08-28T11:16:00-07:00
Authentication code: 8675308
Location: Montreal, Canada

Re: recommended Gaussian blur sigma for halving image dimens

Post by NicolasRobidoux »

I think I answered my own question by reading Ken Turkowski's Filters for Common Resampling Tasks:

For halving, if you don't filter further, it depens on the phase.

sigma = 1/sqrt(2) if the phase is 0.

Possibly sigma = 1/2 if the phase is .5.

(Of course, I'm stll willing to read opinions.)
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: recommended Gaussian blur sigma for halving image dimens

Post by anthony »

You could also simply resize the image with a -filter Gaussian

Of course if you still want to define the sigma you can do that (with a recent version of IM)
http://www.imagemagick.org/Usage/resize/#filter_sigma

But even if your IM version is not recent enough, you can still modify the sigma by using the blur expert setting
http://www.imagemagick.org/Usage/resize/#filter_blur
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply