Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
18 #ifndef __itkMaskedStatisticsImageFilter_h
19 #define __itkMaskedStatisticsImageFilter_h
21 #include "itkImageToImageFilter.h"
22 #include "itkNumericTraits.h"
24 #include "itkSimpleDataObjectDecorator.h"
48 template<
typename TInputImage ,
typename TMaskImage = ::itk::Image<
unsigned char, TInputImage::ImageDimension> >
50 public ImageToImageFilter< TInputImage, TInputImage >
55 typedef ImageToImageFilter< TInputImage, TInputImage >
Superclass;
70 typedef typename TInputImage::SizeType
SizeType;
76 TInputImage::ImageDimension);
79 typedef typename NumericTraits< PixelType >::RealType
RealType;
137 using Superclass::MakeOutput;
143 #ifdef ITK_USE_CONCEPT_CHECKING
145 itkConceptMacro( InputHasNumericTraitsCheck,
146 ( Concept::HasNumericTraits< PixelType > ) );
153 void PrintSelf(std::ostream & os, Indent indent)
const override;
169 outputRegionForThread,
170 ThreadIdType threadId)
override;
180 void operator=(
const Self &);
182 Array< RealType > m_ThreadSum;
183 Array< RealType > m_SumOfSquares;
184 Array< SizeValueType > m_Count;
185 Array< PixelType > m_ThreadMin;
186 Array< PixelType > m_ThreadMax;
191 #ifndef ITK_MANUAL_INSTANTIATION
192 #include "itkMaskedStatisticsImageFilter.hxx"
RealType GetSigma() const
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
void ThreadedGenerateData(const RegionType &outputRegionForThread, ThreadIdType threadId) override
TInputImage::SizeType SizeType
RealObjectType * GetSigmaOutput()
Superclass::InputImagePointer InputImagePointer
PixelType GetMinimum() const
itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension)
::mitk::Image InputImageType
Compute min. max, variance and mean of an (masked) Image.
void GenerateInputRequestedRegion() override
PixelObjectType * GetMaximumOutput()
SmartPointer< const Self > ConstPointer
Superclass::InputImageType InputImageType
RealType GetVariance() const
RealObjectType * GetMeanOutput()
void AllocateOutputs() override
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
MaskImageType::RegionType MaskImageRegionType
MaskedStatisticsImageFilter Self
MaskedStatisticsImageFilter()
SimpleDataObjectDecorator< RealType > RealObjectType
void AfterThreadedGenerateData() override
TInputImage::PixelType PixelType
NumericTraits< PixelType >::RealType RealType
PixelType GetMaximum() const
ImageToImageFilter< TInputImage, TInputImage > Superclass
MaskImageType::ConstPointer MaskImageConstPointer
RealObjectType * GetSumOutput()
void PrintSelf(std::ostream &os, Indent indent) const override
RealObjectType * GetVarianceOutput()
PixelObjectType * GetMinimumOutput()
DataObject::Pointer DataObjectPointer
void BeforeThreadedGenerateData() override
SimpleDataObjectDecorator< PixelType > PixelObjectType
TInputImage::IndexType IndexType
~MaskedStatisticsImageFilter() override
SmartPointer< Self > Pointer
TInputImage::RegionType RegionType
void EnlargeOutputRequestedRegion(DataObject *data) override