Import 2017-06-07 23:51:09: master 8707bb9e

Author Committer Branch Timestamp Parent
naucoin naucoin master 2016-05-13 13:47:09 master 5e5ec481
Affected Issues 0003233: Model to Label Map label value hard coded to 255

BUG: Enable use of labelValue for output label map

A bug was introduced in svn 22211 [1] when the labelValue parameter in the ModelToLabelMap CLI was exposed to the interface.
The erosion and dilation filters used in the code are binary ones and by default use the maximum of the data type of the label
map, in this case hard coded to 255 for unsigned char. In order to do the full pipeline with the user selected label value, the
code would need to be updated to use:
A quicker fix is to adjust the output label map in the last step to set the desired label value, implemented in this patch.

Investigating this issue, the hard coded kernel size was set into a variable, in anticipation of exposing it via the XML
(quick tests showed no visible difference).

Added a test and output using the label value 128. When run from the GUI, the model and volume were offset, so a transformed model
was generated that overlaps the input volume and was used to generate the new baseline comparison volume.
Removed unused baseline image.


Issue 0003233

git-svn-id: 3bd1e089-480b-0410-8dfb-8563597acbee

add - Modules/CLI/ModelToLabelMap/Data/Baseline/OAS10001-128.mha Diff File
rm - Modules/CLI/ModelToLabelMap/Data/Baseline/OAS10001.1.mha Diff File
add - Modules/CLI/ModelToLabelMap/Data/Input/OAS10001-Transformed.vtp Diff File
mod - Modules/CLI/ModelToLabelMap/ModelToLabelMap.cxx Diff File
mod - Modules/CLI/ModelToLabelMap/Testing/CMakeLists.txt Diff File