Login  Register

Re: Batch process ROI between two sets of images

Posted by ctrueden on Aug 06, 2014; 6:17pm
URL: http://imagej.273.s1.nabble.com/Batch-process-ROI-between-two-sets-of-images-tp5009046p5009049.html

Hi David,

> I'm afraid I am completely new to writing macros for ImageJ and so I'm
> struggling and would really appreciate any help.

Have you seen these wiki pages?
http://imagej.net/Segmentation
http://imagej.net/Introduction_into_Macro_Programming#The_recorder

> I can't work out a way to batch process many images. The tricky bit is
> saving the ROI from the mask and applying it to the appropriate cell.

See the Process > Batch > Macro command:
http://imagej.net/docs/guide/146-29.html#toc-Subsubsection-29.12.3

To move a ROI from a mask back to the original image, use the "Restore
Selection" command.

The #1 tip to remember is: press L for the Command Finder to run commands.
Much faster than searching the menus for them!

Regards,
Curtis


On Wed, Aug 6, 2014 at 9:55 AM, dc1312 <[hidden email]> wrote:

> I'm afraid I am completely new to writing macros for ImageJ and so I'm
> struggling and would really appreciate any help.
>
> How do use one set of images to mask out another set of images in a batch
> process? For example I have two sets of images; the first set contains
> images only with a mask, the second set contains cells with my
> "interesting"
> data in. So for one cell I do this:
>
> 1. Open "mask" image
> 2. Create selection
> 3. Save as ROI
> 4. Open "interesting" image
> 5. Apply ROI
> 6. Set selection to value="NaN"
> 7. Save new "interesting" image
>
> I can't work out a way to batch process many images. The tricky bit is
> saving the ROI from the mask and applying it to the appropriate cell.
>
> Thank you for any help!
>
> David
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Batch-process-ROI-between-two-sets-of-images-tp5009046.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