[ImageJ-devel] [fiji-devel] New methods in CalibratedSpace

Jean-Yves Tinevez tinevez at pasteur.fr
Thu Jul 12 16:14:03 CDT 2012


On 12-Jul-12 23:05, Stephan Preibisch wrote:
> In principle, I agree. However it might break some code in a bad way. 
> We used several times constructs like
>
> Img< T > img;
>
> if ( img instanceOf ImagePlusImg )
> {
> // get the underlying instance (which is especially true after wrapping)
> ImagePlus imp = ((ImagePlusImg)img).getImagePlus();
> ....
>
> // or do something else where you test instanceof
> }
>
> which would suddenly fail because ImgPlus is an Img, but only HAS for 
> example an ImagePlusImg...
>
> What do you think?

Bummer.

How do we get the ImagePlusAdapter to return an Img that captures 
calibration as well then?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20120712/07171b5c/attachment.html>


More information about the ImageJ-devel mailing list