Batch processing

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

Batch processing

rabih assaf-2
Hello,
Is there a way to open many ROI manager at the same time using a macro?
Thanks in advance.    
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Batch processing

Cammer, Michael
I don't think so.  We simply have a series of ROI files with different names that the macros open and close as needed.  When we need two open at one, we concatenate them and use an index offset for the second set of ROIs.

=========================================================================
 Michael Cammer, Microscopy Core & Skirball Institute, NYU Langone Medical Center
                          Cell:  914-309-3270     Temporary location:  SK2-7
          http://ocs.med.nyu.edu/microscopy & http://microscopynotes.com/

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of rabih assaf
Sent: Monday, March 30, 2015 9:25 AM
To: [hidden email]
Subject: Batch processing

Hello,
Is there a way to open many ROI manager at the same time using a macro?
Thanks in advance.    
--
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: Batch processing

bnorthan
Hi Rabih

There is a good example by Albert Cardona that shows how to use roi
managers in jython scripts.

http://fiji.sc/Jython_Scripting#..._and_counting_particles.2C_and_measuring_their_areas

Following that example I've been able to write Jython scripts which use two
or more ROI Managers.   The only catch is that they are hidden ROI
managers.  (passing True to the roiManager constructor makes it a hidden
roiManager
http://rsb.info.nih.gov/ij/developer/api/ij/plugin/frame/RoiManager.html#constructor.summary
)

Attached is a simple script that sets up two different roiManagers.  The
only problem is that if I show the second roiManager it doesn't seem to
work.

Maybe it is not possible to show two roi managers or maybe I am doing
something wrong... I didn't look into it closely because for the app I was
working on I didn't need to show the roiManagers.

Brian



On Mon, Mar 30, 2015 at 10:31 AM, Cammer, Michael <
[hidden email]> wrote:

> I don't think so.  We simply have a series of ROI files with different
> names that the macros open and close as needed.  When we need two open at
> one, we concatenate them and use an index offset for the second set of ROIs.
>
> =========================================================================
>  Michael Cammer, Microscopy Core & Skirball Institute, NYU Langone Medical
> Center
>                           Cell:  914-309-3270     Temporary location:
> SK2-7
>           http://ocs.med.nyu.edu/microscopy & http://microscopynotes.com/
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> rabih assaf
> Sent: Monday, March 30, 2015 9:25 AM
> To: [hidden email]
> Subject: Batch processing
>
> Hello,
> Is there a way to open many ROI manager at the same time using a macro?
> Thanks in advance.
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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