github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/share/doc/GraphicsMagick/www/compare.html (about) 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 2 "http://www.w3.org/TR/html4/loose.dtd"> 3 <html> 4 <head> 5 <meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=us-ascii"> 6 <title>GraphicsMagick GM Utility</title> 7 <style type=text/css> 8 <!-- 9 @page { size: 8.5in 11in } 10 TD P { color: #000000; font-family: "Verdana", "Arial", "Helvetica", sans-serif; font-size: 12pt } 11 P { color: #000000; font-family: "Verdana", "Arial", "Helvetica", sans-serif; font-size: 12pt } 12 A:link { color: #00B04F } 13 A:visited { color: #007B37 } 14 --> 15 </style> 16 17 </head> 18 <body LANG="en-US" TEXT="#000000" LINK="#00B04F" VLINK="#007B37" BGCOLOR="#ffffff"> 19 <a name="top"></a> 20 <table border=0 cellpadding=10 cellspacing=0 style="margin-top:-17px" width="100%"><tr><td> 21 <br> <br> 22 <table BORDER=0 WIDTH="100%"> 23 <tr> 24 <td ALIGN=LEFT bgcolor="#FFFFFF"><img 25 SRC="images/right_triangle.png" ALT=">" BORDER=0 26 height=14 width=15><b><font face="Helvetica, Arial"><font 27 color="#00B04F"><font size="+1"> 28 <a NAME="compare"></a>gm compare 29 </font></font></font></b></td></tr></table> 30 <table width="94%" border="0" cellspacing="0" cellpadding="8"> 31 <tr><td width="3%"><br></td><td> 32 <table BORDER=0 WIDTH="100%"> 33 <tr> 34 <td ALIGN=LEFT bgcolor="#FFFFFF"><img 35 SRC="images/right_triangle.png" ALT=">" BORDER=0 36 height=14 width=15><b><font face="Helvetica, Arial"><font 37 color="#00B04F"><font size="+1"> 38 <a NAME="comp-top"></a>NAME 39 </font></font></font></b></td></tr></table> 40 <table width="94%" border="0" cellspacing="0" cellpadding="8"> 41 <tr><td width="3%"><br></td><td> 42 compare - compare two images. 43 </td></tr></table> 44 <table BORDER=0 WIDTH="100%"> 45 <tr> 46 <td ALIGN=LEFT bgcolor="#FFFFFF"><img 47 SRC="images/right_triangle.png" ALT=">" BORDER=0 48 height=14 width=15><b><font face="Helvetica, Arial"><font 49 color="#00B04F"><font size="+1"> 50 <a NAME="comp-contents"></a>Contents 51 </font></font></font></b></td></tr></table> 52 <table width="94%" border="0" cellspacing="0" cellpadding="8"> 53 <tr><td width="3%"><br></td><td> 54 <dl> 55 <dt> 56 <a href="#comp-syno">Synopsis</a> 57 </dt> 58 <dt> 59 <a href="#comp-desc">Description</a> 60 </dt> 61 <dt> 62 <a href="#comp-exam">Examples</a> 63 </dt> 64 <dt> 65 <a href="#comp-opti">Options</a> 66 </dt> 67 </dl> 68 </td></tr></table> 69 <table BORDER=0 WIDTH="100%"> 70 <tr> 71 <td ALIGN=LEFT bgcolor="#FFFFFF"><img 72 SRC="images/right_triangle.png" ALT=">" BORDER=0 73 height=14 width=15><b><font face="Helvetica, Arial"><font 74 color="#00B04F"><font size="+1"> 75 <a NAME="comp-syno"></a>Synopsis 76 </font></font></font></b></td></tr></table> 77 <table width="94%" border="0" cellspacing="0" cellpadding="8"> 78 <tr><td width="3%"><br></td><td> 79 <p> 80 <strong>gm compare</strong> <strong>[</strong> <em>options</em> <strong>... ]</strong> <em>reference-image</em> 81 <strong>[</strong> <em>options</em> <strong>... ]</strong> <em>compare-image</em> 82 <strong>[</strong> <em>options</em> <strong>... ]</strong> 83 </td></tr></table> 84 <table BORDER=0 WIDTH="100%"> 85 <tr> 86 <td ALIGN=LEFT bgcolor="#FFFFFF"><img 87 SRC="images/right_triangle.png" ALT=">" BORDER=0 88 height=14 width=15><b><font face="Helvetica, Arial"><font 89 color="#00B04F"><font size="+1"> 90 <a NAME="comp-desc"></a>Description 91 </font></font></font></b></td></tr></table> 92 <table width="94%" border="0" cellspacing="0" cellpadding="8"> 93 <tr><td width="3%"><br></td><td> 94 <p> 95 <strong>compare</strong> compares two similar images using a specified statistical 96 method (see <strong>-metric</strong>) and/or by writing a difference image 97 (<strong>-file</strong>), with the altered pixels annotated using a specified 98 method (see <strong>-highlight-style</strong>) and color (see 99 <strong>-highlight-color</strong>). <p><em>Reference-image</em> is the original 100 image and <em>compare-image</em> is the (possibly) altered version, which 101 should have the same dimensions as <em>reference-image</em>. 102 </td></tr></table> 103 <table BORDER=0 WIDTH="100%"> 104 <tr> 105 <td ALIGN=LEFT bgcolor="#FFFFFF"><img 106 SRC="images/right_triangle.png" ALT=">" BORDER=0 107 height=14 width=15><b><font face="Helvetica, Arial"><font 108 color="#00B04F"><font size="+1"> 109 <a NAME="comp-exam"></a>Examples 110 </font></font></font></b></td></tr></table> 111 <table width="94%" border="0" cellspacing="0" cellpadding="8"> 112 <tr><td width="3%"><br></td><td> 113 <p> 114 To compare two images using Mean Square Error (MSE) statistical analysis 115 use: 116 <pre> 117 compare -metric mse original.miff compare.miff 118 </pre> 119 <p> 120 To create an annotated difference image use: 121 <pre> 122 compare -highlight-style assign -highlight-color purple -file diff.miff original.miff compare.miff 123 </pre> 124 </td></tr></table> 125 <p> 126 <i><a href="#top">Back to Contents</a></i> 127 </p> 128 <table BORDER=0 WIDTH="100%"> 129 <tr> 130 <td ALIGN=LEFT bgcolor="#FFFFFF"><img 131 SRC="images/right_triangle.png" ALT=">" BORDER=0 132 height=14 width=15><b><font face="Helvetica, Arial"><font 133 color="#00B04F"><font size="+1"> 134 <a NAME="comp-opti"></a>Options 135 </font></font></font></b></td></tr></table> 136 <table width="94%" border="0" cellspacing="0" cellpadding="8"> 137 <tr><td width="3%"><br></td><td> 138 <p> 139 Options are processed in command line order. Any option you specify on 140 the command line remains in effect only for the image that follows. All 141 options are reset to their default values after each image is read. 142 <p> 143 For a more detailed description of each option, see 144 Options, above. 145 <a href="GraphicsMagick.html"><em>GraphicsMagick(1)</em></a>. 146 <br> <br> 147 <table BORDER=0 WIDTH="94%"> 148 <tr> 149 <td width="3%"><br></td> 150 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 151 <img SRC="images/right_triangle_option.png" 152 ALT=">" BORDER=0 height=14 153 width=15><b><font face="Helvetica, Arial" 154 ><font color="#00B04F"><font size="+1"> 155 <a href="GraphicsMagick.html#details-authenticate">-authenticate</a> <i><string></i> 156 </font></font></font></b></td></tr></table> 157 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>decrypt image with this password</td></tr></table> 158 <table BORDER=0 WIDTH="94%"> 159 <tr> 160 <td width="3%"><br></td> 161 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 162 <img SRC="images/right_triangle_option.png" 163 ALT=">" BORDER=0 height=14 164 width=15><b><font face="Helvetica, Arial" 165 ><font color="#00B04F"><font size="+1"> 166 <a href="GraphicsMagick.html#details-colorspace">-colorspace</a> <i><value></i> 167 </font></font></font></b></td></tr></table> 168 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>the type of colorspace</td></tr></table> 169 <table BORDER=0 WIDTH="94%"> 170 <tr> 171 <td width="3%"><br></td> 172 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 173 <img SRC="images/right_triangle_option.png" 174 ALT=">" BORDER=0 height=14 175 width=15><b><font face="Helvetica, Arial" 176 ><font color="#00B04F"><font size="+1"> 177 -debug <i><events></i> 178 </font></font></font></b></td></tr></table> 179 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>enable debug printout</td></tr></table> 180 <table BORDER=0 WIDTH="94%"> 181 <tr> 182 <td width="3%"><br></td> 183 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 184 <img SRC="images/right_triangle_option.png" 185 ALT=">" BORDER=0 height=14 186 width=15><b><font face="Helvetica, Arial" 187 ><font color="#00B04F"><font size="+1"> 188 <a href="GraphicsMagick.html#details-define">-define</a> <i><key></i>{<i>=<value></i>}<i>,...</i> 189 </font></font></font></b></td></tr></table> 190 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>add coder/decoder specific options</td></tr></table> 191 <table BORDER=0 WIDTH="94%"> 192 <tr> 193 <td width="3%"><br></td> 194 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 195 <img SRC="images/right_triangle_option.png" 196 ALT=">" BORDER=0 height=14 197 width=15><b><font face="Helvetica, Arial" 198 ><font color="#00B04F"><font size="+1"> 199 <a href="GraphicsMagick.html#details-density">-density</a> <i><width>x<height></i> 200 </font></font></font></b></td></tr></table> 201 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>horizontal and vertical resolution in pixels of the image</td></tr></table> 202 <table BORDER=0 WIDTH="94%"> 203 <tr> 204 <td width="3%"><br></td> 205 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 206 <img SRC="images/right_triangle_option.png" 207 ALT=">" BORDER=0 height=14 208 width=15><b><font face="Helvetica, Arial" 209 ><font color="#00B04F"><font size="+1"> 210 <a href="GraphicsMagick.html#details-depth">-depth</a> <i><value></i> 211 </font></font></font></b></td></tr></table> 212 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>depth of the image</td></tr></table> 213 <table BORDER=0 WIDTH="94%"> 214 <tr> 215 <td width="3%"><br></td> 216 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 217 <img SRC="images/right_triangle_option.png" 218 ALT=">" BORDER=0 height=14 219 width=15><b><font face="Helvetica, Arial" 220 ><font color="#00B04F"><font size="+1"> 221 <a href="GraphicsMagick.html#details-display">-display</a> <i><host:display[.screen]></i> 222 </font></font></font></b></td></tr></table> 223 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>specifies the X server to contact</td></tr></table> 224 <table BORDER=0 WIDTH="94%"> 225 <tr> 226 <td width="3%"><br></td> 227 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 228 <img SRC="images/right_triangle_option.png" 229 ALT=">" BORDER=0 height=14 230 width=15><b><font face="Helvetica, Arial" 231 ><font color="#00B04F"><font size="+1"> 232 <a href="GraphicsMagick.html#details-endian">-endian</a> <i><type></i> 233 </font></font></font></b></td></tr></table> 234 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>specify endianness (MSB, LSB, or Native) of image</td></tr></table> 235 <table BORDER=0 WIDTH="94%"> 236 <tr> 237 <td width="3%"><br></td> 238 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 239 <img SRC="images/right_triangle_option.png" 240 ALT=">" BORDER=0 height=14 241 width=15><b><font face="Helvetica, Arial" 242 ><font color="#00B04F"><font size="+1"> 243 <a href="GraphicsMagick.html#details-file">-file</a> <i><filename></i> 244 </font></font></font></b></td></tr></table> 245 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>write annotated difference image to file</td></tr></table> 246 <table BORDER=0 WIDTH="94%"> 247 <tr> 248 <td width="3%"><br></td> 249 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 250 <img SRC="images/right_triangle_option.png" 251 ALT=">" BORDER=0 height=14 252 width=15><b><font face="Helvetica, Arial" 253 ><font color="#00B04F"><font size="+1"> 254 -help 255 </font></font></font></b></td></tr></table> 256 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>print usage instructions</td></tr></table> 257 <table BORDER=0 WIDTH="94%"> 258 <tr> 259 <td width="3%"><br></td> 260 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 261 <img SRC="images/right_triangle_option.png" 262 ALT=">" BORDER=0 height=14 263 width=15><b><font face="Helvetica, Arial" 264 ><font color="#00B04F"><font size="+1"> 265 <a href="GraphicsMagick.html#details-highlight-color">-highlight-color</a> <i><color></i> 266 </font></font></font></b></td></tr></table> 267 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>pixel annotation color</td></tr></table> 268 <table BORDER=0 WIDTH="94%"> 269 <tr> 270 <td width="3%"><br></td> 271 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 272 <img SRC="images/right_triangle_option.png" 273 ALT=">" BORDER=0 height=14 274 width=15><b><font face="Helvetica, Arial" 275 ><font color="#00B04F"><font size="+1"> 276 <a href="GraphicsMagick.html#details-highlight-style">-highlight-style</a> <i><style></i> 277 </font></font></font></b></td></tr></table> 278 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>pixel annotation style</td></tr></table> 279 <table BORDER=0 WIDTH="94%"> 280 <tr> 281 <td width="3%"><br></td> 282 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 283 <img SRC="images/right_triangle_option.png" 284 ALT=">" BORDER=0 height=14 285 width=15><b><font face="Helvetica, Arial" 286 ><font color="#00B04F"><font size="+1"> 287 <a href="GraphicsMagick.html#details-interlace">-interlace</a> <i><type></i> 288 </font></font></font></b></td></tr></table> 289 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>the type of interlacing scheme</td></tr></table> 290 <table BORDER=0 WIDTH="94%"> 291 <tr> 292 <td width="3%"><br></td> 293 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 294 <img SRC="images/right_triangle_option.png" 295 ALT=">" BORDER=0 height=14 296 width=15><b><font face="Helvetica, Arial" 297 ><font color="#00B04F"><font size="+1"> 298 <a href="GraphicsMagick.html#details-limit">-limit</a> <i><type> <value></i> 299 </font></font></font></b></td></tr></table> 300 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Disk, File, Map, Memory, Pixels, Width, Height or Threads resource limit</td></tr></table> 301 <table BORDER=0 WIDTH="94%"> 302 <tr> 303 <td width="3%"><br></td> 304 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 305 <img SRC="images/right_triangle_option.png" 306 ALT=">" BORDER=0 height=14 307 width=15><b><font face="Helvetica, Arial" 308 ><font color="#00B04F"><font size="+1"> 309 <a href="GraphicsMagick.html#details-log">-log</a> <i><string></i> 310 </font></font></font></b></td></tr></table> 311 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>Specify format for debug log</td></tr></table> 312 <table BORDER=0 WIDTH="94%"> 313 <tr> 314 <td width="3%"><br></td> 315 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 316 <img SRC="images/right_triangle_option.png" 317 ALT=">" BORDER=0 height=14 318 width=15><b><font face="Helvetica, Arial" 319 ><font color="#00B04F"><font size="+1"> 320 <a href="GraphicsMagick.html#details-matte">-matte</a> 321 </font></font></font></b></td></tr></table> 322 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>store matte channel if the image has one</td></tr></table> 323 <table BORDER=0 WIDTH="94%"> 324 <tr> 325 <td width="3%"><br></td> 326 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 327 <img SRC="images/right_triangle_option.png" 328 ALT=">" BORDER=0 height=14 329 width=15><b><font face="Helvetica, Arial" 330 ><font color="#00B04F"><font size="+1"> 331 <a href="GraphicsMagick.html#details-maximum-error">-maximum-error</a> <i><limit></i> 332 </font></font></font></b></td></tr></table> 333 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>specifies the maximum amount of total image error</td></tr></table> 334 <table BORDER=0 WIDTH="94%"> 335 <tr> 336 <td width="3%"><br></td> 337 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 338 <img SRC="images/right_triangle_option.png" 339 ALT=">" BORDER=0 height=14 340 width=15><b><font face="Helvetica, Arial" 341 ><font color="#00B04F"><font size="+1"> 342 -metric <i><metric></i> 343 </font></font></font></b></td></tr></table> 344 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>comparison metric (MAE, MSE, PAE, PSNR, RMSE)</td></tr></table> 345 <table BORDER=0 WIDTH="94%"> 346 <tr> 347 <td width="3%"><br></td> 348 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 349 <img SRC="images/right_triangle_option.png" 350 ALT=">" BORDER=0 height=14 351 width=15><b><font face="Helvetica, Arial" 352 ><font color="#00B04F"><font size="+1"> 353 -monitor 354 </font></font></font></b></td></tr></table> 355 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>show progress indication</td></tr></table> 356 <table BORDER=0 WIDTH="94%"> 357 <tr> 358 <td width="3%"><br></td> 359 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 360 <img SRC="images/right_triangle_option.png" 361 ALT=">" BORDER=0 height=14 362 width=15><b><font face="Helvetica, Arial" 363 ><font color="#00B04F"><font size="+1"> 364 <a href="GraphicsMagick.html#details-sampling-factor">-sampling-factor</a> <i><horizontal_factor>x<vertical_factor></i> 365 </font></font></font></b></td></tr></table> 366 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>chroma subsampling factors</td></tr></table> 367 <table BORDER=0 WIDTH="94%"> 368 <tr> 369 <td width="3%"><br></td> 370 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 371 <img SRC="images/right_triangle_option.png" 372 ALT=">" BORDER=0 height=14 373 width=15><b><font face="Helvetica, Arial" 374 ><font color="#00B04F"><font size="+1"> 375 <a href="GraphicsMagick.html#details-size">-size</a> <i><width>x<height></i>{<i>+offset</i>}<i></i> 376 </font></font></font></b></td></tr></table> 377 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>width and height of the image</td></tr></table> 378 <table BORDER=0 WIDTH="94%"> 379 <tr> 380 <td width="3%"><br></td> 381 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 382 <img SRC="images/right_triangle_option.png" 383 ALT=">" BORDER=0 height=14 384 width=15><b><font face="Helvetica, Arial" 385 ><font color="#00B04F"><font size="+1"> 386 <a href="GraphicsMagick.html#details-type">-type</a> <i><type></i> 387 </font></font></font></b></td></tr></table> 388 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>the image type</td></tr></table> 389 <table BORDER=0 WIDTH="94%"> 390 <tr> 391 <td width="3%"><br></td> 392 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 393 <img SRC="images/right_triangle_option.png" 394 ALT=">" BORDER=0 height=14 395 width=15><b><font face="Helvetica, Arial" 396 ><font color="#00B04F"><font size="+1"> 397 <a href="GraphicsMagick.html#details-verbose">-verbose</a> 398 </font></font></font></b></td></tr></table> 399 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>print detailed information about the image</td></tr></table> 400 <table BORDER=0 WIDTH="94%"> 401 <tr> 402 <td width="3%"><br></td> 403 <td ALIGN=LEFT BGCOLOR="#FFFFFF"> 404 <img SRC="images/right_triangle_option.png" 405 ALT=">" BORDER=0 height=14 406 width=15><b><font face="Helvetica, Arial" 407 ><font color="#00B04F"><font size="+1"> 408 <a href="GraphicsMagick.html#details-version">-version</a> 409 </font></font></font></b></td></tr></table> 410 <table width="90%" border="0" cellspacing="0" cellpadding="8"> <tr><td width="6%"><br></td><td>print GraphicsMagick version string</td></tr></table> 411 <p> 412 For a more detailed description of each option, see 413 Options, above. 414 <a href="GraphicsMagick.html"><em>GraphicsMagick(1)</em></a>. 415 <br> <br> 416 </td></tr></table> 417 <p> 418 <i><a href="#top">Back to Contents</a></i> 419 </p>