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 » 2017-08-09T08:26:54-07:00

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: 22095
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2017-08-09T09:34:26-07:00

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 » 2017-08-09T11:32:35-07:00

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

Post Reply