Hi Václav,
On Tue, 17 Jan 2012, Václav Uher wrote:
> Problem is that I use ImageJ in plug-in for RapidMiner for image
> processing<
http://spl.utko.feec.vutbr.cz/en/component/content/article/21-zpracovani-medicinskych-signalu/46-image-processing-extension-for-rapidminer-5>.
> So much easer will be, if ImagePlus support serializable. And I think I'm
> not the only one who will appreciate it.
The ImagePlus instances have much more information in them than just the
pixels and (some) metadata. For example, they know fully well in which
ImageWindow they are displayed. Likewise, the image _ID_ is also part of
the ImagePlus class. To serialize this properly would involve a lot more
work, and it is highly doubtful that you actually want that.
Instead, if you want to save an image for later retrieval, use image I/O
as suggested before. It is not much effort, and it is the correct thing to
do anyway since you really do not want to reinstantiate the same object
but only the same image.
Hth,
Johannes