OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
otb::HooverInstanceFilter< TLabelMap > Class Template Reference

#include <otbHooverInstanceFilter.h>

+ Inheritance diagram for otb::HooverInstanceFilter< TLabelMap >:
+ Collaboration diagram for otb::HooverInstanceFilter< TLabelMap >:

Public Types

typedef
LabelObjectType::AttributesValueType 
AttributesValueType
 
typedef
LabelObjectType::AttributeType 
AttributeType
 
enum  AttributeTypes {
  ATTRIBUTE_CD =100,
  ATTRIBUTE_OS,
  ATTRIBUTE_US,
  ATTRIBUTE_M,
  ATTRIBUTE_N,
  ATTRIBUTE_RC,
  ATTRIBUTE_RF,
  ATTRIBUTE_RA,
  ATTRIBUTE_RM,
  ATTRIBUTE_RN
}
 
typedef
itk::VariableLengthVector
< CoefficientType
CardinalVector
 
typedef unsigned long CoefficientType
 
typedef LabelMapType::ConstIterator ConstIteratorType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef LabelMapType::RegionType ImageRegionType
 
typedef LabelObjectType::IndexType IndexType
 
typedef LabelMapType::Iterator IteratorType
 
typedef LabelMapType::Pointer LabelMapPointer
 
typedef TLabelMap LabelMapType
 
typedef
LabelMapType::LabelObjectType 
LabelObjectType
 
typedef LabelObjectType::LabelType LabelType
 
typedef
LabelMapType::LabelVectorType 
LabelVectorType
 
typedef
itk::VariableSizeMatrix
< CoefficientType
MatrixType
 
typedef std::vector
< LabelObjectType * > 
ObjectVectorType
 
typedef itk::SmartPointer< SelfPointer
 
typedef std::set< CoefficientTypeRegionSetType
 
typedef HooverInstanceFilter Self
 
typedef
itk::InPlaceLabelMapFilter
< TLabelMap > 
Superclass
 
- Public Types inherited from itk::InPlaceLabelMapFilter< TLabelMap >
typedef SmartPointer< const SelfConstPointer
 
typedef InputImageType::IndexType IndexType
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TImage InputImageType
 
typedef
InputImageType::LabelObjectType 
LabelObjectType
 
typedef
Superclass::OutputImagePixelType 
OutputImagePixelType
 
typedef
Superclass::OutputImagePointer 
OutputImagePointer
 
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
 
typedef Superclass::OutputImageType OutputImageType
 
typedef InputImageType::PixelType PixelType
 
typedef SmartPointer< SelfPointer
 
typedef InputImageType::RegionType RegionType
 
typedef InPlaceLabelMapFilter Self
 
typedef LabelMapFilter< TImage,
TImage > 
Superclass
 
typedef TImage TOutputImage
 
- Public Types inherited from itk::LabelMapFilter< TLabelMap, TLabelMap >
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::InputImageConstPointer 
InputImageConstPointer
 
typedef
Superclass::InputImagePixelType 
InputImagePixelType
 
typedef
Superclass::InputImagePointer 
InputImagePointer
 
typedef
Superclass::InputImageRegionType 
InputImageRegionType
 
typedef Superclass::InputImageType InputImageType
 
typedef
InputImageType::LabelObjectType 
LabelObjectType
 
typedef
OutputImageType::ConstPointer 
OutputImageConstPointer
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef TImage OutputImageType
 
typedef SmartPointer< SelfPointer
 
typedef LabelMapFilter Self
 
typedef ImageToImageFilter
< TImage, TImage > 
Superclass
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
typedef SmartPointer< const SelfConstPointer
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef
Superclass::OutputImagePixelType 
OutputImagePixelType
 
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
 
typedef SmartPointer< SelfPointer
 
typedef ImageToImageFilter Self
 
typedef ImageSource< TOutputImage > Superclass
 
- Public Types inherited from itk::ImageSource< TOutputImage >
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef
Superclass::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef TOutputImage OutputImageType
 
typedef SmartPointer< SelfPointer
 
typedef ImageSource Self
 
typedef ProcessObject Superclass
 
- Public Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual MatrixType GetHooverMatrix ()
 
virtual const char * GetNameOfClass () const
 
virtual double GetThreshold ()
 
virtual bool GetUseExtendedAttributes ()
 
virtual void SetHooverMatrix (MatrixType _arg)
 
virtual void SetThreshold (double _arg)
 
virtual void SetUseExtendedAttributes (bool _arg)
 
virtual AttributesValueType GetMeanRC ()
 
virtual AttributesValueType GetMeanRF ()
 
virtual AttributesValueType GetMeanRA ()
 
virtual AttributesValueType GetMeanRM ()
 
virtual AttributesValueType GetMeanRN ()
 
- Public Member Functions inherited from itk::InPlaceLabelMapFilter< TLabelMap >
bool CanRunInPlace () const
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual bool GetInPlace ()
 
virtual void InPlaceOff ()
 
virtual void InPlaceOn ()
 
virtual void SetInPlace (bool _arg)
 
- Public Member Functions inherited from itk::LabelMapFilter< TLabelMap, TLabelMap >
virtual ::itk::LightObject::Pointer CreateAnother () const
 
void EnlargeOutputRequestedRegion (DataObject *) override
 
void GenerateInputRequestedRegion () override
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
virtual double GetCoordinateTolerance () const
 
virtual double GetDirectionTolerance () const
 
const InputImageTypeGetInput () const
 
const InputImageTypeGetInput (unsigned int idx) const
 
virtual void PopBackInput () override
 
virtual void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *image)
 
virtual void PushFrontInput (const InputImageType *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual void SetDirectionTolerance (double _arg)
 
virtual void SetInput (const InputImageType *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput (unsigned int idx)
 
OutputImageTypeGetOutput ()
 
const OutputImageTypeGetOutput () const
 
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void GraftOutput (DataObject *output)
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override
 
virtual
ProcessObject::DataObjectPointer 
MakeOutput (const ProcessObject::DataObjectIdentifierType &) override
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual const ThreadIdTypeGetNumberOfThreads () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual const float & GetProgress () const
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual bool GetReleaseDataFlag () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
void ReleaseDataFlagOff ()
 
void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
void SetProgress (float progress)
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static AttributeType GetAttributeFromName (const std::string &name)
 
static std::string GetNameFromAttribute (const AttributeType &a)
 
static Pointer New ()
 
- Static Public Member Functions inherited from itk::InPlaceLabelMapFilter< TLabelMap >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::LabelMapFilter< TLabelMap, TLabelMap >
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 flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

 ~HooverInstanceFilter () override
 
- Protected Member Functions inherited from itk::InPlaceLabelMapFilter< TLabelMap >
virtual InputImageTypeGetLabelMap () override
 
 InPlaceLabelMapFilter ()
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~InPlaceLabelMapFilter ()
 
- Protected Member Functions inherited from itk::LabelMapFilter< TLabelMap, TLabelMap >
 LabelMapFilter ()
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
 
virtual void ThreadedProcessLabelObject (LabelObjectType *labelObject)
 
 ~LabelMapFilter ()
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
 ImageToImageFilter ()
 
void PushBackInput (const DataObject *input) override
 
void PushFrontInput (const DataObject *input) override
 
virtual void VerifyInputInformation () override
 
 ~ImageToImageFilter ()
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
virtual void GenerateData () override
 
virtual const
ImageRegionSplitterBase
GetImageRegionSplitter () const
 
 ImageSource ()
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
virtual ~ImageSource ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual const char * GetPrimaryInputName (void) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual const char * GetPrimaryOutputName (void) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- 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

CardinalVector m_CardRegGT
 
CardinalVector m_CardRegMS
 
MatrixType m_HooverMatrix
 
LabelVectorType m_LabelsGT
 
AttributesValueType m_MeanRA
 
AttributesValueType m_MeanRC
 
AttributesValueType m_MeanRF
 
AttributesValueType m_MeanRM
 
AttributesValueType m_MeanRN
 
unsigned long m_NumberOfRegionsGT
 
unsigned long m_NumberOfRegionsMS
 
double m_Threshold
 
bool m_UseExtendedAttributes
 
void SetGroundTruthLabelMap (const LabelMapType *gt)
 
void SetMachineSegmentationLabelMap (const LabelMapType *ms)
 
const LabelMapTypeGetGroundTruthLabelMap ()
 
LabelMapTypeGetMachineSegmentationLabelMap ()
 
LabelMapTypeGetOutputGroundTruthLabelMap ()
 
LabelMapTypeGetOutputMachineSegmentationLabelMap ()
 
 HooverInstanceFilter ()
 
void AllocateOutputs () override
 
void ReleaseInputs () override
 
void ThreadedProcessLabelObject (LabelObjectType *labelObject) override
 
void BeforeThreadedGenerateData () override
 
void AfterThreadedGenerateData () override
 

Additional Inherited Members

- Static Public Attributes inherited from itk::InPlaceLabelMapFilter< TLabelMap >
static const unsigned int InputImageDimension
 
static const unsigned int OutputImageDimension
 
- Static Public Attributes inherited from itk::LabelMapFilter< TLabelMap, TLabelMap >
static const unsigned int InputImageDimension
 
static const unsigned int OutputImageDimension
 
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static const unsigned int InputImageDimension
 
static const unsigned int OutputImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static const unsigned int OutputImageDimension
 
- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(OutputImageDimension),
itkGetStaticConstMacro(InputImageDimension) > 
InputToOutputRegionCopierType
 
typedef
ImageToImageFilterDetail::ImageRegionCopier
< itkGetStaticConstMacro(InputImageDimension),
itkGetStaticConstMacro(OutputImageDimension) > 
OutputToInputRegionCopierType
 
- Static Protected Member Functions inherited from itk::ImageSource< TOutputImage >
static const
ImageRegionSplitterBase
GetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)
 
- Protected Attributes inherited from itk::LabelMapFilter< TLabelMap, TLabelMap >
FastMutexLock::Pointer m_LabelObjectContainerLock
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

template<class TLabelMap>
class otb::HooverInstanceFilter< TLabelMap >

This class computes the Hoover instances.

The Hoover instances are computed from two segmentations : ground truth (GT) and machine segmentation (MS); and a Hoover confusion matrix. It is intended to work with AttributesMapLabelObject, where the Hoover scores will be stored. The different instances are :

The corresponding scores are :

These Hoover scores that are stored in the label maps are computed between 0 (if the region doesn't belong to this kind of instance) and 1.

If the user wants to which region labels have been paired, he can set the flag UseExtendedAttributes. The extended attributes contain the labels that have been paired in Hoover instances:

These attributes are handled in a different way than the Hoover scores. The simple presence of an extended attribute in a given region has a meaning, regardless of its value. It is assumed that its value always corresponds to an existing region label. This is why these extended attributes are not reset but removed before computing Hoover instances. (see Hoover et al., "An experimental comparison of range image segmentation algorithms", IEEE PAMI vol. 18, no. 7, July 1996)

See Also
HooverMatrixFilter

Definition at line 74 of file otbHooverInstanceFilter.h.

Member Typedef Documentation

template<class TLabelMap >
typedef LabelObjectType::AttributesValueType otb::HooverInstanceFilter< TLabelMap >::AttributesValueType

Definition at line 97 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef LabelObjectType::AttributeType otb::HooverInstanceFilter< TLabelMap >::AttributeType

Definition at line 96 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef itk::VariableLengthVector<CoefficientType> otb::HooverInstanceFilter< TLabelMap >::CardinalVector

Definition at line 108 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef unsigned long otb::HooverInstanceFilter< TLabelMap >::CoefficientType

Definition at line 105 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef LabelMapType::ConstIterator otb::HooverInstanceFilter< TLabelMap >::ConstIteratorType

Definition at line 93 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef itk::SmartPointer<const Self> otb::HooverInstanceFilter< TLabelMap >::ConstPointer

Definition at line 82 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef LabelMapType::RegionType otb::HooverInstanceFilter< TLabelMap >::ImageRegionType

Definition at line 99 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef LabelObjectType::IndexType otb::HooverInstanceFilter< TLabelMap >::IndexType

Definition at line 102 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef LabelMapType::Iterator otb::HooverInstanceFilter< TLabelMap >::IteratorType

Definition at line 94 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef LabelMapType::Pointer otb::HooverInstanceFilter< TLabelMap >::LabelMapPointer

Definition at line 92 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef TLabelMap otb::HooverInstanceFilter< TLabelMap >::LabelMapType

Some convenient typedefs.

Definition at line 88 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef LabelMapType::LabelObjectType otb::HooverInstanceFilter< TLabelMap >::LabelObjectType

Definition at line 95 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef LabelObjectType::LabelType otb::HooverInstanceFilter< TLabelMap >::LabelType

Definition at line 103 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef LabelMapType::LabelVectorType otb::HooverInstanceFilter< TLabelMap >::LabelVectorType

Definition at line 98 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef itk::VariableSizeMatrix<CoefficientType> otb::HooverInstanceFilter< TLabelMap >::MatrixType

Definition at line 106 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef std::vector<LabelObjectType*> otb::HooverInstanceFilter< TLabelMap >::ObjectVectorType

Definition at line 110 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef itk::SmartPointer<Self> otb::HooverInstanceFilter< TLabelMap >::Pointer

Definition at line 81 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef std::set<CoefficientType> otb::HooverInstanceFilter< TLabelMap >::RegionSetType

Definition at line 109 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef HooverInstanceFilter otb::HooverInstanceFilter< TLabelMap >::Self

Standard class typedefs.

Definition at line 79 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
typedef itk::InPlaceLabelMapFilter< TLabelMap > otb::HooverInstanceFilter< TLabelMap >::Superclass

Definition at line 80 of file otbHooverInstanceFilter.h.

Member Enumeration Documentation

template<class TLabelMap >
enum otb::HooverInstanceFilter::AttributeTypes
Enumerator
ATTRIBUTE_CD 
ATTRIBUTE_OS 
ATTRIBUTE_US 
ATTRIBUTE_M 
ATTRIBUTE_N 
ATTRIBUTE_RC 
ATTRIBUTE_RF 
ATTRIBUTE_RA 
ATTRIBUTE_RM 
ATTRIBUTE_RN 

Definition at line 138 of file otbHooverInstanceFilter.h.

Constructor & Destructor Documentation

template<class TLabelMap >
otb::HooverInstanceFilter< TLabelMap >::HooverInstanceFilter ( )
protected

Constructor

Definition at line 33 of file otbHooverInstanceFilter.hxx.

template<class TLabelMap >
otb::HooverInstanceFilter< TLabelMap >::~HooverInstanceFilter ( )
inlineoverrideprotected

Definition at line 216 of file otbHooverInstanceFilter.h.

Member Function Documentation

template<class TLabelMap >
void otb::HooverInstanceFilter< TLabelMap >::AfterThreadedGenerateData ( void  )
overrideprotectedvirtual

Actions :

  • Compute Hoover instances

Reimplemented from itk::LabelMapFilter< TLabelMap, TLabelMap >.

Definition at line 289 of file otbHooverInstanceFilter.hxx.

References otbDebugMacro.

template<class TLabelMap >
void otb::HooverInstanceFilter< TLabelMap >::AllocateOutputs ( void  )
overrideprotectedvirtual

Re implement the allocate output method to handle the second output correctly

Reimplemented from itk::InPlaceLabelMapFilter< TLabelMap >.

Definition at line 103 of file otbHooverInstanceFilter.hxx.

template<class TLabelMap >
void otb::HooverInstanceFilter< TLabelMap >::BeforeThreadedGenerateData ( void  )
overrideprotectedvirtual

Actions:

  • Check matrix size
  • Init cardinalities lists
  • Fill cardinalities list for MS (GT is done by ThreadedProcessLabelObject)

Reimplemented from itk::LabelMapFilter< TLabelMap, TLabelMap >.

Definition at line 165 of file otbHooverInstanceFilter.hxx.

References otbWarningMacro.

template<class TLabelMap >
virtual::itk::LightObject::Pointer otb::HooverInstanceFilter< TLabelMap >::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

template<class TLabelMap >
static AttributeType otb::HooverInstanceFilter< TLabelMap >::GetAttributeFromName ( const std::string &  name)
inlinestatic

Definition at line 170 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
const TLabelMap * otb::HooverInstanceFilter< TLabelMap >::GetGroundTruthLabelMap ( )

Get the input ground truth label map

Definition at line 72 of file otbHooverInstanceFilter.hxx.

template<class TLabelMap >
virtual MatrixType otb::HooverInstanceFilter< TLabelMap >::GetHooverMatrix ( )
virtual
template<class TLabelMap >
TLabelMap * otb::HooverInstanceFilter< TLabelMap >::GetMachineSegmentationLabelMap ( )

Get the input machine segmentation label map

Definition at line 80 of file otbHooverInstanceFilter.hxx.

template<class TLabelMap >
virtual AttributesValueType otb::HooverInstanceFilter< TLabelMap >::GetMeanRA ( )
virtual

Get the average scores (after filter update)

template<class TLabelMap >
virtual AttributesValueType otb::HooverInstanceFilter< TLabelMap >::GetMeanRC ( )
virtual

Get the average scores (after filter update)

template<class TLabelMap >
virtual AttributesValueType otb::HooverInstanceFilter< TLabelMap >::GetMeanRF ( )
virtual

Get the average scores (after filter update)

template<class TLabelMap >
virtual AttributesValueType otb::HooverInstanceFilter< TLabelMap >::GetMeanRM ( )
virtual

Get the average scores (after filter update)

template<class TLabelMap >
virtual AttributesValueType otb::HooverInstanceFilter< TLabelMap >::GetMeanRN ( )
virtual

Get the average scores (after filter update)

template<class TLabelMap >
static std::string otb::HooverInstanceFilter< TLabelMap >::GetNameFromAttribute ( const AttributeType a)
inlinestatic

Definition at line 151 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
virtual const char* otb::HooverInstanceFilter< TLabelMap >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::InPlaceLabelMapFilter< TLabelMap >.

template<class TLabelMap >
TLabelMap * otb::HooverInstanceFilter< TLabelMap >::GetOutputGroundTruthLabelMap ( )

Get the output ground truth label map

Definition at line 88 of file otbHooverInstanceFilter.hxx.

template<class TLabelMap >
TLabelMap * otb::HooverInstanceFilter< TLabelMap >::GetOutputMachineSegmentationLabelMap ( )

Get the output machine segmentation label map

Definition at line 96 of file otbHooverInstanceFilter.hxx.

template<class TLabelMap >
virtual double otb::HooverInstanceFilter< TLabelMap >::GetThreshold ( )
virtual
template<class TLabelMap >
virtual bool otb::HooverInstanceFilter< TLabelMap >::GetUseExtendedAttributes ( )
virtual
template<class TLabelMap >
static Pointer otb::HooverInstanceFilter< TLabelMap >::New ( )
static

Standard New method.

template<class TLabelMap >
void otb::HooverInstanceFilter< TLabelMap >::ReleaseInputs ( )
overrideprotectedvirtual

Re implement the release input method to handle the second input correctly

Reimplemented from itk::ProcessObject.

Definition at line 148 of file otbHooverInstanceFilter.hxx.

template<class TLabelMap >
void otb::HooverInstanceFilter< TLabelMap >::SetGroundTruthLabelMap ( const LabelMapType gt)

Set the ground truth label map

Definition at line 56 of file otbHooverInstanceFilter.hxx.

template<class TLabelMap >
virtual void otb::HooverInstanceFilter< TLabelMap >::SetHooverMatrix ( MatrixType  _arg)
virtual
template<class TLabelMap >
void otb::HooverInstanceFilter< TLabelMap >::SetMachineSegmentationLabelMap ( const LabelMapType ms)

Set the machine segmentation label map

Definition at line 64 of file otbHooverInstanceFilter.hxx.

template<class TLabelMap >
virtual void otb::HooverInstanceFilter< TLabelMap >::SetThreshold ( double  _arg)
virtual
template<class TLabelMap >
virtual void otb::HooverInstanceFilter< TLabelMap >::SetUseExtendedAttributes ( bool  _arg)
virtual
template<class TLabelMap >
void otb::HooverInstanceFilter< TLabelMap >::ThreadedProcessLabelObject ( LabelObjectType labelObject)
overrideprotected

Actions :

  • Fill cardinalities of GT regions

Definition at line 240 of file otbHooverInstanceFilter.hxx.

References otbWarningMacro.

Member Data Documentation

template<class TLabelMap >
CardinalVector otb::HooverInstanceFilter< TLabelMap >::m_CardRegGT
private

List of region sizes in GT

Definition at line 256 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
CardinalVector otb::HooverInstanceFilter< TLabelMap >::m_CardRegMS
private

List of region sizes in MS

Definition at line 259 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
MatrixType otb::HooverInstanceFilter< TLabelMap >::m_HooverMatrix
private

Hoover confusion matrix computed between GT and MS

Definition at line 253 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
LabelVectorType otb::HooverInstanceFilter< TLabelMap >::m_LabelsGT
private

List of labels in GT segmentation

Definition at line 250 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
AttributesValueType otb::HooverInstanceFilter< TLabelMap >::m_MeanRA
private

Average score for under segmentation on the whole segmentation

Definition at line 274 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
AttributesValueType otb::HooverInstanceFilter< TLabelMap >::m_MeanRC
private

Average score for correct detection on the whole segmentation

Definition at line 268 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
AttributesValueType otb::HooverInstanceFilter< TLabelMap >::m_MeanRF
private

Average score for over segmentation on the whole segmentation

Definition at line 271 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
AttributesValueType otb::HooverInstanceFilter< TLabelMap >::m_MeanRM
private

Average score for missed detection on the whole segmentation

Definition at line 277 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
AttributesValueType otb::HooverInstanceFilter< TLabelMap >::m_MeanRN
private

Average score for noise on the whole segmentation

Definition at line 280 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
unsigned long otb::HooverInstanceFilter< TLabelMap >::m_NumberOfRegionsGT
private

number of regions (label objects) found in ground truth (GT)

Definition at line 244 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
unsigned long otb::HooverInstanceFilter< TLabelMap >::m_NumberOfRegionsMS
private

number of regions (label objects) found in machine segmentation (MS)

Definition at line 247 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
double otb::HooverInstanceFilter< TLabelMap >::m_Threshold
private

Threshold used to compute Hoover instances

Definition at line 262 of file otbHooverInstanceFilter.h.

template<class TLabelMap >
bool otb::HooverInstanceFilter< TLabelMap >::m_UseExtendedAttributes
private

Flag to output additional information in label maps

Definition at line 265 of file otbHooverInstanceFilter.h.


The documentation for this class was generated from the following files: