ROI names from ROI Manager not in ROI file?

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

ROI names from ROI Manager not in ROI file?

Bill Christens-Barry
After looking at the Roi API, I see that an ROI has a name field. I
don't see any methods in the RoiEncoder or RoiDecoder APIs allowing an
ROI name, for example those defined using the RoiManager tool, to be
saved in or retrieved from an ROI file created via the ROI Manager. Is
saving or retrieving the ROI names in ROI files currently possible,
short of extending the RoiEncoder and RoiDecoder classes?

Thanks.

Bill Christens-Barry
Reply | Threaded
Open this post in threaded view
|

Re: ROI names from ROI Manager not in ROI file?

Wayne Rasband
> After looking at the Roi API, I see that an ROI has a name field. I
> don't see any methods in the RoiEncoder or RoiDecoder APIs allowing an
> ROI name, for example those defined using the RoiManager tool, to be
> saved in or retrieved from an ROI file created via the ROI Manager. Is
> saving or retrieving the ROI names in ROI files currently possible,
> short of extending the RoiEncoder and RoiDecoder classes?

The ROI name is used as the file name when the ROI Manager saves an
ROI. When you open an ROI, the file name (minus the extension) is used
as the ROI name. There was a bug in the ROIDecoder that caused the ROI
name to not be set when opening composite ROIs. This is fixed in ImageJ
1.37h.

-wayne