18 #ifndef __itkMaskedImageToImageFilter_h 19 #define __itkMaskedImageToImageFilter_h 21 #include "itkImageToImageFilter.h" 22 #include "itkThreadLogger.h" 36 template<
class TInputImage,
class TOutputImage,
class TMaskImage=Image<
double, 3> >
38 :
public ImageToImageFilter< TInputImage, TOutputImage >
43 typedef ImageToImageFilter< TInputImage, TOutputImage >
Superclass;
74 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
75 itkStaticConstMacro(OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
83 itkSetObjectMacro(MaskImage, MaskImageType);
84 itkGetObjectMacro(MaskImage, MaskImageType);
85 itkGetConstObjectMacro(MaskImage, MaskImageType);
86 void SetMaskImage(
const std::string& file);
89 itkSetObjectMacro(Logger, LoggerType);
90 itkGetObjectMacro(Logger, LoggerType);
91 itkGetConstObjectMacro(Logger, LoggerType);
105 virtual void PrintSelf(std::ostream & os, Indent indent)
const ITK_OVERRIDE;
106 typename LightObject::Pointer InternalClone()
const ITK_OVERRIDE;
108 virtual void VerifyMaskInformation()
const;
113 this->VerifyMaskInformation();
121 void CreateLoggerVector ();
123 void WriteLogger(
const std::string& str,
const LoggerBase::PriorityLevelType level=LoggerBase::DEBUG)
const;
125 std::string ThreadIDToString()
const;
143 void operator=(
const Self &);
150 #define ITK_TEMPLATE_MaskedImageToImageFilter(_, EXPORT, TypeX, TypeY) \ 153 _( 2 ( class EXPORT MaskedImageToImageFilter< ITK_TEMPLATE_2 TypeX > ) ) \ 154 namespace Templates \ 156 typedef MaskedImageToImageFilter< ITK_TEMPLATE_2 TypeX > MaskedImageToImageFilter##TypeY; \ 160 #if ITK_TEMPLATE_EXPLICIT 161 #include "Templates/itkMaskedImageToImageFilter+-.h" 164 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkMaskedImageToImageFilter_hxx) TInputImage InputImageType
OutputImageType::RegionType OutputImageRegionType
std::vector< LoggerPointer > LoggerVectorType
MaskImagePointer m_MaskImage
virtual void VerifyInputParameters() const
SmartPointer< Self > Pointer
InputImageType::SizeType InputImageSizeType
bool IsImageEmpty(const SmartPointer< ImageType > &image)
LoggerVectorPointer m_LoggerVector
InputImageType::Pointer InputImagePointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
InputImageType::RegionType InputImageRegionType
MaskImageType::Pointer MaskImagePointer
SmartPointer< const Self > ConstPointer
TOutputImage OutputImageType
OutputImageType::IndexType OutputImageIndexType
ImageToImageFilter with mask and threaded logger support.
MaskedImageToImageFilter Self
InputImageType::IndexType InputImageIndexType
utl_shared_ptr< LoggerVectorType > LoggerVectorPointer
#define itkSetGetMacro(name, type)
static void InitializeThreadedLibraries(const int numThreads)
OutputImageType::PixelType OutputImagePixelType
OutputImageType::Pointer OutputImagePointer
InputImageType::SpacingType InputImageSpacingType
LoggerType::Pointer LoggerPointer
InputImageType::PixelType InputImagePixelType
InputImageType::ConstPointer InputImageConstPointer
OutputImageType::SizeType OutputImageSizeType
OutputImageType::SpacingType OutputImageSpacingType