Hello,

Thank you very much for your answer! You give me some tips I needed.

Best,

Rocío

2017-12-15 10:44 GMT+01:00 Dinkelacker, Stefan <
[email protected]>:

> Hi,
>
>
>
> I’m not sure if I understood you correctly as I believe you mix up some
> concepts here. If you use IOUtil to load data, it will generate a
> completely new BaseData object including a new property list, that is
> attached to the BaseData. This BaseData property list usually hasn’t a name
> property. The property list you see in the application in the Properties
> View is the property list of the DataNode, that holds the BaseData. You can
> only store these DataNode properties when saving an .mitk file. So, you
> have to distinguish between BaseData properties and DataNode properties,
> while both types of properties are only stored in .mitk-files.
>
>
>
> If you want to attach your own properties to images without using MITK
> scenes, there is another possibility: Add your property to the BaseData
> property list and tell the IPropertyPersistenceService (which you can query
> through mitkCoreServices.h) that you want to persist this property. The
> NRRD image reader and writer of MITK is able read and write these
> properties into/from the NRRD file header, as long as it is a
> StringProperty.
>
>
>
> Best,
>
> Stefan
>
>
>
> *From:* LOPEZ VELAZCO, ROCIO [mailto:[email protected]]
> *Sent:* Donnerstag, 14. Dezember 2017 16:45
> *To:* [email protected]
> *Subject:* [mitk-users] Acces DataBase "name" property
>
>
>
> Sorry, I re-send the same message with title, I forgot in the last one
>
> Hello,
>
> I am coding an application based in mitk. It is thought to load a *.mitk*
> data file (which contains three surfaces and one MRI image DataNodes). I
> would like to put each object in a different data storage when I load the
> *.mitk* file, but when I use:
>
> std::vector< mitk::Basedata::Pointer > basedatas;
>      basedatas = mitk::IOUtil::Load("/path/to/my/file.nrrd");
>
> I obtain DataBase objects. I am trying to access the property "Name" of
> those DataBase in order to assign each one a data storafe but it seems to
> be empty. Do you know how could I access the object names?
>
> If it is not possible I thought to charge all objects in the same data
> storage and then move them to their corresponging ones....but it does not
> seem a smart solution, isn't it?
>
> Any advice would be great!!
>
> Thank you very much in advance.
>
> Best regards,
>
>
> --
>
> Rocío López Velazco
>
> *SimbioSYS group, BCN MedTech*
>
> *UniversityPompeu Fabra*
>
> *Department of Information and Communication Technologies *
>
> *Roc Boronat, 122
> <https://maps.google.com/?q=Roc+Boronat,+122&entry=gmail&source=g> (Tànger
> Building),  08018 Barcelona                    Office 55 119 *
> *https://bcn-medtech.upf.edu/ <https://bcn-medtech.upf.edu/>*
>
>
>
>
>



-- 

Rocío López Velazco

*SimbioSYS** group, BCN MedTech*

*UniversityPompeu Fabra*




*Department of Information and Communication Technologies Roc Boronat, 122
(Tànger Building),  08018 Barcelona                    Office 55 119
https://bcn-medtech.upf.edu/ <https://bcn-medtech.upf.edu/>*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to