![]() You can find additional examples of using compare in Examples of ImageMagick Usage. In addition, it returns a similarity image such that an exact match location is completely white and if none of the pixels match, black, otherwise some gray level in-between: $ magick compare -metric RMSE -subimage-search logo.png wizard.jpg similarity.tif If the reconstructed image is a subimage of the image, the compare program returns the best match offset. Or, if you just want the overall image distortion, use this command: $ magick compare -metric PSNR rose.jpg reconstruct.jpg difference.png Or, if you just want the red channel distortion, use this command: $ magick compare -channel red -metric PSNR rose.jpg reconstruct.jpg difference.png In addition to the visual interpretation of the difference in an image and its reconstruction, we report a mathematical measure of the difference: $ magick compare -verbose -metric mae rose.jpg reconstruct.jpg difference.png ![]() The red areas of the difference image emphasizes (highlight) pixels that are affected by the image sharpening, whereas white de-emphasizes (lowlight) pixels that are untouched by the sharpening process. Magick compare -compose src rose.jpg reconstruct.jpg difference.png Magick compare rose.jpg reconstruct.jpg difference.png To get started, lets compare an image to one thats been sharpened: magick rose.jpg -sharpen 0x1 reconstruct.jpg ![]() We list a few examples of the compare command here to illustrate its usefulness and ease of use. See Command Line Processing for advice on how to structure your compare command or see below for example usages of the command. Use the compare program to mathematically and visually annotate the difference between an image and its reconstruction.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |