Augmenting an ImagePlus with Additional Information

Posted by Michael Ellis on
URL: http://imagej.273.s1.nabble.com/Augmenting-an-ImagePlus-with-Additional-Information-tp3689248.html

Augmenting an ImagePlus with Additional Information

I am writing an ImageJ plugin to read our proprietary file format. Our  
files are karyotyping files that contain zipped up TIFF files, polygon  
data describing the chromosome boundaries and various other metrics.

So far I can load the image files and I'm adding the list of polygon  
boundaries as PolygonRoi's to the ROIManager. However, if I use our  
plugin to load a s second karyotype file, then I have either to append  
to, or replace the contents of the ROIManager. I'd prefer to associate  
the list of PolygonRoi's with the image.

So how best to do this?

Subclassing the ImagePlus might work, but I'm not a fan of type  
casting; I suspect that it would have gotchas like having ImageJ's  
"Duplicate" command lose the additional information.

Is there any other robust means of augmenting an image with additional  
information?

Michael Ellis
Managing Director
Digital Scientific UK Ltd.
http://www.digitalscientific.co.uk
[hidden email]
tel: +44(0)1223 329993
fax: +44(0)1223 370040

Sheraton House
Castle Park
Cambridge
CB3 0AX


The contents of this e-mail may be privileged and are confidential.  
It may not be disclosed to or used by anyone other than the  
addressee(s), nor copied in any way.  If received in error, please  
advise the sender and delete it from your system.