How to assign a class/group to multiple ROI in the results window?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to assign a class/group to multiple ROI in the results window?

JPMARECHAL
Dear ImageJ community

I am running the ROI Manager with 168 ROI in 1 images
I am only interested in the %Area result of my pixels in each ROI.

I then use the ROI color coder plugin to assign color to each ROI %Area results with a dedicated LUT.

What I am looking for is a macro that would help to assign a class to each %Area ROI in the results table:
ROI    AREA     %AREA
41 5625 0
42 5625 0.36
43 5625 0.07
44 5625 0
45 5625 0
46 5625 0
47   5625 2.68
48   5625 0.41
49 5625 0
50 5625 0.82
51 5625 0.07
52 5625 0


I want to create 5 classes : 0-0.09 (class1); 0.1-0.5 (class2) ; 0.6-1 (class3) ; 1.1-2 (class4); >2 (class5)
and reassign each ROI to a class

ROI    AREA     %AREA     Class
41 5625 0            class1
42 5625 0.36       class2
43 5625 0.07       class1
44 5625 0            etc...
45 5625 0
46 5625 0
47   5625 2.68
48   5625 0.41
49 5625 0
50 5625 0.82
51 5625 0.07
52 5625 0

Then I want to use the ROI color Coder on the "class" variable with a dedicated LUT with 5 colors.

Thanks for your help
JP