ITK
5.2.0
Insight Toolkit
|
#include <itkScalarImageKmeansImageFilter.h>
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static void | SetGlobalDefaultDirectionTolerance (double) |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static double | GetGlobalDefaultCoordinateTolerance () |
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 |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
using | MeansContainer = std::vector< RealPixelType > |
MeansContainer | m_InitialMeans |
ParametersType | m_FinalMeans |
bool | m_UseNonContiguousLabels { false } |
ImageRegionType | m_ImageRegion |
bool | m_ImageRegionDefined { false } |
virtual void | SetUseNonContiguousLabels (bool _arg) |
virtual const bool & | GetUseNonContiguousLabels () const |
virtual void | UseNonContiguousLabelsOn () |
virtual void | UseNonContiguousLabelsOff () |
void | SetImageRegion (const ImageRegionType ®ion) |
virtual const ImageRegionType & | GetImageRegion () const |
ScalarImageKmeansImageFilter () | |
~ScalarImageKmeansImageFilter () override=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | GenerateData () override |
void | VerifyPreconditions () ITKv5_CONST override |
Classifies the intensity values of a scalar image using the K-Means algorithm.
Given an input image with scalar values, it uses the K-Means statistical classifier in order to define labels for every pixel in the image. The filter is templated over the type of the input image. The output image is predefined as having the same dimension of the input image and pixel type unsigned char, under the assumption that the classifier will generate less than 256 classes.
You may want to look also at the RelabelImageFilter that may be used as a postprocessing stage, in particular if you are interested in ordering the labels by their relative size in number of pixels.
Definition at line 65 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::AdaptorType = itk::Statistics::ImageToListSampleAdaptor<InputImageType> |
Create a List from the scalar image.
Definition at line 97 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::ClassifierType = itk::Statistics::SampleClassifierFilter<AdaptorType> |
Definition at line 103 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::ClassLabelVectorType = typename ClassifierType::ClassLabelVectorType |
Definition at line 106 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 81 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::DecisionRuleType = itk::Statistics::MinimumDecisionRule |
Definition at line 104 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::EstimatorType = itk::Statistics::KdTreeBasedKmeansEstimator<TreeType> |
Definition at line 116 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::ImageRegionType = typename InputImageType::RegionType |
Definition at line 120 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Convenient type alias for simplifying declarations.
Definition at line 74 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::InputPixelType = typename InputImageType::PixelType |
Image type alias support
Definition at line 90 of file itkScalarImageKmeansImageFilter.h.
|
private |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
Definition at line 174 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::MeasurementVectorType = typename AdaptorType::MeasurementVectorType |
Define the Measurement vector type from the AdaptorType.
Definition at line 100 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::MembershipFunctionOriginType = typename MembershipFunctionType::CentroidType |
Definition at line 109 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::MembershipFunctionPointer = typename MembershipFunctionType::Pointer |
Definition at line 111 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::MembershipFunctionType = itk::Statistics::DistanceToCentroidMembershipFunction<MeasurementVectorType> |
Definition at line 102 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::MembershipFunctionVectorType = typename ClassifierType::MembershipFunctionVectorType |
Definition at line 108 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 75 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::OutputPixelType = typename OutputImageType::PixelType |
Definition at line 91 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::ParametersType = typename EstimatorType::ParametersType |
Definition at line 118 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 80 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::RealPixelType = typename NumericTraits<InputPixelType>::RealType |
Type used for representing the Mean values.
Definition at line 94 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::RegionOfInterestFilterType = RegionOfInterestImageFilter<InputImageType, InputImageType> |
Definition at line 122 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::Self = ScalarImageKmeansImageFilter |
Standard class type aliases.
Definition at line 78 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<InputImageType, OutputImageType> |
Definition at line 79 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::TreeGeneratorType = itk::Statistics::WeightedCentroidKdTreeGenerator<AdaptorType> |
Create the K-d tree structure.
Definition at line 114 of file itkScalarImageKmeansImageFilter.h.
using itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::TreeType = typename TreeGeneratorType::KdTreeType |
Definition at line 115 of file itkScalarImageKmeansImageFilter.h.
|
protected |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
|
overrideprotecteddefault |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
void itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::AddClassWithInitialMean | ( | RealPixelType | mean | ) |
Add a new class to the classification by specifying its initial mean.
|
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::Object.
|
overrideprotectedvirtual |
This method runs the statistical methods that identify the means of the classes and the use the distances to those means in order to label the image pixels.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Return the array of Means found after the classification.
|
virtual |
Get the region over which the statistics will be computed
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
void itk::ScalarImageKmeansImageFilter< TInputImage, TOutputImage >::SetImageRegion | ( | const ImageRegionType & | region | ) |
Set Region method to constrain classification to a certain region
|
virtual |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
|
virtual |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
|
virtual |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
|
overrideprotectedvirtual |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
Reimplemented from itk::ProcessObject.
|
staticconstexpr |
Extract dimension from input and output image.
Definition at line 71 of file itkScalarImageKmeansImageFilter.h.
|
private |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
Definition at line 178 of file itkScalarImageKmeansImageFilter.h.
|
private |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
Definition at line 182 of file itkScalarImageKmeansImageFilter.h.
|
private |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
Definition at line 184 of file itkScalarImageKmeansImageFilter.h.
|
private |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
Definition at line 176 of file itkScalarImageKmeansImageFilter.h.
|
private |
Set/Get the UseNonContiguousLabels flag. When this is set to false the labels are numbered contiguously, like in {0,1,3..N}. When the flag is set to true, the labels are selected in order to span the dynamic range of the output image. This last option is useful when the output image is intended only for display. The default value is false.
Definition at line 180 of file itkScalarImageKmeansImageFilter.h.