ImagePlus not Serializable

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

ImagePlus not Serializable

Maximilian Loy
Hi all,

i just wanted to note, that ImagePlus isn't Serializable.
Maybe it could be changed in future releases.

I found out, because i wanted to save a Roi in a file.

Simple workaround:

public class MyImagePlus extends ImagePlus implements Serializable{

        public MyImagePlus() {
                super();
        }

        public MyImagePlus(String arg0, Image arg1) {
                super(arg0, arg1);
        }

        public MyImagePlus(String arg0, ImageProcessor arg1) {
                super(arg0, arg1);
        }

        public MyImagePlus(String arg0, ImageStack arg1) {
                super(arg0, arg1);
        }

        public MyImagePlus(String arg0) {
                super(arg0);
        }

}

Regards,
Max

 ** Confidentiality Statement and Disclaimer **
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
** End of Statement **