15 #ifndef itkMIDASRethresholdingFilter_h
16 #define itkMIDASRethresholdingFilter_h
18 #include <itkImageToImageFilter.h>
19 #include <itkRegionOfInterestImageFilter.h>
20 #include <itkPasteImageFilter.h>
21 #include <itkBinaryCrossStructuringElement.h>
22 #include <itkBinaryErodeImageFilter.h>
46 template <
class TInputImage1,
class TInputImage2,
class TOutputImage>
52 typedef ImageToImageFilter<TInputImage1, TOutputImage>
SuperClass;
86 typedef typename itk::RegionOfInterestImageFilter<InputMaskImageType, InputMaskImageType>
ROIImageFilterType;
92 typedef typename itk::BinaryCrossStructuringElement<typename InputMaskImageType::PixelType, InputMaskImageType::ImageDimension >
StructuringElementType;
93 typedef typename itk::BinaryErodeImageFilter<InputMaskImageType, InputMaskImageType, StructuringElementType>
ErosionFilterType;
103 void SetGreyScaleImageInput(
const InputMainImageType*
image);
106 void SetBinaryImageInput(
const InputMaskImageType*
image);
109 void SetThresholdedImageInput(
const InputMaskImageType*
image);
112 itkSetMacro(InValue, PixelType2);
113 itkGetConstMacro(InValue, PixelType2);
116 itkSetMacro(OutValue, PixelType2);
117 itkGetConstMacro(OutValue, PixelType2);
120 itkSetMacro(DownSamplingFactor,
unsigned int);
121 itkGetConstMacro(DownSamplingFactor,
unsigned int);
124 itkSetMacro(LowPercentageThreshold,
unsigned int);
125 itkGetConstMacro(LowPercentageThreshold,
unsigned int);
128 itkSetMacro(HighPercentageThreshold,
unsigned int);
129 itkGetConstMacro(HighPercentageThreshold,
unsigned int);
134 void PrintSelf(std::ostream& os, Indent indent)
const;
141 void operator=(
const Self&);
143 void CopyImageToOutput(OutputImageType*
image);
146 unsigned int m_DownSamplingFactor;
147 unsigned int m_LowPercentageThreshold;
148 unsigned int m_HighPercentageThreshold;
149 PixelType2 m_InValue;
150 PixelType2 m_OutValue;
153 ROIImageFilterPointer m_ROIImageFilter;
154 DownSamplingFilterPointer m_DownSamplingFilter;
155 ErosionFilterPointer m_ErosionFilter1;
156 ErosionFilterPointer m_ErosionFilter2;
157 UpSamplingFilterPointer m_UpSamplingFilter;
158 PasteImageFilterPointer m_PasteImageFilter;
163 #ifndef ITK_MANUAL_INSTANTIATION
164 #include "itkMIDASRethresholdingFilter.txx"
InputMainImageType::RegionType InputMainImageRegionType
Definition: itkMIDASRethresholdingFilter.h:72
SmartPointer< Self > Pointer
Definition: itkMIDASDownSamplingFilter.h:39
SmartPointer< const Self > ConstPointer
Definition: itkMIDASRethresholdingFilter.h:54
ImageType::SizeType SizeType
Definition: niftkMakeLapUSProbeBasicModel.cxx:31
itk::MIDASUpSamplingFilter< InputMaskImageType, InputMaskImageType > UpSamplingFilterType
Definition: itkMIDASRethresholdingFilter.h:96
UpSamplingFilterType::Pointer UpSamplingFilterPointer
Definition: itkMIDASRethresholdingFilter.h:97
PasteImageFilterType::Pointer PasteImageFilterPointer
Definition: itkMIDASRethresholdingFilter.h:100
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glew.h:4052
InputMainImageType::SizeType InputMainImageSizeType
Definition: itkMIDASRethresholdingFilter.h:71
Definition: niftkITKAffineResampleImage.cxx:74
ImageType::IndexType IndexType
Definition: niftkMakeLapUSProbeBasicModel.cxx:32
InputMaskImageType::RegionType InputMaskImageRegionType
Definition: itkMIDASRethresholdingFilter.h:77
TInputImage2::PixelType PixelType2
Definition: itkMIDASRethresholdingFilter.h:66
TInputImage2 OutputImageType
Definition: itkMIDASRethresholdingFilter.h:80
ROIImageFilterType::Pointer ROIImageFilterPointer
Definition: itkMIDASRethresholdingFilter.h:87
SmartPointer< Self > Pointer
Definition: itkMIDASUpSamplingFilter.h:45
TInputImage2 InputMaskImageType
Definition: itkMIDASRethresholdingFilter.h:74
itk::BinaryCrossStructuringElement< typename InputMaskImageType::PixelType, InputMaskImageType::ImageDimension > StructuringElementType
Definition: itkMIDASRethresholdingFilter.h:92
SmartPointer< Self > Pointer
Definition: itkMIDASRethresholdingFilter.h:53
itk::BinaryErodeImageFilter< InputMaskImageType, InputMaskImageType, StructuringElementType > ErosionFilterType
Definition: itkMIDASRethresholdingFilter.h:93
DownSamplingFilterType::Pointer DownSamplingFilterPointer
Definition: itkMIDASRethresholdingFilter.h:90
Performs the re-thresholding, described in step 5 of "Interactive Algorithms for the segmentation and...
Definition: itkMIDASRethresholdingFilter.h:47
itk::MIDASDownSamplingFilter< InputMaskImageType, InputMaskImageType > DownSamplingFilterType
Definition: itkMIDASRethresholdingFilter.h:89
float PixelType
Definition: niftkBreastDCEandADC.cxx:88
OutputImageType::IndexType OutputImageIndexType
Definition: itkMIDASRethresholdingFilter.h:84
InputMainImageType::Pointer InputMainImagePointer
Definition: itkMIDASRethresholdingFilter.h:70
ImageType::RegionType RegionType
Definition: niftkMakeLapUSProbeBasicModel.cxx:30
TInputImage1::PixelType PixelType1
Definition: itkMIDASRethresholdingFilter.h:60
MIDASRethresholdingFilter Self
Definition: itkMIDASRethresholdingFilter.h:51
ImageToImageFilter< TInputImage1, TOutputImage > SuperClass
Definition: itkMIDASRethresholdingFilter.h:52
Performs the up sampling described in step 5 of "Interactive Algorithms for the segmentation and quan...
Definition: itkMIDASUpSamplingFilter.h:39
Performs the down sampling described in step 5 of "Interactive Algorithms for the segmentation and qu...
Definition: itkMIDASDownSamplingFilter.h:33
itk::RegionOfInterestImageFilter< InputMaskImageType, InputMaskImageType > ROIImageFilterType
Definition: itkMIDASRethresholdingFilter.h:86
OutputImageType::SizeType OutputImageSizeType
Definition: itkMIDASRethresholdingFilter.h:83
InputMaskImageType::Pointer InputMaskImagePointer
Definition: itkMIDASRethresholdingFilter.h:75
ErosionFilterType::Pointer ErosionFilterPointer
Definition: itkMIDASRethresholdingFilter.h:94
OutputImageType::Pointer OutputImagePointer
Definition: itkMIDASRethresholdingFilter.h:81
InputMaskImageType::SizeType InputMaskImageSizeType
Definition: itkMIDASRethresholdingFilter.h:76
TInputImage1 InputMainImageType
Definition: itkMIDASRethresholdingFilter.h:69
virtual ~MIDASRethresholdingFilter()
Definition: itkMIDASRethresholdingFilter.h:133
itk::PasteImageFilter< InputMaskImageType, InputMaskImageType > PasteImageFilterType
Definition: itkMIDASRethresholdingFilter.h:99
InputMaskImageType::IndexType InputMaskImageIndexType
Definition: itkMIDASRethresholdingFilter.h:78
OutputImageType::RegionType OutputImageRegionType
Definition: itkMIDASRethresholdingFilter.h:82