Saving Image + editable ROI associated

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

Saving Image + editable ROI associated

SUBSCRIBE IMAGEJ marco dilel
I need to save in a way that i can reopen the file and edit the ROI.
Is there a file that save all in one. Image + editable ROI.??
Reply | Threaded
Open this post in threaded view
|

Re: Saving Image + editable ROI associated

Senseney, Justin (NIH/CIT) [E]
There are image formats that provide the storage of both image data and ROI, but I don't know of a plugin that can do both of these automatically for ImageJ.  One option would be to use this plugin: http://bigwww.epfl.ch/sage/soft/mij/  You could use it to load your ImageJ image/ROIs into matlab and then save both the image and roi in a single .mat file once in MATLAB.  To then load the image/ROI combo, you would have to load them first in matlab, and then transfer them separately into ImageJ.

-Justin    

-----Original Message-----
From: SUBSCRIBE IMAGEJ marco dilel [mailto:[hidden email]]
Sent: Wednesday, March 14, 2012 6:16 AM
To: List IMAGEJ
Subject: Saving Image + editable ROI associated

I need to save in a way that i can reopen the file and edit the ROI.
Is there a file that save all in one. Image + editable ROI.??
Reply | Threaded
Open this post in threaded view
|

Re: Saving Image + editable ROI associated

Jerome Mutterer-3
Overlays are saved with your image if you save as tif. So transfert your
ROIs from the ROI manager to an overlay, and save as tif. To recover your
ROIs, open you file and convert the overlay to ROIs.

Image>Overlay>from ROI manager
Image>Overlay>to ROI manager

Sincerely,
Jerome.

On 14 March 2012 16:16, Senseney, Justin (NIH/CIT) [E] <
[hidden email]> wrote:

> There are image formats that provide the storage of both image data and
> ROI, but I don't know of a plugin that can do both of these automatically
> for ImageJ.  One option would be to use this plugin:
> http://bigwww.epfl.ch/sage/soft/mij/  You could use it to load your
> ImageJ image/ROIs into matlab and then save both the image and roi in a
> single .mat file once in MATLAB.  To then load the image/ROI combo, you
> would have to load them first in matlab, and then transfer them separately
> into ImageJ.
>
> -Justin
>
> -----Original Message-----
> From: SUBSCRIBE IMAGEJ marco dilel [mailto:[hidden email]]
> Sent: Wednesday, March 14, 2012 6:16 AM
> To: List IMAGEJ
> Subject: Saving Image + editable ROI associated
>
> I need to save in a way that i can reopen the file and edit the ROI.
> Is there a file that save all in one. Image + editable ROI.??
>
Reply | Threaded
Open this post in threaded view
|

Re: Saving Image + editable ROI associated

Cammer, Michael
In reply to this post by Senseney, Justin (NIH/CIT) [E]
The current version of ImageJ does save existing ROIs with the image when saved as tiff.  I just tried it with 1.46i and it worked fine.  
________________________________________________________
Michael Cammer, Assistant Research Scientist
Skirball Institute of Biomolecular Medicine
Lab: (212) 263-3208  Cell: (914) 309-3270


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Senseney, Justin (NIH/CIT) [E]
Sent: Wednesday, March 14, 2012 11:17 AM
To: [hidden email]
Subject: Re: Saving Image + editable ROI associated

There are image formats that provide the storage of both image data and ROI, but I don't know of a plugin that can do both of these automatically for ImageJ.  One option would be to use this plugin: http://bigwww.epfl.ch/sage/soft/mij/  You could use it to load your ImageJ image/ROIs into matlab and then save both the image and roi in a single .mat file once in MATLAB.  To then load the image/ROI combo, you would have to load them first in matlab, and then transfer them separately into ImageJ.

-Justin    

-----Original Message-----
From: SUBSCRIBE IMAGEJ marco dilel [mailto:[hidden email]]
Sent: Wednesday, March 14, 2012 6:16 AM
To: List IMAGEJ
Subject: Saving Image + editable ROI associated

I need to save in a way that i can reopen the file and edit the ROI.
Is there a file that save all in one. Image + editable ROI.??
Reply | Threaded
Open this post in threaded view
|

Re: Saving Image + editable ROI associated

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by SUBSCRIBE IMAGEJ marco dilel
On Mar 14, 2012, at 6:16 AM, SUBSCRIBE IMAGEJ marco dilel wrote:

> I need to save in a way that i can reopen the file and edit the ROI.
> Is there a file that save all in one. Image + editable ROI.??

With ImageJ 1.43p or later, when using the TIFF format, ROIs are saved with the image and restored when the image is reopened.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: Saving Image + editable ROI associated

SUBSCRIBE IMAGEJ marco dilel
In reply to this post by SUBSCRIBE IMAGEJ marco dilel
I thought about a macro that create 2 button one is "Open with roi" and other "Save with ROI"

"Open with roi"
open an image
search for a ROI associated (like if exist imagename-ROI.zip then open else just open the ROImanager)
open the roi manager

"save with roi"
Save the Modified image with the ROI labeled (Roi manager>Flatten)
save all the ROI in a file with the same name of the image (Imagename-ROI.zip)
(if exist overwrite alse save)
save the Sheet with the same name of the image (Imagename-result.xls) if Result sheet empy do not save.


i am not a programmer and really do not have time to learn
but maybe this can be easy to write in code and make the macro.
Reply | Threaded
Open this post in threaded view
|

Re: Saving Image + editable ROI associated

SUBSCRIBE IMAGEJ marco dilel
In reply to this post by SUBSCRIBE IMAGEJ marco dilel
That is just what i needed....
Thanks Jerome.




Overlays are saved with your image if you save as tif. So transfert your
ROIs from the ROI manager to an overlay, and save as tif. To recover your
ROIs, open you file and convert the overlay to ROIs.

Image>Overlay>from ROI manager
Image>Overlay>to ROI manager

Sincerely,
Jerome.