#include <itkSampleClassifierFilter.h>
Sample classification class.
This filter takes as input a Sample and produces as output a classification in the form of a MembershipSample object.
Definition at line 45 of file itkSampleClassifierFilter.h.
Private Attributes | |
DecisionRulePointer | m_DecisionRule {} |
unsigned int | m_NumberOfClasses {} |
using | DataObjectPointerArraySizeType = ProcessObject::DataObjectPointerArraySizeType |
DataObjectPointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
virtual DataObjectPointer | MakeOutput (const DataObjectIdentifierType &) |
const char * | GetNameOfClass () const override |
virtual::itk::LightObject::Pointer | CreateAnother () const |
static Pointer | New () |
Additional Inherited Members | |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
![]() | |
template<typename TSourceObject> | |
static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
static constexpr float | progressFixedToFloat (uint32_t fixed) |
static uint32_t | progressFloatToFixed (float f) |
![]() | |
TimeStamp | m_OutputInformationMTime {} |
bool | m_Updating {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::Statistics::SampleClassifierFilter< TSample >::ClassLabelType = IdentifierType |
Definition at line 85 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::ClassLabelVectorObjectPointer = ClassLabelVectorObjectType::Pointer |
Definition at line 88 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::ClassLabelVectorObjectType = SimpleDataObjectDecorator<ClassLabelVectorType> |
Definition at line 87 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::ClassLabelVectorType = std::vector<ClassLabelType> |
Definition at line 86 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::ConstPointer = SmartPointer<const Self> |
Definition at line 54 of file itkSampleClassifierFilter.h.
|
protected |
Make a DataObject of the correct type to used as the specified output. This method is automatically called when DataObject::DisconnectPipeline() is called.
Definition at line 150 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::DecisionRulePointer = DecisionRuleType::ConstPointer |
Definition at line 92 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::DecisionRuleType = DecisionRule |
type of the decision rule
Definition at line 91 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MeasurementType = typename SampleType::MeasurementType |
type alias from SampleType object
Definition at line 69 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MeasurementVectorType = typename SampleType::MeasurementVectorType |
Definition at line 70 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipFunctionPointer = typename MembershipFunctionType::ConstPointer |
Definition at line 74 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipFunctionsWeightsArrayObjectType = SimpleDataObjectDecorator<MembershipFunctionsWeightsArrayType> |
Definition at line 82 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipFunctionsWeightsArrayPointer = typename MembershipFunctionsWeightsArrayObjectType::Pointer |
Definition at line 83 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipFunctionsWeightsArrayType = Array<double> |
type alias for membership functions weight proportion
Definition at line 80 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipFunctionType = MembershipFunctionBase<MeasurementVectorType> |
type alias for the MembershipFunction
Definition at line 73 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipFunctionVectorObjectPointer = typename MembershipFunctionVectorObjectType::Pointer |
Definition at line 77 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipFunctionVectorObjectType = SimpleDataObjectDecorator<MembershipFunctionVectorType> |
Definition at line 76 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipFunctionVectorType = std::vector<MembershipFunctionPointer> |
Definition at line 75 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipSampleObjectPointer = typename MembershipSampleType::Pointer |
Definition at line 66 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::MembershipSampleType = MembershipSample<SampleType> |
type alias Output type
Definition at line 65 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::Pointer = SmartPointer<Self> |
Definition at line 53 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::SampleType = TSample |
Type of the input Sample
Definition at line 62 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::Self = SampleClassifierFilter |
Standard class type alias
Definition at line 51 of file itkSampleClassifierFilter.h.
using itk::Statistics::SampleClassifierFilter< TSample >::Superclass = ProcessObject |
Definition at line 52 of file itkSampleClassifierFilter.h.
|
protected |
|
overrideprotecteddefault |
|
virtual |
Reimplemented from itk::Object.
|
overrideprotectedvirtual |
Starts the classification process
Reimplemented from itk::ProcessObject.
|
virtual |
Set/Get the decision rule.
const SampleType * itk::Statistics::SampleClassifierFilter< TSample >::GetInput | ( | ) | const |
|
overridevirtual |
Reimplemented from itk::ProcessObject.
|
virtual |
Number of classes. This must match the number of labels and membership functions provided by the user, otherwise an exception will be thrown at
const MembershipSampleType * itk::Statistics::SampleClassifierFilter< TSample >::GetOutput | ( | ) | const |
Returns the classification result
|
protectedvirtual |
Make a DataObject of the correct type to used as the specified output.
Every ProcessObject subclass must be able to create a DataObject that can be used as a specified output. This method is automatically called when DataObject::DisconnectPipeline() is called. DataObject::DisconnectPipeline, disconnects a data object from being an output of its current source. When the data object is disconnected, the ProcessObject needs to construct a replacement output data object so that the ProcessObject is in a valid state. So DataObject::DisconnectPipeline eventually calls ProcessObject::MakeOutput. Note that MakeOutput always returns a itkSmartPointer to a DataObject. ImageSource and MeshSource override this method to create the correct type of image and mesh respectively. If a filter has multiple outputs of different types, then that filter must provide an implementation of MakeOutput().
Reimplemented from itk::ProcessObject.
|
overrideprotectedvirtual |
Make a DataObject of the correct type to used as the specified output. This method is automatically called when DataObject::DisconnectPipeline() is called.
Reimplemented from itk::ProcessObject.
|
static |
|
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::ProcessObject.
void itk::Statistics::SampleClassifierFilter< TSample >::SetClassLabels | ( | const ClassLabelVectorObjectType * | classLabels | ) |
Sets input vector of class labels. The length of this vector must match the number of classes, otherwise an exception will be thrown at run time.
|
virtual |
Set/Get the decision rule.
|
virtual |
Sets the input sample that will be classified by this filter.
Reimplemented from itk::ProcessObject.
void itk::Statistics::SampleClassifierFilter< TSample >::SetInput | ( | const SampleType * | sample | ) |
void itk::Statistics::SampleClassifierFilter< TSample >::SetMembershipFunctions | ( | const MembershipFunctionVectorObjectType * | membershipFunctions | ) |
Sets input vector of membership functions. The length of this vector must match the number of classes, otherwise an exception will be thrown at run time.
void itk::Statistics::SampleClassifierFilter< TSample >::SetMembershipFunctionsWeightsArray | ( | const MembershipFunctionsWeightsArrayObjectType * | weightsArray | ) |
Sets array of weights for the membership functions
|
virtual |
Number of classes. This must match the number of labels and membership functions provided by the user, otherwise an exception will be thrown at
|
private |
Decision Rule
Definition at line 160 of file itkSampleClassifierFilter.h.
|
private |
Definition at line 157 of file itkSampleClassifierFilter.h.