X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Fcompare.html;h=b79fbf2f7709b103ee4d3a4aad99f54db6b7b643;hb=e98012ee0f5a9c9cf2315c1d203ad6ec1aeb5db5;hp=7a427a3c54a85999efc089102408641467fbb27a;hpb=240205f6304670a12672e38ee5323b31b46b59f1;p=imagemagick diff --git a/www/compare.html b/www/compare.html index 7a427a3c5..b79fbf2f7 100644 --- a/www/compare.html +++ b/www/compare.html @@ -3,20 +3,17 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - - - - - - ImageMagick: Command-line Tools: Compare + + + ImageMagick: Command-line Tools: Compare + + + - @@ -25,6 +22,12 @@ + + + + @@ -43,12 +46,25 @@ style="width: 114px; height: 118px; border: 0px; float: right;" /> -
+
+ +
+ Unix +
+ +
+ Windows +
+
@@ -76,9 +92,6 @@ -
-
- Unix -
- - -
@@ -125,30 +128,42 @@
+
- +
+ +
@@ -190,7 +205,7 @@

$magick> compare -metric PSNR rose.jpg reconstruct.jpg difference.png28.31

If the reconstructed image is a subimage of the image, the compare program returns the best match offset. 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 logo.png wizard.jpg similarity.gif85.05 (0.00129778) @ 353,157

+

$magick> compare -metric RMSE -subimage-search logo.png wizard.jpg similarity.gif85.05 (0.00129778) @ 353,157

You can find additional examples of using compare in Graphics from the Command Line. Further discussion is available in More Graphics from the Command Line and Examples of ImageMagick Usage.

@@ -259,7 +274,7 @@ transparent, extract, background, or shape the alpha channel -disimilarity-threshold value - maximum RMSE for (sub)image match (default 0.2) + maximum distortion for (sub)image match (default 0.2) @@ -367,6 +382,21 @@ transparent, extract, background, or shape the alpha channel width and height of image + + -subimage-search + search for subimage + + + + -synchronize + synchronize image to storage device + + + + -taint + mark the image as modified + + -transparent-color color transparent color @@ -393,10 +423,10 @@ transparent, extract, background, or shape the alpha channel
@@ -405,5 +435,16 @@ transparent, extract, background, or shape the alpha channel Contact the Wizards
+