Login  Register

Getting color statistics from multiple ROI in an image

Posted by Cmhulbert on May 06, 2016; 3:30pm
URL: http://imagej.273.s1.nabble.com/Getting-color-statistics-from-multiple-ROI-in-an-image-tp5016337.html

Hey all,

I have an image that I have segmented and it now is an RGB tiff image with overlayed ROIs. Most images have around 50 ROIs. I know how to get color statistics using the Color Histogram tool, but I have had little luck writing a script to utilize this. Namely, I don't know how to save the table you get after clicking "list" on the Color Histogram window within a script. I can run Color Histogram from the script, but am having a hard time getting the Color Histogram jar to import directly, so I could access its showList command.

Anyway, I'm not sure that is even the best way to go about it. I know there is a Color processor class, but I'm not sure how to use it from an irregular shaped ROI.

I should note that I don't just want RGB mean values, but the RGB values in each area, such as Color Histogram provides if you click "list" in the window. Any help would be great!

Sincerely,
Caleb