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

Reply via email to