Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkFeatureBasedEdgeDetectionFilter_h_Included
18 #define mitkFeatureBasedEdgeDetectionFilter_h_Included
19 
22 
23 namespace mitk
24 {
36  {
37  public:
39 
40  itkFactorylessNewMacro(Self)
41 
42 
43  void SetSegmentationMask(mitk::Image::Pointer);
44 
45  protected:
47  virtual void GenerateData();
48 
50  virtual void GenerateOutputInformation();
51 
54 
57 
59  template <typename TPixel, unsigned int VImageDimension>
60  void ITKThresholding(itk::Image<TPixel, VImageDimension> *originalImage,
61  double lower,
62  double upper,
63  mitk::Image::Pointer &result);
64 
65  template <typename TPixel, unsigned int VImageDimension>
66  void ContourSearch(itk::Image<TPixel, VImageDimension> *originalImage, mitk::Image::Pointer &result);
67 
68  template <typename TPixel, unsigned int VImageDimension>
69  void ThreadedClosing(itk::Image<TPixel, VImageDimension> *originalImage, mitk::Image::Pointer &result);
70 
71  private:
73 
75  mitk::Image::Pointer m_SegmentationMask;
76  };
77 }
78 #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:44
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:42