I have a RGB image. I want to compute the Optical Density of a region of that image.
I have converted the Image to grayscale and I know the formula for Optical Density is log(1/illumination).
My procedure is to use roiploy to specify the ROI. But however this is not working and I never get a uniform answer.
What is the best way to do this? Should I use a mask? Will correlation be of any help between the mask and the original image?