|
VMTK
|
Wraps itk::OtsuMultipleThresholdsImageFilter. More...
#include <vtkvmtkOtsuMultipleThresholdsImageFilter.h>
Public Types | |
| typedef vtkSimpleImageToImageFilter | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkOtsuMultipleThresholdsImageFilter * | NewInstance () const |
| virtual vtkFloatArray * | GetThresholds () |
| virtual int | GetNumberOfHistogramBins () |
| virtual void | SetNumberOfHistogramBins (int) |
| virtual int | GetNumberOfThresholds () |
| virtual void | SetNumberOfThresholds (int) |
| virtual int | GetLabelOffset () |
| virtual void | SetLabelOffset (int) |
Static Public Member Functions | |
| static vtkvmtkOtsuMultipleThresholdsImageFilter * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkOtsuMultipleThresholdsImageFilter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkOtsuMultipleThresholdsImageFilter () | |
| ~vtkvmtkOtsuMultipleThresholdsImageFilter () | |
| virtual void | SimpleExecute (vtkImageData *input, vtkImageData *output) override |
| virtual int | RequestInformation (vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector) override |
Wraps itk::OtsuMultipleThresholdsImageFilter.
vtkvmtkOtsuMultipleThresholdsImageFilter automatically labels an image into NumberOfThresholds+1 intensity classes by computing NumberOfThresholds thresholds that maximize the between-class variance of the image histogram (Otsu's method, generalized to multiple thresholds), producing an unsigned short label image and the vector of computed threshold values (retrievable with GetThresholds). It is the filter behind the vmtkimageotsuthresholds pype script, typically used for coarse, unsupervised segmentation/labeling of an image prior to further refinement (e.g. as an initialization for level set segmentation). Like the other ITK wrappers in this module, it is a thin vtkSimpleImageToImageFilter: SimpleExecute() converts the VTK input to a float itk::Image, runs itk::OtsuMultipleThresholdsImageFilter, and converts the unsigned short label output back to vtkImageData; RequestInformation sets the output scalar type to VTK_UNSIGNED_SHORT.
Definition at line 47 of file vtkvmtkOtsuMultipleThresholdsImageFilter.h.
| typedef vtkSimpleImageToImageFilter vtkvmtkOtsuMultipleThresholdsImageFilter::Superclass |
Definition at line 51 of file vtkvmtkOtsuMultipleThresholdsImageFilter.h.
|
protected |
Definition at line 40 of file vtkvmtkOtsuMultipleThresholdsImageFilter.cxx.
|
protected |
Definition at line 48 of file vtkvmtkOtsuMultipleThresholdsImageFilter.cxx.
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkOtsuMultipleThresholdsImageFilter * vtkvmtkOtsuMultipleThresholdsImageFilter::NewInstance | ( | ) | const |
|
virtual |
Set/get the number of bins used to build the image intensity histogram from which the Otsu thresholds are computed. Default: 128.
|
virtual |
Set/get the number of bins used to build the image intensity histogram from which the Otsu thresholds are computed. Default: 128.
|
virtual |
Set/get the number of intensity thresholds to compute; the output label image will have NumberOfThresholds+1 distinct label values. Default: 1.
|
virtual |
Set/get the number of intensity thresholds to compute; the output label image will have NumberOfThresholds+1 distinct label values. Default: 1.
|
virtual |
Set/get the lowest label value used when generating the output labeled image (label values are consecutive integers starting at LabelOffset). Default: 0.
|
virtual |
Set/get the lowest label value used when generating the output labeled image (label values are consecutive integers starting at LabelOffset). Default: 0.
|
virtual |
Get the array of NumberOfThresholds intensity threshold values computed by the most recent Update(), in increasing order.
|
overrideprotectedvirtual |
Definition at line 68 of file vtkvmtkOtsuMultipleThresholdsImageFilter.cxx.
|
overrideprotectedvirtual |
Definition at line 57 of file vtkvmtkOtsuMultipleThresholdsImageFilter.cxx.