Hi Sascha,
I added Bug-16811.
http://bugs.mitk.org/show_bug.cgi?id=16811
I will add an attachment in a little while but implementation is very straight forward.
Best,
Ingmar
Gesendet: Mittwoch, 15. Januar 2014 um 15:26 Uhr
Von: "Sascha Zelzer" <[email protected]>
An: "Ingmar Wegner" <[email protected]>
Cc: "Rachit Jain" <[email protected]>, "[email protected]" <[email protected]>
Betreff: Re: Aw: Re: [mitk-users] Regarding storing and saving properties in mitk::image
Von: "Sascha Zelzer" <[email protected]>
An: "Ingmar Wegner" <[email protected]>
Cc: "Rachit Jain" <[email protected]>, "[email protected]" <[email protected]>
Betreff: Re: Aw: Re: [mitk-users] Regarding storing and saving properties in mitk::image
Hi Ingmar,
this sounds like a nice addition to me. Contributions are welcome :-)
Best,
Sascha
On 01/15/2014 03:08 PM, Ingmar Wegner wrote:
this sounds like a nice addition to me. Contributions are welcome :-)
Best,
Sascha
On 01/15/2014 03:08 PM, Ingmar Wegner wrote:
Hi Sascha and Rachit,in addition to that: I use the BaseData properties to store DICOM meta information of an mitk::Image.I was looking for a way to display these properties.As the PropertyListView plugin doesn't display them I would suggest adding a print-out to the PrintSetf method of mitk::BaseData.This way one could inspect the properties from DataManager context menu "Details".Anyone interested in a small patch for this?Then I would create a feature bug and attach a patch.Best Regards,IngmarGesendet: Mittwoch, 08. Januar 2014 um 16:57 Uhr
Von: "Sascha Zelzer" <[email protected]>
An: "Rachit Jain" <[email protected]>, "[email protected]" <[email protected]>
Betreff: Re: [mitk-users] Regarding storing and saving properties in mitk::imageHi Rachit,
sorry, your mail did slip through...
Did you write a MITK project file or did you individually save the
image? The MITK project file serializes the properties from both the
BaseData and DataNode objects. Writing an image by using the NRRD format
for example does not retain the BaseData properties.
The GetRelevantNodes() issue seems to be independent from your
serialization problem. I entered bug
http://bugs.mitk.org/show_bug.cgi?id=16751 for this issue.
Best,
Sascha
On 12/03/2013 04:37 PM, Rachit Jain wrote:
> Hi All
>
> I am using MITK version 2013.09.0 and here I had a need to store some
> properties in the mitk::Image.
>
> As mitk::Image has base class as BaseData, so I thought of using
> SetProperty function provided by BaseData. But found that while
> writing the mitk workbench to disk, these properties are not written.
>
> So another thought was to derive from mitk::Image and store my
> required properties in the derive class. Wrote serializer, reader and
> writer for the derived class, everything went well.
>
> But today found out that the level window bar was missing and
> debugging revealed that there are checks in
>
> "mitk::DataStorage::SetOfObjects::ConstPointer
> mitk::LevelWindowManager::GetRelevantNodes()"
> function that checks if it is
> Image, DiffusionImage, TensorImage, QBallImage. As this check fails as
> the my derived image does not match that, the level window is not
> displayed.
>
> Found that there is mitk::USImage that inherits from mitk::Image and
> that adds some properties, but in this case also, it will not save
> these properties while writing the workbench to disk.
>
> So here I have 2 questions:
>
> 1. Have any of you guys faced the similar situation and if yes, how
> did you fix it
>
> 2. Is there a reason behind this design, I mean why the properties are
> not written from the base data. Or had there been a dynamic cast
> (though slower than checking a string) here in GetRelevantNodes(),
> that could also have solved the issue.
>
> Any help is highly appreciated.
>
> Thanks and Regards
> Rachit Jain
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
