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?".
Read in the image, make a clone whcih you greyscale. now compare the original image with the grayscale clone. any differences present is non grayscale color.
Numbers are relative to QuantumRange (which in my IM Q16 is 65535)
Note that both have a avg that is about 1/2 that of the peak.
With rose: being very colorful, while granite: only has about 5% color.
The a large difference than 1/2 between the average and peak, would-
indicate small patches of color. Thresholding the saturation channel
can generate a mask of the color area.
I have the latest version of IM 7.0.6. I am attempting to do same what Anthony did. i kept the blackslashes and removed the line brake from below.
"
Saturation Test
convert rose: granite: \
-colorspace HSB -channel G -separate +channel \
-format 'avg=%[mean] peak=%[maximum]' info:
I have the latest version of IM 7.0.6. I am attempting to do same what Anthony did. i kept the blackslashes and removed the line brake from below.
"
Saturation Test
convert rose: granite: \
-colorspace HSB -channel G -separate +channel \
-format 'avg=%[mean] peak=%[maximum]' info:
Thank you it worked however my grayscale image has some colors in it and i will have to go on another rout. Is there a way to identify like Image generated out of a Patent software vs actual picture taken from camera ? i have no image property to relay on.
Thank you that works. Any way to tell if its graphic vs picture ? Unfortunately with threshold i am still getting color images in to gray scale because they only have three colors .
On more question . do you know how would i go about implementing "convert mostly_gray.png -colorspace HCL -channel green -separate +channel -format "%[fx:100*mean]\n" info:" in c# ?