calculate sub-ROI macro help.

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

calculate sub-ROI macro help.

Thomas Hall
Hi all,

I've been struggling with this for a while.

I have a set of ROIs (black outlines in the example below). I want to be able to trace an area such as the one shown in red, but create an ROI that matches the largest of the "sub-areas".



Any help would be much appreciated.

Tom Hall
IMB, UQ, Brisbane
Reply | Threaded
Open this post in threaded view
|

Re: calculate sub-ROI macro help.

Jean Reiss
Hi Thomas:

Did you try the Image J software?

https://imagej.nih.gov/ij/

Jean

On Mon, Aug 8, 2016 at 7:14 PM, Thomas Hall <[hidden email]> wrote:

> Hi all,
>
> I've been struggling with this for a while.
>
> I have a set of ROIs (black outlines in the example below). I want to be
> able to trace an area such as the one shown in red, but create an ROI that
> matches the largest of the "sub-areas".
>
> <http://imagej.1557.x6.nabble.com/file/n5016984/nabble.gif>
>
> Any help would be much appreciated.
>
> Tom Hall
> IMB, UQ, Brisbane
>
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.
> com/calculate-sub-ROI-macro-help-tp5016984.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: calculate sub-ROI macro help.

Thomas Hall
Hi Jean,

Sorry, I didn't make myself clear. I am already using ImageJ on lists of ROIs in .zip format. The point is that I need some macro code to be able to draw new ROIs over the existing ones but only return the largest "sub-area" as I tried to explain by the diagram.

What I have been able to do is write a macro to go through each ROI in the ROI manager one by one and compare a new ROI (last in the ROI manager list) to each existing ROI. This is the simple bit. The part that is not straightforward is to create a list of the "sub-regions" within each ROI. If I could do this I would then be able to rank by area and keep the largest, discarding the rest.

Thanks,

Tom