I have a set of RAW photos that I’d like to generate a linear color MSPECs for/correct exposure/white balance. Each photo has an 18% gray standard in the photo. For some photos, the MSPEC is successfully created and looks normal. For most others, however, the program flashes through images that look like typical outputs to end up with entirely white channels. I’ve tried editing min/max values but this hasn’t solved the problem. Thoughts?
How weird! If you work out how the bug is reproducible then do let me know. Otherwise, you can use “plugins > micaToolbox > Image Visualisation > Set Max and Min”, then set the range from 0-100 and this will apply the range to all channels.
For working with R, I would first suggest saving the image as a 32-bit linear TIFF and see if that works. i.e. load you mspec as a “Linear Colour” image and try that. Note that these images will be BIG (hundreds of MB each). If R only accepts 8-bit TIFFs (i.e. 8 bits per channel, also called 24 bit), then it gets difficult using linear images because they can’t preserve the full dynamic range. Avoid using JPG format, though it’s not the end of the world if you need this – as long as you’re consistent it should be fine.
Sadly R’s image libraries seem very sketchy with lots of broken dependencies on Linux, so I tend to try to do everything in ImageJ (which is much faster for image manipulation).