Unusual code to check for greyscale image?

I'm looking at some old code that uses dcraw under the covers using file i/o redirection.

The line in question looks like:

m_bColorRAW = is_foveon || !filters;

which is about as clear as mud to me!!!

later on the code then uses this boolean set (or not set) document mode and also sets option -4:

if (!m_bColorRAW)
{
// Document mode (i.e. don't demosaic the image in libraw).
// so set dcraw option "-d "
:
};

Do you think you could clarify for me what this code is really doing?

Thanks
David

Forums: