Set color threshold
Posted by davek604 on Nov 05, 2015; 10:32am
URL: http://imagej.273.s1.nabble.com/Set-color-threshold-tp5014850.html
Hello
I am writing a plugin where I have an image that has been constructed from 2 binary masks. The masks were coloured green (000,255,00) and red (255,000,000) so where there is overlap I get yellow (255,255,000) I want to automatically set the RGB threshold to select the yellow but I can find no command in the API for doing this on colour images. For grey scale I use the command IJ.setThreshold(imp,lowThresholdValue,HighThresholdValue)
Unfortunately I can't find a colour version of this command. Any help greatly appreciated.
Regards
David