HomePhabricator
Diffusion MITK 30991329cccd

BREAKING ContourModelUtils::FillSliceInSlice

Description

BREAKING ContourModelUtils::FillSliceInSlice

Why: Foreground detection was hard coded to 1<foreground.
This was ok for the use so far (FillContourInSlice), because there the
foreground value was 255. But was problematic for general usage.
Changed now the check to "fillForegroundThreshold<=foreground" and
the default of filForgroundThreshold to 1.

How to adapt: You only have to adapte if values of 1 are still background in
your case. Then you have to pass a fitting fillForegroundThreshold for your case.

+ Improved constness
+ Removed obsolete InternalWritePreviewOnWorkingImage
+ Removed unnecesary member CorrectorTool2D:m_WorkingSlices (reduces internal states)
+ Fixed T28225

Details

Provenance
flocaAuthored on Jan 27 2021, 5:50 PM
flocaPushed on Mar 16 2021, 8:47 AM
Differential Revision
Restricted Differential Revision
Parents
rMITKb9f34b51cab7: Merge branch 'bugfix/T28000-BumpDevelVersion' into develop
Branches
Unknown
Tags
Unknown
Tasks
T28225: [Segmentation] SegTool2D::WritePreviewOnWorkingImage does not work correctly