<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 12-Jul-12 23:05, Stephan Preibisch
wrote:<br>
</div>
<blockquote
cite="mid:BACD9340-4397-4CD5-954A-CC6D091ECEF1@mpi-cbg.de"
type="cite">In principle, I agree. However it might break some
code in a bad way. We used several times constructs like
<div><br>
</div>
<div>Img< T > img;</div>
<div><br>
</div>
<div>if ( img instanceOf ImagePlusImg )</div>
<div>{</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>//
get the underlying instance (which is especially true after
wrapping)</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>ImagePlus
imp = ((ImagePlusImg)img).getImagePlus();</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>....</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>//
or do something else where you test instanceof</div>
<div>}<br>
<div><br>
</div>
<div>which would suddenly fail because ImgPlus is an Img, but
only HAS for example an ImagePlusImg...</div>
<div><br>
</div>
<div>What do you think?</div>
</div>
</blockquote>
<br>
Bummer.<br>
<br>
How do we get the ImagePlusAdapter to return an Img that captures
calibration as well then?<br>
</body>
</html>