#include <itkNMinimaMaximaImageCalculator.h>
Computes the N highest and/or lowest intensity values of an image.
This class is templated over input image type. If only Maxima or Minima are needed, just call ComputeMaxima() or ComputeMinima(). Compute() will compute both.
Definition at line 41 of file itkNMinimaMaximaImageCalculator.h.
Inheritance diagram for itk::NMinimaMaximaImageCalculator< TInputImage >:
Collaboration diagram for itk::NMinimaMaximaImageCalculator< TInputImage >:Public Types | |
| using | ConstPointer = SmartPointer<const Self> |
| using | ImageConstPointer = typename TInputImage::ConstPointer |
| using | ImagePointer = typename TInputImage::Pointer |
| using | ImageType = TInputImage |
| using | IndexType = typename TInputImage::IndexType |
| using | IndexVector = std::vector<IndexType> |
| using | PixelType = typename TInputImage::PixelType |
| using | Pointer = SmartPointer<Self> |
| using | RegionType = typename TInputImage::RegionType |
| using | Self = NMinimaMaximaImageCalculator |
| using | Superclass = Object |
| using | ValueVector = std::vector<PixelType> |
Public Types inherited from itk::Object | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = Object |
| using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = LightObject |
Public Member Functions | |
| void | Compute () |
| void | ComputeMaxima () |
| void | ComputeMinima () |
| virtual::itk::LightObject::Pointer | CreateAnother () const |
| virtual const IndexVector & | GetIndicesOfMaxima () const |
| virtual const IndexVector & | GetIndicesOfMinima () const |
| virtual const ValueVector & | GetMaxima () const |
| virtual const ValueVector & | GetMinima () const |
| virtual SizeValueType | GetN () const |
| virtual const char * | GetNameOfClass () const |
| virtual void | SetImage (const ImageType *_arg) |
| virtual void | SetN (SizeValueType _arg) |
| void | SetRegion (const RegionType ®ion) |
Public Member Functions inherited from itk::Object | |
| unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
| unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
| LightObject::Pointer | CreateAnother () const override |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| MetaDataDictionary & | GetMetaDataDictionary () |
| const MetaDataDictionary & | GetMetaDataDictionary () const |
| virtual ModifiedTimeType | GetMTime () const |
| virtual const TimeStamp & | GetTimeStamp () const |
| bool | HasObserver (const EventObject &event) const |
| void | InvokeEvent (const EventObject &) |
| void | InvokeEvent (const EventObject &) const |
| virtual void | Modified () const |
| void | Register () const override |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) const |
| void | SetDebug (bool debugFlag) const |
| void | SetReferenceCount (int) override |
| void | UnRegister () const noexcept override |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
| virtual void | SetObjectName (std::string _arg) |
| virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
| Pointer | Clone () const |
| virtual void | Delete () |
| virtual int | GetReferenceCount () const |
| void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Static Public Attributes | |
| static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Protected Member Functions | |
| void | InternalCompute () |
| NMinimaMaximaImageCalculator () | |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| template<typename TComparator = std::less<PixelType>> | |
| void | SortedInsert (ValueVector &vals, IndexVector &indices, const PixelType &val, const IndexType &ind, TComparator comp=TComparator()) |
| ~NMinimaMaximaImageCalculator () override=default | |
Protected Member Functions inherited from itk::Object | |
| Object () | |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
| ~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
| virtual LightObject::Pointer | InternalClone () const |
| LightObject () | |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
| virtual | ~LightObject () |
Private Attributes | |
| bool | m_ComputeMaxima { true } |
| bool | m_ComputeMinima { true } |
| ImageConstPointer | m_Image |
| IndexVector | m_IndicesOfMaxima |
| IndexVector | m_IndicesOfMinima |
| ValueVector | m_Maxima |
| ValueVector | m_Minima |
| std::mutex | m_Mutex |
| SizeValueType | m_N { 7 } |
| RegionType | m_Region |
| bool | m_RegionSetByUser { false } |
Additional Inherited Members | |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
| using itk::NMinimaMaximaImageCalculator< TInputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 50 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::ImageConstPointer = typename TInputImage::ConstPointer |
Const Pointer type for the image.
Definition at line 65 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::ImagePointer = typename TInputImage::Pointer |
Pointer type for the image.
Definition at line 62 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::ImageType = TInputImage |
Type definition for the input image.
Definition at line 59 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::IndexType = typename TInputImage::IndexType |
Type definition for the input image index type.
Definition at line 75 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::IndexVector = std::vector<IndexType> |
Sorted vector of pixel indices of minima or maxima.
Definition at line 84 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::PixelType = typename TInputImage::PixelType |
Type definition for the input image pixel type.
Definition at line 68 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::Pointer = SmartPointer<Self> |
Definition at line 49 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::RegionType = typename TInputImage::RegionType |
Type definition for the input image region type.
Definition at line 78 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::Self = NMinimaMaximaImageCalculator |
Standard class type aliases.
Definition at line 47 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::Superclass = Object |
Definition at line 48 of file itkNMinimaMaximaImageCalculator.h.
| using itk::NMinimaMaximaImageCalculator< TInputImage >::ValueVector = std::vector<PixelType> |
Sorted vector of minima or maxima.
Definition at line 81 of file itkNMinimaMaximaImageCalculator.h.
|
protected |
|
overrideprotecteddefault |
| void itk::NMinimaMaximaImageCalculator< TInputImage >::Compute | ( | ) |
Compute the minimum and maximum values of intensity of the input image.
| void itk::NMinimaMaximaImageCalculator< TInputImage >::ComputeMaxima | ( | ) |
Compute the maximum value of intensity of the input image.
| void itk::NMinimaMaximaImageCalculator< TInputImage >::ComputeMinima | ( | ) |
Compute the minimum value of intensity of the input image.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LightObject.
|
virtual |
Return the indices of the N maximum intensity values.
|
virtual |
Return the indices of the N minimum intensity values.
|
virtual |
Return the N maximum intensity values.
|
virtual |
Return the N minimum intensity values.
|
virtual |
Get/Set the number of extreme intensity values to keep.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Object.
|
protected |
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::LightObject.
|
virtual |
Set the input image.
|
virtual |
| void itk::NMinimaMaximaImageCalculator< TInputImage >::SetRegion | ( | const RegionType & | region | ) |
Set the region over which the values will be computed
|
protected |
|
staticconstexpr |
Image dimensionality
Definition at line 71 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 148 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 149 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 139 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 143 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 142 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 141 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 140 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 150 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 144 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 146 of file itkNMinimaMaximaImageCalculator.h.
|
private |
Definition at line 147 of file itkNMinimaMaximaImageCalculator.h.