Knowing if RGB images are almost BW/grayscale.

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?".
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Knowing if RGB images are almost BW/grayscale.

Post by fmw42 »

I picked my threshold of 4% just based upon a good visual threshold of the one yes_90a.jpg image. I have not experimented either.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Knowing if RGB images are almost BW/grayscale.

Post by fmw42 »

I think a larger test/training set will be needed to pin down the best threshold value or to see if either method holds up (or what percent failure one gets on a larger test set).
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Knowing if RGB images are almost BW/grayscale.

Post by snibgo »

Yes.

I notice that the two methods, although they both distinguish between "yes" and "no", have different orders of images within each set. This suggests that either method might have difficulties with a larger set of images.
snibgo's IM pages: im.snibgo.com
Post Reply