Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 
36  itkFactorylessNewMacro(Self)
37 
38 
39  void SetSegmentationMask(mitk::Image::Pointer);
40 
41  protected:
43  void GenerateData() override;
44 
46  void GenerateOutputInformation() override;
47 
50 
53 
55  template <typename TPixel, unsigned int VImageDimension>
56  void ITKThresholding(const itk::Image<TPixel, VImageDimension> *originalImage,
57  double lower,
58  double upper,
59  mitk::Image::Pointer &result);
60 
61  template <typename TPixel, unsigned int VImageDimension>
62  void ContourSearch(itk::Image<TPixel, VImageDimension> *originalImage, mitk::Image::Pointer &result);
63 
64  template <typename TPixel, unsigned int VImageDimension>
65  void ThreadedClosing(itk::Image<TPixel, VImageDimension> *originalImage, mitk::Image::Pointer &result);
66 
67  private:
69 
71  mitk::Image::Pointer m_SegmentationMask;
72  };
73 }
74 #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.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
static void ITKThresholding(itk::Image< TPixel, VImageDimension > *originalImage, mitk::Image *segmentation, double lower, double upper, unsigned int timeStep)
itk::SmartPointer< Self > Pointer
Definition: mitkBaseData.h:41