-RM-237-MR-WMColormapper applies old properties to new texture
How to reproduce:
- enable debug output
- load t1 dataset
- apply scalarsegmentation module to t1 module
- apply colormapper module to scalarsegementation module
- set threshold to e.g. 10% in scalarsegementation module
you should see that the new texture has an value range from [1,1] which is invalid as actually it is [0,1]. This is due to line:
dataSet->getTexture()->getProperties()->set( m_lastDataSet->getTexture()->getProperties(), true );
in WMColormapper.cpp, short after "Replacing texture", around line 264. The problem thereby is, that the minimum, and scale properties will be copied though they might not be applicable to the new texture as the minimum might have changed. You can circumvent this, by adjusting threshold in scalarsegmentation module before applying the colormapper to it.
(from redmine: created on 2013-02-07, closed on 2013-02-08)