![]() |
open_iA
2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Computes the Otsu's threshold for an image. More...
#include <itkRemovePeaksOtsuThresholdImageCalculator.h>
Public Types | |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef TInputImage::ConstPointer | ImageConstPointer |
| Const Pointer type for the image. More... | |
| typedef TInputImage::Pointer | ImagePointer |
| Pointer type for the image. More... | |
| typedef TInputImage | ImageType |
| Type definition for the input image. More... | |
| typedef TInputImage::PixelType | PixelType |
| Type definition for the input image pixel type. More... | |
| typedef SmartPointer< Self > | Pointer |
| typedef TInputImage::RegionType | RegionType |
| Type definition for the input image region type. More... | |
| typedef RemovePeaksOtsuThresholdImageCalculator | Self |
| Standard class typedefs. More... | |
| typedef Object | Superclass |
Public Member Functions | |
| void | Compute (void) |
| Compute the Otsu's threshold for the input image. More... | |
| itkGetMacro (NumberOfHistogramBins, unsigned long) | |
| itkGetMacro (Threshold, PixelType) | |
| Return the Otsu's threshold value. More... | |
| itkNewMacro (Self) | |
| Method for creation through the object factory. More... | |
| itkSetClampMacro (NumberOfHistogramBins, unsigned long, 1, NumericTraits< unsigned long >::max()) | |
| Set/Get the number of histogram bins. More... | |
| itkSetConstObjectMacro (Image, ImageType) | |
| Set the input image. More... | |
| itkTypeMacro (RemovePeaksOtsuThresholdImageCalculator, Object) | |
| Run-time type information (and related methods). More... | |
| void | SetRegion (const RegionType ®ion) |
| Set the region over which the values will be computed. More... | |
Protected Member Functions | |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| RemovePeaksOtsuThresholdImageCalculator () | |
| virtual | ~RemovePeaksOtsuThresholdImageCalculator () |
Computes the Otsu's threshold for an image.
This calculator computes the Otsu's threshold which separates an image into foreground and background components. The method relies on a histogram of image intensities. The basic idea is to maximize the between-class variance.
This class is templated over the input image type.
| typedef SmartPointer<const Self> itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::ConstPointer |
| typedef TInputImage::ConstPointer itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::ImageConstPointer |
Const Pointer type for the image.
| typedef TInputImage::Pointer itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::ImagePointer |
Pointer type for the image.
| typedef TInputImage itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::ImageType |
Type definition for the input image.
| typedef TInputImage::PixelType itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::PixelType |
Type definition for the input image pixel type.
| typedef SmartPointer<Self> itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::Pointer |
| typedef TInputImage::RegionType itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::RegionType |
Type definition for the input image region type.
| typedef RemovePeaksOtsuThresholdImageCalculator itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::Self |
Standard class typedefs.
| typedef Object itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::Superclass |
|
protected |
|
inlineprotectedvirtual |
| void itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::Compute | ( | void | ) |
Compute the Otsu's threshold for the input image.
| itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::itkGetMacro | ( | NumberOfHistogramBins | , |
| unsigned long | |||
| ) |
| itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::itkGetMacro | ( | Threshold | , |
| PixelType | |||
| ) |
Return the Otsu's threshold value.
| itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::itkNewMacro | ( | Self | ) |
Method for creation through the object factory.
| itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::itkSetClampMacro | ( | NumberOfHistogramBins | , |
| unsigned long | , | ||
| 1 | , | ||
| NumericTraits< unsigned long > | ::max() | ||
| ) |
Set/Get the number of histogram bins.
Default is 128.
| itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::itkSetConstObjectMacro | ( | Image | , |
| ImageType | |||
| ) |
Set the input image.
| itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::itkTypeMacro | ( | RemovePeaksOtsuThresholdImageCalculator< TInputImage > | , |
| Object | |||
| ) |
Run-time type information (and related methods).
|
overrideprotected |
| void itk::RemovePeaksOtsuThresholdImageCalculator< TInputImage >::SetRegion | ( | const RegionType & | region | ) |
Set the region over which the values will be computed.
1.8.16