13 #ifndef mitkMinMaxImageFilterWithIndex_h
14 #define mitkMinMaxImageFilterWithIndex_h
19 #include <itkImageToImageFilter.h>
20 #include <itkImageRegionConstIteratorWithIndex.h>
37 template <
typename TInputImage>
43 typedef ImageToImageFilter< TInputImage, TInputImage >
Superclass;
54 typedef typename TInputImage::SizeType
SizeType;
57 typedef typename NumericTraits< PixelType >::RealType
RealType;
98 this->DynamicMultiThreadingOff();
104 outputRegionForThread,
105 ThreadIdType threadId)
override;
112 std::vector<PixelType> m_ThreadMin;
113 std::vector<PixelType> m_ThreadMax;
114 std::vector<IndexType> m_ThreadMinIndex;
115 std::vector<IndexType> m_ThreadMaxIndex;
124 #include <mitkMinMaxImageFilterWithIndex.tpp>
Computes the minimum and maximum pixel values and their indices in an image.
MinMaxImageFilterWithIndex()
IndexType GetMinIndex() const
Get the image index of the minimum pixel value.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
void AllocateOutputs() override
void AfterThreadedGenerateData() override
void ThreadedGenerateData(const RegionType &outputRegionForThread, ThreadIdType threadId) override
TInputImage::IndexType IndexType
TInputImage::PixelType PixelType
RealType GetMax() const
Get the maximum pixel value found in the image.
MinMaxImageFilterWithIndex Self
ImageToImageFilter< TInputImage, TInputImage > Superclass
TInputImage::RegionType RegionType
RealType GetMin() const
Get the minimum pixel value found in the image.
TInputImage::SizeType SizeType
NumericTraits< PixelType >::RealType RealType
IndexType GetMaxIndex() const
Get the image index of the maximum pixel value.
void BeforeThreadedGenerateData() override