Loading...
Searching...
No Matches
itkErodeMaskImageFilter.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkErodeMaskImageFilter_h
#define itkErodeMaskImageFilter_h
#include "itkImageToImageFilter.h"
#include "itkMultiResolutionPyramidImageFilter.h"
namespace itk
{
template <class TImage>
class ITK_TEMPLATE_EXPORT ErodeMaskImageFilter : public ImageToImageFilter<TImage, TImage>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(ErodeMaskImageFilter);
using Self = ErodeMaskImageFilter;
using Superclass = ImageToImageFilter<TImage, TImage>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkTypeMacro(ErodeMaskImageFilter, ImageToImageFilter);
itkNewMacro(Self);
using InputImageType = TImage;
using OutputImageType = TImage;
using InputImagePointer = typename InputImageType::Pointer;
using OutputImagePointer = typename OutputImageType::Pointer;
using InputPixelType = typename InputImageType::PixelType;
using OutputPixelType = typename OutputImageType::PixelType;
itkStaticConstMacro(InputImageDimension, unsigned int, InputImageType::ImageDimension);
itkStaticConstMacro(OutputImageDimension, unsigned int, OutputImageType::ImageDimension);
itkStaticConstMacro(ImageDimension, unsigned int, OutputImageType::ImageDimension);
using ImagePyramidFilterType = MultiResolutionPyramidImageFilter<InputImageType, OutputImageType>;
using ScheduleType = typename ImagePyramidFilterType::ScheduleType;
virtual void
SetSchedule(const ScheduleType & schedule)
{
this->m_Schedule = schedule;
this->Modified();
}
itkGetConstReferenceMacro(Schedule, ScheduleType);
itkSetMacro(IsMovingMask, bool);
itkGetConstMacro(IsMovingMask, bool);
itkSetMacro(ResolutionLevel, unsigned int);
itkGetConstMacro(ResolutionLevel, unsigned int);
#ifdef ITK_USE_CONCEPT_CHECKING
itkConceptMacro(SameDimensionCheck, (Concept::SameDimension<InputImageDimension, OutputImageDimension>));
#endif
protected:
ErodeMaskImageFilter() = default;
~ErodeMaskImageFilter() override = default;
void
GenerateData() override;
private:
bool m_IsMovingMask{ false };
unsigned int m_ResolutionLevel{ 0 };
ScheduleType m_Schedule{ 1, InputImageDimension, 1u };
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkErodeMaskImageFilter.hxx"
#endif
#endif
itk::ErodeMaskImageFilter::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, InputImageType::ImageDimension)
itk::ErodeMaskImageFilter::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkErodeMaskImageFilter.h:66
itk::ErodeMaskImageFilter::GenerateData
void GenerateData() override
itk::ErodeMaskImageFilter::SetSchedule
virtual void SetSchedule(const ScheduleType &schedule)
Definition itkErodeMaskImageFilter.h:96
itk::ErodeMaskImageFilter::Pointer
SmartPointer< Self > Pointer
Definition itkErodeMaskImageFilter.h:65
itk::ErodeMaskImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition itkErodeMaskImageFilter.h:79
itk::ErodeMaskImageFilter::itkStaticConstMacro
itkStaticConstMacro(OutputImageDimension, unsigned int, OutputImageType::ImageDimension)
itk::ErodeMaskImageFilter< FixedMaskImageType >::m_Schedule
ScheduleType m_Schedule
Definition itkErodeMaskImageFilter.h:140
itk::ErodeMaskImageFilter::OutputImageType
TImage OutputImageType
Definition itkErodeMaskImageFilter.h:76
itk::ErodeMaskImageFilter::ScheduleType
typename ImagePyramidFilterType::ScheduleType ScheduleType
Definition itkErodeMaskImageFilter.h:89
itk::ErodeMaskImageFilter< FixedMaskImageType >::m_ResolutionLevel
unsigned int m_ResolutionLevel
Definition itkErodeMaskImageFilter.h:139
itk::ErodeMaskImageFilter::Superclass
ImageToImageFilter< TImage, TImage > Superclass
Definition itkErodeMaskImageFilter.h:64
itk::ErodeMaskImageFilter::ImagePyramidFilterType
MultiResolutionPyramidImageFilter< InputImageType, OutputImageType > ImagePyramidFilterType
Definition itkErodeMaskImageFilter.h:88
itk::ErodeMaskImageFilter::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition itkErodeMaskImageFilter.h:78
itk::ErodeMaskImageFilter::itkStaticConstMacro
itkStaticConstMacro(ImageDimension, unsigned int, OutputImageType::ImageDimension)
itk::ErodeMaskImageFilter< FixedMaskImageType >::m_IsMovingMask
bool m_IsMovingMask
Definition itkErodeMaskImageFilter.h:138
itk::ErodeMaskImageFilter::ErodeMaskImageFilter
ErodeMaskImageFilter()=default
itk::ErodeMaskImageFilter::Self
ErodeMaskImageFilter Self
Definition itkErodeMaskImageFilter.h:63
itk::ErodeMaskImageFilter::~ErodeMaskImageFilter
~ErodeMaskImageFilter() override=default
itk::ErodeMaskImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition itkErodeMaskImageFilter.h:80
itk::ErodeMaskImageFilter::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(ErodeMaskImageFilter)
itk::ErodeMaskImageFilter::InputImageType
TImage InputImageType
Definition itkErodeMaskImageFilter.h:75
itk::ErodeMaskImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition itkErodeMaskImageFilter.h:77
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |