18#ifndef itkComputeImageExtremaFilter_h
19#define itkComputeImageExtremaFilter_h
21#include "itkImageSink.h"
22#include "itkImageMaskSpatialObject.h"
32template <
typename TInputImage>
53 using Superclass::InputImageDimension;
54 using typename Superclass::InputImageRegionType;
55 using PixelType =
typename Superclass::InputImagePixelType;
101 bool m_SameGeometry{
false };
103 PixelType m_ThreadMin{ 1 };
104 PixelType m_ThreadMax{ 1 };
106 std::mutex m_Mutex{};
110#ifndef ITK_MANUAL_INSTANTIATION
111# include "itkComputeImageExtremaFilter.hxx"
Compute minimum and maximum pixel value of an Image.
~ComputeImageExtremaFilter() override=default
itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension)
PixelType GetMinimum() const
typename ImageSpatialMaskType::ConstPointer ImageSpatialMaskConstPointer
typename TInputImage::Pointer InputImagePointer
SmartPointer< const Self > ConstPointer
ImageMaskSpatialObject< Self::ImageDimension > ImageSpatialMaskType
ComputeImageExtremaFilter()=default
typename ImageSpatialMaskType::Pointer ImageSpatialMaskPointer
void ThreadedStreamedGenerateData(const InputImageRegionType &) override
static MinMaxResult RetrieveMinMax(const TInputImage &, const InputImageRegionType &, const ImageSpatialMaskType *, bool)
void BeforeStreamedGenerateData() override
ITK_DISALLOW_COPY_AND_MOVE(ComputeImageExtremaFilter)
PixelType GetMaximum() const