How to identify a grayscale image (with threshold)?

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?".
divptl
Posts: 20
Joined: 2017-08-07T14:00:24-07:00
Authentication code: 1151

Re: How to identify a grayscale image (with threshold)?

Post by divptl »

is it possible to do the same thing using border of the picture say 10% of the image would be border and use that to check for % of color.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to identify a grayscale image (with threshold)?

Post by fmw42 »

crop 10% from each border and check that cropped image with the saturation test described earlier. See http://www.imagemagick.org/Usage/crop/#crop_gravity
divptl
Posts: 20
Joined: 2017-08-07T14:00:24-07:00
Authentication code: 1151

Re: How to identify a grayscale image (with threshold)?

Post by divptl »

will keep in mind. sorry i am new to posting.
Post Reply