VMTK
Loading...
Searching...
No Matches
itkFWHMFeatureImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 Portions of this code are covered under the ITK copyright.
13 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm
14 for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notices for more information.
19
20=========================================================================*/
21
22#ifndef __itkFWHMFeatureImageFilter_h
23#define __itkFWHMFeatureImageFilter_h
24
25#include "itkImageToImageFilter.h"
26#include "itkImage.h"
27#include "itkBinaryBallStructuringElement.h"
28
29namespace itk
30{
36template <typename TInputImage, typename TOutputImage>
38 public ImageToImageFilter< TInputImage, TOutputImage >
39{
40public:
43 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
44 typedef SmartPointer<Self> Pointer;
45 typedef SmartPointer<const Self> ConstPointer;
46
49
52
55 typedef typename TOutputImage::PixelType OutputPixelType;
56 typedef typename TInputImage::PixelType InputPixelType;
57 typedef typename NumericTraits<InputPixelType>::RealType RealType;
58
61 itkStaticConstMacro(ImageDimension, unsigned int,
62 TOutputImage::ImageDimension);
63
65 typedef TInputImage InputImageType;
66 typedef TOutputImage OutputImageType;
67 typedef typename InputImageType::Pointer InputImagePointer;
68 typedef typename OutputImageType::Pointer OutputImagePointer;
69
71 typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
72
74 typedef itk::BinaryBallStructuringElement<InputPixelType,3> StructuringElementType;
75
77 typedef typename StructuringElementType::RadiusType StructuringElementRadiusType;
78
82 { this->SetUseImageSpacing(true); }
83
87 { this->SetUseImageSpacing(false); }
88
91 itkSetMacro(UseImageSpacing, bool);
92 itkGetMacro(UseImageSpacing, bool);
93
97
99 itkSetMacro(BackgroundValue, InputPixelType);
100 itkGetMacro(BackgroundValue, InputPixelType);
101
102protected:
105
106 void GenerateData() ITK_OVERRIDE;
107
108 void PrintSelf(std::ostream&, Indent) const ITK_OVERRIDE;
109
110private:
111 FWHMFeatureImageFilter(const Self&); //purposely not implemented
112 void operator=(const Self&); //purposely not implemented
113
114 bool m_UseImageSpacing;
116 InputPixelType m_BackgroundValue;
117};
118
119} // end namespace itk
120
121#ifndef ITK_MANUAL_INSTANTIATION
122#include "itkFWHMFeatureImageFilter.txx"
123#endif
124
125#endif
itkStaticConstMacro(ImageDimension, unsigned int, TOutputImage::ImageDimension)
Superclass::OutputImageRegionType OutputImageRegionType
SmartPointer< const Self > ConstPointer
void GenerateData() ITK_OVERRIDE
itkGetMacro(Radius, StructuringElementRadiusType)
itkGetMacro(BackgroundValue, InputPixelType)
void PrintSelf(std::ostream &, Indent) const ITK_OVERRIDE
itk::BinaryBallStructuringElement< InputPixelType, 3 > StructuringElementType
StructuringElementType::RadiusType StructuringElementRadiusType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
itkGetMacro(UseImageSpacing, bool)
OutputImageType::Pointer OutputImagePointer
itkSetMacro(Radius, StructuringElementRadiusType)
InputImageType::Pointer InputImagePointer
itkSetMacro(UseImageSpacing, bool)
itkTypeMacro(FWHMFeatureImageFilter, ImageToImageFilter)
NumericTraits< InputPixelType >::RealType RealType
itkSetMacro(BackgroundValue, InputPixelType)
TOutputImage::PixelType OutputPixelType