compare rotated pictures

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
adelina
Posts: 18
Joined: 2011-08-03T04:01:45-07:00
Authentication code: 8675308

compare rotated pictures

Post by adelina »

I have rotated a picture with 90 degree and i want to compare it with the original picture and put the result in a .txt file.I have already found an aloghoritm named Surf, but don't know how to implamented in vbscript.Can you help me ,please?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: compare rotated pictures

Post by anthony »

a 90 degree rotation should be a perfect rotation. If you rotate an image 90 degrees, then rotate it back you should see NO DIFFERENCES.

Any differences that you do see will thus be the result of things such as
  • JPEG lossy compression, (that is reading and writing the image again with a image file format that will 'loose' some data.
  • Or as a result of cropping,
  • or special techniques (using JPEG lossless rotation when image does not match JPEG 'cell' size (generally multiples of 8 or 16 pixel)
Generally For any image format that is not JPEG, there should be no-differences. roate 90 then rotate back 90 and you should see no changes to the image!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply