Hi Ben, sorry for the delay in answering. Am I correct in assuming, that you have the entire framework of reader/writer set up and it works?
In that case serialization should not be much of an issue. You can take for example a look at the implementation of the Diffusion image [1,2] which is itself a subclass of mitk::Image. Best, Caspar [1] http://mitk.org/git/?p=MITK.git;a=blob;f=Modules/DiffusionImaging/DiffusionCore/IODataStructures/DiffusionWeightedImages/mitkDiffusionImage.h;h=ebabe569b5454e5022fd0ac7dda3f34295b67a38;hb=HEAD [2] http://mitk.org/git/?p=MITK.git;a=blob;f=Modules/DiffusionImaging/DiffusionIO/mitkDiffusionImageSerializer.cpp;h=d0b58894fdcc192724908f7548e0e88bd5e116ef;hb=HEAD -----Ursprüngliche Nachricht----- Von: Rowland Ben [mailto:[email protected]] Gesendet: Mittwoch, 16. April 2014 12:18 An: [email protected] Betreff: [mitk-users] mitk::Image subclass Hi everyone, I am developing a subclass of mitk::Image to contain MRSI data (the image holds maps of metabolite concentrations, what I want to add is the raw spectral data which will be displayed in a plot in my plugin). Most of the class is working fine, the only thing I am really struggling with is how to have my subclass correctly save its additional members into the .mitk along with the rest of the scene. I have seen a few references to serialisers in the MITK docs, but don't really understand how that part of the code fits together. If anybody could point me towards the relevant classes, or some kind of minimal example, that would be greatly appreciated. Thanks, Ben ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
