Hello imageJ people,
I may miss an important point here and I couldn't find an answer anywhere.
Problem
Let's say I have a 32-bit grayscale image and I color an even region using the floodFill(x0,y0) command and then get a pixel intensity using getPixel(x1,y1), where both P(x0,y0) and P(x1,y1) are part of the previously mentioned region. With setForegroundColor(R,G,B) I define a fill color, where R,G,B in [0,255].
Code:
setForegroundColor(R,G,B);
floodFill(x0,y0);
getPixel(x1,y1);
how do I know what the getPixel() function will return for any pixel inside this region? I mean is there an easy way to calculate the relation between f(R,G,B,imageType) and the getPixel() return value for it in general?
Maybe something like:
f(R,G,B,imageType) = n
n = return value of getPixel()
R,G,B = the chosen floodFill values
imageType = {8-bit, 16-bit, 32-bit, RGB Color}
I'm well aware that different RGB values would return the same getPixel() value multiple times in grayscale images, therefore it's a unidirectional relation.