13 #ifndef mitkCorrectorAlgorithm_h
14 #define mitkCorrectorAlgorithm_h
23 #define multilabelSegmentationType unsigned short
42 itkFactorylessNewMacro(Self);
51 itkSetMacro(FillColor,
int);
52 itkGetConstMacro(FillColor,
int);
54 itkSetMacro(EraseColor,
int);
55 itkGetConstMacro(EraseColor,
int);
92 template <
typename ScalarType>
96 itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer pic);
97 itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer CloneImage(
98 itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer pic);
100 itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer pic);
101 std::vector<itk::Index<2>> FindSeedPoints(
103 itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer pic);
104 int FillRegion(
const std::vector<itk::Index<2>> &seedPoints,
105 itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer pic);
106 void OverwriteImage(itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer source,
107 itk::Image<mitk::CorrectorAlgorithm::DefaultSegmentationDataType, 2>::Pointer target);
#define MITKSEGMENTATION_EXPORT
A time-resolved contour representation consisting of linked vertices in 3D space.
Contour-based correction algorithm for 2D binary segmentation images.
mitk::Label::PixelType DefaultSegmentationDataType
mitkClassMacro(CorrectorAlgorithm, ImageToImageFilter)
Image::Pointer m_DifferenceImage
void GenerateData() override
Perform the actual contour correction processing.
Image::Pointer m_WorkingImage
~CorrectorAlgorithm() override
bool ImprovedHeimannCorrectionAlgorithm(itk::Image< DefaultSegmentationDataType, 2 >::Pointer pic)
Apply the improved Heilmann correction algorithm on the given 2D image.
void SetContour(ContourModel *contour)
Set the user-drawn contour that defines the correction region.
ContourModel::Pointer m_Contour
bool ModifySegment(const TSegData &segment, itk::Image< DefaultSegmentationDataType, 2 >::Pointer pic)
Modify a single segment in the image according to the correction contour.
Superclass of all classes having one or more Images as input and generating Images as output.
unsigned short PixelType
Pixel type used for label values (unsigned short).
Find image slices visible on a given plane.
double ScalarType
Scalar type used throughout MITK for geometric computations.
std::vector< itk::Index< 2 > > points