How do I get an MTF for the gaussian blur operation?

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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

ImageMagick does not return an MTF but you can get other types of metrics with the compare program. It returns AE, MAE, MSE, PAE, PSNR, or RMSE.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Ok, here's the code we use for gaussian blur:
  • alpha=exp(-((double) u*u+v*v)/(2.0*sigma*sigma));
    kernel=(double) (alpha/(2.0*MagickPI*sigma*sigma));
The kernel width is 2 * radius +1.
Post Reply