Login  Register

Re: How/where in the code are segmentations saved?

Posted by dscho on Jun 05, 2011; 8:14am
URL: http://imagej.273.s1.nabble.com/How-where-in-the-code-are-segmentations-saved-tp3684345p3684346.html

Hi Kynn,

On Sat, 4 Jun 2011, Kynn Jones wrote:

> I understand that ImageJ offers the possibility of saving to disk the
> result of an image segmentation.

Are you referring to ROIs?

> What format is used to save a segmentation?  IOW, how is the
> segmentation encoded/serialized?  Also, where in the source code should
> I look to get the algorithmic details of how this is done?

If you are referring to ROIs, the saving is implemented here:

http://fiji.sc/cgi-bin/gitweb.cgi?p=ImageJA.git;a=blob;f=ij/io/RoiEncoder.java;hb=refs/heads/master

and the loading here:

http://fiji.sc/cgi-bin/gitweb.cgi?p=ImageJA.git;a=blob;f=ij/io/RoiDecoder.java;hb=refs/heads/master

Ciao,
Johannes