Medical Imaging Interaction Toolkit  2018.4.99-a28b433c
Medical Imaging Interaction Toolkit
mitkFeatureBasedEdgeDetectionFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkFeatureBasedEdgeDetectionFilter_h_Included
14 #define mitkFeatureBasedEdgeDetectionFilter_h_Included
15 
18 
19 namespace mitk
20 {
32  {
33  public:
35  itkFactorylessNewMacro(Self);
36 
38  void SetSegmentationMask(mitk::Image::Pointer);
39 
40  protected:
42  void GenerateData() override;
43 
45  void GenerateOutputInformation() override;
46 
49 
52 
54  template <typename TPixel, unsigned int VImageDimension>
55  void ITKThresholding(const itk::Image<TPixel, VImageDimension> *originalImage,
56  double lower,
57  double upper,
58  mitk::Image::Pointer &result);
59 
60  template <typename TPixel, unsigned int VImageDimension>
61  void ContourSearch(itk::Image<TPixel, VImageDimension> *originalImage, mitk::Image::Pointer &result);
62 
63  template <typename TPixel, unsigned int VImageDimension>
64  void ThreadedClosing(itk::Image<TPixel, VImageDimension> *originalImage, mitk::Image::Pointer &result);
65 
66  private:
68 
70  mitk::Image::Pointer m_SegmentationMask;
71  };
72 }
73 #endif
Calculates edges and extracts them as an UnstructuredGrid with respect to the given segmentation...
Converts an Image into an UnstructuredGrid represented by Points. The filter uses a Threshold to extr...
Superclass of all classes generating some kind of mitk::BaseData.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
static void ITKThresholding(const itk::Image< TPixel, VImageDimension > *originalImage, mitk::Image *segmentation, double lower, double upper, unsigned int timeStep)
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:46