Hi Daniel,
mitkAbstractFileReader provides functions to either return a vector of
BaseDatas or a DataStorage::SetOfObjects::Pointer, so in theory the readers
could adapt the node properties as seen fit. However I believe the current
implementation will use the first method, where the reader is ignorant of the
resulting nodes. So we either need to change that or change rendering based on
the BaseData properties.
I would prefer not to have direct rendering specific properties as part of the
BaseData properties as this would lead to saving the MITK specific rendering
information within e.g. the NRRD meta data header. Instead I would go for
trying to infer the correct rendering settings.
If there is no meta data that allows inference, we could create it, such as by
introducing a new modality:=mask similar to modality:=DWMRI.
This is something that could be reasonably saved to NRRD. If there is a
standard meta data way to designate nrrd files as masks (or probability maps) I
am not aware of it.
Best,
Caspar
Von: Daniel Maleike [mailto:[email protected]]
Gesendet: Donnerstag, 5. Oktober 2017 10:02
An: [email protected]
Betreff: [mitk-users] Loading images as binary
Hi mitk-users,
Currently, newly created/loaded image are analyzed for binary contents in
ImageVtkMapper2D::SetDefaultProperties(). Is there already an established way
to mark images as "binary" in an AbstractFileIOReader?
My use case: I have a file format that is by definition declared as image
masks. Those images either contain a true 0/1 mask or floating values in the
range 0.0-1.0 (probabilities). For true 0/1 masks everything works fine,
however float images are currently not detected as masks. I would like to
provide hints in the file reader that some of the created Images are considered
masks. This could either mean the "binary" property - which is not really the
right concept - or fixed values for level/window, color, opacity.
Any hints or experiences on this question?
My spontaneous idea would be to modify the SetDefaultProperties logic in
ImageVtkMapper2D and let it copy some properties of BaseData into the DataNode.
Thanks for your input,
Kind regards,
Daniel
------------------------------------------------------------------------------
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