Combine and measure all ROIs in each slice of a stack

Posted by ksexton-2 on
URL: http://imagej.273.s1.nabble.com/Combine-and-measure-all-ROIs-in-each-slice-of-a-stack-tp5020725.html

Hello,I have been looking at this forum for a few days to find solution for
this and haven't been able to get anything to work for me, though I may have
missed a pertinent post somewhere.
/AIM/
I am processing CT images in order to get the body outline, measure the area
within this, get the mean pixel (HU) value within the ROI and get the
dimensions of the bounding rectangle of the ROI for every slice. This has
been successful so far and I am able to get the results I want. However, I
have run into an issue with a recent image.
/ISSUE/
Towards the inferior of the CT image, the legs come in and a ROI is drawn
for each leg on the slice. These are then measured separately which is not
what I want. I would like to count the number of ROIs in a slice, combine
these and get the area, mean pixel value and bounding rectangle dimensions.
/WHAT I HAVE TRIED .../
I have tried to associate the ROIs with each slice in the hopes that I could
then combine all the ROIs corresponding to a single slice and then move to
the next slice and so on. However, when I count the ROIs in a loop over the
slices, I get just the total number of ROIs for the whole image stack. I can
combine slices manually using ROIManager of course, but I would like my
macro to identify when there is >1 ROI per slice, combine the ROIs and
measure.
Any help would be appreciated.



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html