5 #include <itkImageToImageFilter.h> 6 #include <itkImageRegionIterator.h> 7 #include <itkImageRegionConstIterator.h> 8 #include <itkRelabelComponentImageFilter.h> 9 #include <itkConnectedComponentImageFilter.h> 10 #include <itkGrayscaleDilateImageFilter.h> 11 #include <itkBinaryBallStructuringElement.h> 12 #include <itkBinaryImageToLabelMapFilter.h> 13 #include <itkLabelMapToLabelImageFilter.h> 14 #include <itkLabelContourImageFilter.h> 24 template<
typename TInput,
typename TMask,
typename TOutput = TInput>
26 public itk::ImageToImageFilter< TInput , TOutput >
31 typedef itk::ImageToImageFilter< TInput , TOutput >
Superclass;
68 typedef itk::GrayscaleDilateImageFilter <ImageTypeInt,ImageTypeInt,StructuringElementType>
DilateFilterType;
78 this->SetCoordinateTolerance(tol);
79 this->SetDirectionTolerance(tol);
86 itkSetMacro(LabelToCheck,
int)
87 itkGetMacro(LabelToCheck,
int)
89 itkSetMacro(Verbose,
bool)
90 itkGetMacro(Verbose,
bool)
92 itkSetMacro(Ratio,
double)
93 itkGetMacro(Ratio,
double)
101 this->SetNumberOfRequiredOutputs(1);
102 this->SetNumberOfRequiredInputs(2);
108 this->SetNumberOfWorkUnits(itk::MultiThreaderBase::GetGlobalDefaultNumberOfThreads());
123 std::string m_OutputFilename;
itk::ImageRegionConstIterator< InputImageType > InputConstIteratorType
itk::ConnectedComponentImageFilter< InputImageType, ImageTypeInt > ConnectedComponentFilterType
Class removing lesions that are not sufficiently in the white matter. Intensity rules may not be enou...
CheckStructureNeighborFilter Self
Superclass::OutputImageRegionType OutputImageRegionType
itk::GrayscaleDilateImageFilter< ImageTypeInt, ImageTypeInt, StructuringElementType > DilateFilterType
void SetInputClassification(const TInput *image)
void SetOutputFilename(std::string filename)
void GenerateData() ITK_OVERRIDE
itk::SmartPointer< const Self > ConstPointer
void SetInputMap(const TMask *image)
itk::ImageRegionIterator< ImageTypeInt > ImageIteratorTypeInt
itk::Image< PixelTypeInt, 3 > ImageTypeInt
MaskImageType::PixelType MaskPixelType
itk::ImageRegionIterator< OutputImageType > OutputIteratorType
InputImageType::ConstPointer InputImageConstPointer
OutputImageType::Pointer OutputImagePointer
itk::ImageRegionConstIterator< MaskImageType > MaskConstIteratorType
CheckStructureNeighborFilter()
itk::SmartPointer< Self > Pointer
itk::BinaryBallStructuringElement< PixelTypeInt, 3 > StructuringElementType
virtual ~CheckStructureNeighborFilter()
InputImageType::PixelType InputPixelType
std::string GetOutputFilename()
void SetTol(const double tol)
TInput::ConstPointer GetInputClassification()
OutputImageType::PixelType OutputPixelType
MaskImageType::ConstPointer MaskImageConstPointer
itk::LabelContourImageFilter< ImageTypeInt, ImageTypeInt > LabelContourFilterType
TMask::ConstPointer GetInputMap()
itk::ImageToImageFilter< TInput, TOutput > Superclass