> Hi all,
> > I've got what i think is a straightforward question about overlays. I'd like to be able to store some overlay outlines generated on one image using analyse particles and then display these overlays to another image later in the analysis, all within a macro. > > I know that you can add an overlay to the ROI Manager and thats one way of storing and adding that overlay to any particular selected image. However in my macro there are already several ROI's within the manager before i add the overlay as an ROI and so this makes selecting the overlay ROI more complicated, especially if itssomewhere in the middle of other ROI's. Is there another way to store and move an overlay between different images? > I've discovered the overlay manager but don't know how to add an overlay to it to recall later. Also it seems that the overlay manager is not intended to be the overlay equivalent of the ROI manager. > > Thanks for the help, > > Matt > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
On Sep 17, 2014, at 3:25 PM, Matt Pearson wrote:
> > Hi all, > > > > I've got what i think is a straightforward question about overlays. I'd like to be able to store some overlay outlines generated on one image using analyse particles and then display these overlays to another image later in the analysis, all within a macro. You can do this using the Overlay.copy and Overlay.paste macro functions. The following example macro copies an overlay generated by the particle analyzer and pastes it into a blank image. -wayne run("Blobs (25K)"); setAutoThreshold("Default"); run("Analyze Particles...", " show=[Overlay Outlines] exclude"); Overlay.copy; newImage("Untitled", "8-bit black", 256, 256, 1); Overlay.paste; > > > > I know that you can add an overlay to the ROI Manager and thats one way of storing and adding that overlay to any particular selected image. However in my macro there are already several ROI's within the manager before i add the overlay as an ROI and so this makes selecting the overlay ROI more complicated, especially if itssomewhere in the middle of other ROI's. Is there another way to store and move an overlay between different images? > > > I've discovered the overlay manager but don't know how to add an overlay to it to recall later. Also it seems that the overlay manager is not intended to be the overlay equivalent of the ROI manager. > > > > Thanks for the help, > > > > Matt > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Thanks wayne, exactly what i needed.
cheers, Matt On 18 Sep 2014, at 02:30, Rasband, Wayne (NIH/NIMH) [E] wrote: > On Sep 17, 2014, at 3:25 PM, Matt Pearson wrote: > >>> Hi all, >>> >>> I've got what i think is a straightforward question about overlays. I'd like to be able to store some overlay outlines generated on one image using analyse particles and then display these overlays to another image later in the analysis, all within a macro. > > You can do this using the Overlay.copy and Overlay.paste macro functions. The following example macro copies an overlay generated by the particle analyzer and pastes it into a blank image. > > -wayne > > run("Blobs (25K)"); > setAutoThreshold("Default"); > run("Analyze Particles...", " show=[Overlay Outlines] exclude"); > Overlay.copy; > newImage("Untitled", "8-bit black", 256, 256, 1); > Overlay.paste; > > >>> >>> I know that you can add an overlay to the ROI Manager and thats one way of storing and adding that overlay to any particular selected image. However in my macro there are already several ROI's within the manager before i add the overlay as an ROI and so this makes selecting the overlay ROI more complicated, especially if itssomewhere in the middle of other ROI's. Is there another way to store and move an overlay between different images? >> >>> I've discovered the overlay manager but don't know how to add an overlay to it to recall later. Also it seems that the overlay manager is not intended to be the overlay equivalent of the ROI manager. >>> >>> Thanks for the help, >>> >>> Matt >> > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |