Antwort: Re: Antwort: Augmenting an ImagePlus with Additional Information
Posted by
Joachim Wesner on
URL: http://imagej.273.s1.nabble.com/Augmenting-an-ImagePlus-with-Additional-Information-tp3689248p3689252.html
>I just stumbled upon the getProperty/setProperty and wrote a plugin to
>test this. I can verify that any properties you do NOT survive image
>duplication. Shame that image duplication does not clone the
>properties, perhaps there is some good reason for this though?
I think one should not blame ImageJ developers for this, AFAIK the usual
approach is to only
do what is "save", it is generally nontrivial to duplicate an arbitrary
composed object, there is
no "correct" way to do this (Shallow copy vs. Deep copy etc.), without
knowing how the copy
will be used later, see the discussions about cloning in Java.
Mit freundlichen Grüßen / Best regards
www.leica-microsystems.com
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________