[Insight-users] Custom class image serialization?
David Doria
daviddoria+itk at gmail.com
Tue Sep 1 11:13:04 EDT 2009
On Sat, Aug 15, 2009 at 8:55 PM, Luis Ibanez <luis.ibanez at kitware.com>wrote:
>
> Hi David,
>
> The approach that you are taking for serialization will not be
> very portable. It probably will only work for reading images
> that you save in your exact same computer.
>
>
> Your pixel type "TestClass" is particularly difficult for serializing
> an image, given that your string component will probably have
> a different size on every pixel .... (does that happen ?).
>
>
> You may have to write your own customized ImageIO class.
>
>
> Regards,
>
>
> Luis
>
>
Luis -
That was just an example. I just thought it would be nice for users that
didn't want to write an itkIO class to be able to do this type of thing
quickly - but I guess I wasn't thinking about portability!
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090901/875bf46a/attachment.htm>
More information about the Insight-users
mailing list