recognize grayed image from coloured ones
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
IM Examples had a few image type comparsions, how greyscale an image is on one test, mostly black or white is another that is covered.
Determining the Type of an Image
http://www.cit.gu.edu.au/~anthony/graph ... #imagetype
Hmmm Color image...
Black and white....
Obviously the later is pure greyscale, while the former shows a 4% average non-grey
difference. This is however an average, and "compare" could be used instead to
get peak differences as apposed to an average difference.
However I would love to learn about the exact method you have come up with for typing images. Cartoon or Anime typing for example would be particularly useful to know about.
Please share what you have come up with.
Determining the Type of an Image
http://www.cit.gu.edu.au/~anthony/graph ... #imagetype
Hmmm Color image...
Code: Select all
convert capitol.jpg \( +clone -colorspace gray \) \
-compose difference -composite \
-colorspace gray -verbose info: | grep 'Mean:'
Code: Select all
Mean: 2658.12 (0.0405603)
Code: Select all
convert black-and-white-photographs-3003.jpg \( +clone -colorspace gray \) \
-compose difference -composite \
-colorspace gray -verbose info: | grep 'Mean:'
Code: Select all
Mean: 0 (0)
difference. This is however an average, and "compare" could be used instead to
get peak differences as apposed to an average difference.
However I would love to learn about the exact method you have come up with for typing images. Cartoon or Anime typing for example would be particularly useful to know about.
Please share what you have come up with.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/