Orfeo Toolbox  4.2
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel > Class Template Reference

An AttributesMapLabelObject with an optional class label. More...

#include <otbAttributesMapLabelObjectWithClassLabel.h>

+ Inheritance diagram for otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >:
+ Collaboration diagram for otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >:

Public Types

typedef
AttributesMapType::const_iterator 
AttributesMapConstIteratorType
 
typedef AttributesMapType::iterator AttributesMapIteratorType
 
typedef std::map< std::string,
AttributesValueType
AttributesMapType
 Map container typedefs. More...
 
typedef TAttributesValue AttributesValueType
 
typedef unsigned int AttributeType
 
typedef TClassLabel ClassLabelType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::WeakPointer
< const Self
ConstWeakPointer
 
typedef Superclass::IndexType IndexType
 
typedef itk::LabelMap< SelfLabelMapType
 Type of a label map using an AttributesMapLabelObject. More...
 
typedef itk::LabelObject
< TLabel, VImageDimension > 
LabelObjectType
 
typedef TLabel LabelType
 Template parameters typedef. More...
 
typedef Superclass::LengthType LengthType
 
typedef Superclass::LineType LineType
 
typedef Offset< VImageDimension > OffsetType
 
typedef itk::SmartPointer< SelfPointer
 
typedef PolygonType::Pointer PolygonPointerType
 
typedef Polygon< double > PolygonType
 
typedef
AttributesMapLabelObjectWithClassLabel 
Self
 
typedef itk::SizeValueType SizeValueType
 
typedef
AttributesMapLabelObject
< TLabel, VImageDimension,
TAttributesValue > 
Superclass
 

Public Member Functions

void AddIndex (const IndexType &idx)
 
void AddLine (const IndexType &idx, const LengthType &length)
 
void AddLine (const LineType &line)
 
void Clear ()
 
void CopyAllFrom (const Self *src)
 
virtual void CopyAttributesFrom (const LabelObjectType *lo)
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual void Delete ()
 
bool Empty () const
 
AttributesValueType GetAttribute (const char *name) const
 
std::vector< std::string > GetAvailableAttributes () const
 
const ClassLabelTypeGetClassLabel () const
 
IndexType GetIndex (SizeValueType i) const
 
const LabelTypeGetLabel () const
 
const LineTypeGetLine (SizeValueType i) const
 
LineTypeGetLine (SizeValueType i)
 
virtual const char * GetNameOfClass () const
 
unsigned int GetNumberOfAttributes () const
 
SizeValueType GetNumberOfLines () const
 
const PolygonTypeGetPolygon () const
 
PolygonTypeGetPolygon ()
 
virtual int GetReferenceCount () const
 
bool HasClassLabel () const
 
bool HasIndex (const IndexType &idx) const
 
 itkCloneMacro (Self)
 
void Optimize ()
 
void Print (std::ostream &os, Indent indent=0) const
 
virtual void Register () const
 
void RemoveClassLabel ()
 
bool RemoveIndex (const IndexType &idx)
 
void SetAttribute (const char *name, AttributesValueType value)
 
void SetAttribute (const std::string &name, AttributesValueType value)
 
void SetClassLabel (const ClassLabelType &label)
 
void SetLabel (const LabelType &label)
 
void SetPolygon (PolygonType *p)
 
virtual void SetReferenceCount (int)
 
void Shift (OffsetType offset)
 
SizeValueType Size () const
 
virtual void UnRegister () const
 

Static Public Member Functions

static void BreakOnError ()
 
static AttributeType GetAttributeFromName (const std::string &s)
 
static std::string GetNameFromAttribute (const AttributeType &a)
 
static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = VImageDimension
 
static const AttributeType LABEL = 0
 

Protected Types

typedef int InternalReferenceCountType
 

Protected Member Functions

 AttributesMapLabelObjectWithClassLabel ()
 
virtual ~AttributesMapLabelObjectWithClassLabel ()
 
virtual LightObject::Pointer InternalClone () const
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 

Protected Attributes

InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

Private Member Functions

 AttributesMapLabelObjectWithClassLabel (const Self &)
 
void operator= (const Self &)
 

Private Attributes

ClassLabelType m_ClassLabel
 
bool m_HasClassLabel
 

Detailed Description

template<class TLabel, unsigned int VImageDimension, class TAttributesValue, class TClassLabel>
class otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >

An AttributesMapLabelObject with an optional class label.

The label type is defined by the template parameter TClassLabel and accessible using the ClassLabelType typedef.

The HasClassLabel() method returns true if the LabelObject has a class label and false otherwise.

The SetClassLabel() method set the class label and set the internal flag m_HasClassLabel to true.

The GetClassLabel() method returns the class label or an exception if m_HasClassLabel is set to false.

The RemoveClassLabel() method set m_HasClassLabel to false and the class label value to a default value.

See Also
LabelObject, ShapeLabelObject, StatisticsLabelObject

Definition at line 49 of file otbAttributesMapLabelObjectWithClassLabel.h.

Member Typedef Documentation

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef AttributesMapType::const_iterator otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::AttributesMapConstIteratorType
inherited

Definition at line 190 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef AttributesMapType::iterator otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::AttributesMapIteratorType
inherited

Definition at line 189 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef std::map<std::string, AttributesValueType> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::AttributesMapType
inherited

Map container typedefs.

Definition at line 188 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef TAttributesValue otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::AttributesValueType
inherited

Definition at line 180 of file otbAttributesMapLabelObject.h.

template<typename TLabel, unsigned int VImageDimension>
typedef unsigned int itk::LabelObject< TLabel, VImageDimension >::AttributeType
inherited

Definition at line 88 of file itkLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
typedef TClassLabel otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::ClassLabelType

Class label typedef

Definition at line 70 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
typedef itk::SmartPointer<const Self> otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::ConstPointer

Definition at line 58 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
typedef itk::WeakPointer<const Self> otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::ConstWeakPointer

Definition at line 59 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef Superclass::IndexType otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::IndexType
inherited

Definition at line 183 of file otbAttributesMapLabelObject.h.

typedef int itk::LightObject::InternalReferenceCountType
protectedinherited

Define the type of the reference count according to the target. This allows the use of atomic operations

Definition at line 152 of file itkLightObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef itk::LabelMap<Self> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::LabelMapType
inherited

Type of a label map using an AttributesMapLabelObject.

Definition at line 176 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
typedef itk::LabelObject<TLabel, VImageDimension> otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::LabelObjectType

Definition at line 56 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef TLabel otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::LabelType
inherited

Template parameters typedef.

Definition at line 179 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef Superclass::LengthType otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::LengthType
inherited

Definition at line 185 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef Superclass::LineType otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::LineType
inherited

Definition at line 184 of file otbAttributesMapLabelObject.h.

template<typename TLabel, unsigned int VImageDimension>
typedef Offset< VImageDimension > itk::LabelObject< TLabel, VImageDimension >::OffsetType
inherited

Definition at line 84 of file itkLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
typedef itk::SmartPointer<Self> otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::Pointer

Definition at line 57 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef PolygonType::Pointer otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::PolygonPointerType
inherited

Definition at line 194 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
typedef Polygon<double> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::PolygonType
inherited

Definition at line 193 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
typedef AttributesMapLabelObjectWithClassLabel otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::Self

Standard class typedefs

Definition at line 53 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<typename TLabel, unsigned int VImageDimension>
typedef itk::SizeValueType itk::LabelObject< TLabel, VImageDimension >::SizeValueType
inherited

Definition at line 89 of file itkLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
typedef AttributesMapLabelObject<TLabel, VImageDimension, TAttributesValue> otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::Superclass

Definition at line 55 of file otbAttributesMapLabelObjectWithClassLabel.h.

Constructor & Destructor Documentation

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::AttributesMapLabelObjectWithClassLabel ( )
inlineprotected

Constructor

Definition at line 120 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
virtual otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::~AttributesMapLabelObjectWithClassLabel ( )
inlineprotectedvirtual

Destructor

Definition at line 123 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::AttributesMapLabelObjectWithClassLabel ( const Self )
private

Member Function Documentation

template<typename TLabel , unsigned int VImageDimension>
void itk::LabelObject< TLabel, VImageDimension >::AddIndex ( const IndexType idx)
inherited

Add an index to the object. If the index is already in the object, the index can be found several time in the object.

Definition at line 158 of file itkLabelObject.hxx.

References itk::LabelObjectLine< VImageDimension >::GetLength(), itk::LabelObjectLine< VImageDimension >::IsNextIndex(), and itk::LabelObjectLine< VImageDimension >::SetLength().

template<typename TLabel , unsigned int VImageDimension>
void itk::LabelObject< TLabel, VImageDimension >::AddLine ( const IndexType idx,
const LengthType length 
)
inherited

Add a new line to the object, without any check.

Definition at line 179 of file itkLabelObject.hxx.

template<typename TLabel , unsigned int VImageDimension>
void itk::LabelObject< TLabel, VImageDimension >::AddLine ( const LineType line)
inherited

Add a new line to the object, without any check.

Definition at line 191 of file itkLabelObject.hxx.

void itk::LightObject::BreakOnError ( )
staticinherited

This method is called when itkExceptionMacro executes. It allows the debugger to break on error.

Definition at line 150 of file itkLightObject.cxx.

template<typename TLabel , unsigned int VImageDimension>
void itk::LabelObject< TLabel, VImageDimension >::Clear ( void  )
inherited

Definition at line 369 of file itkLabelObject.hxx.

template<typename TLabel , unsigned int VImageDimension>
void itk::LabelObject< TLabel, VImageDimension >::CopyAllFrom ( const Self src)
inherited

Copy the lines, the label and the attributes from another node.

Definition at line 280 of file itkLabelObject.hxx.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
virtual void otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::CopyAttributesFrom ( const LabelObjectType lo)
inlinevirtual

This method is overloaded to add the copy of the attributes map.

Reimplemented from otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >.

Definition at line 103 of file otbAttributesMapLabelObjectWithClassLabel.h.

References NULL.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
virtual::itk::LightObject::Pointer otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::CreateAnother ( void  ) const
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 otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >.

void itk::LightObject::Delete ( )
virtualinherited

Delete an itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting.

Delete a itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C++ delete method will not work with reference counting.

Definition at line 91 of file itkLightObject.cxx.

template<typename TLabel , unsigned int VImageDimension>
bool itk::LabelObject< TLabel, VImageDimension >::Empty ( ) const
inherited

Returns true if there no line in the container (and thus no pixel in the object.

Definition at line 235 of file itkLabelObject.hxx.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
AttributesValueType otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::GetAttribute ( const char *  name) const
inlineinherited

Returns the attribute corresponding to name

Definition at line 217 of file otbAttributesMapLabelObject.h.

template<typename TLabel , unsigned int VImageDimension>
LabelObject< TLabel, VImageDimension >::AttributeType itk::LabelObject< TLabel, VImageDimension >::GetAttributeFromName ( const std::string &  s)
staticinherited
template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
std::vector<std::string> otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::GetAvailableAttributes ( ) const
inlineinherited

Returns the list of available attributes

Definition at line 241 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
const ClassLabelType& otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::GetClassLabel ( ) const
inline

Get the class label. Throws an exception if no class label is available

Definition at line 81 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<typename TLabel , unsigned int VImageDimension>
LabelObject< TLabel, VImageDimension >::IndexType itk::LabelObject< TLabel, VImageDimension >::GetIndex ( SizeValueType  i) const
inherited

Get the index of the ith pixel associated with the object. Valid indices are from 0 to LabelObject->GetSize() - 1.

Definition at line 242 of file itkLabelObject.hxx.

References itk::Index< VIndexDimension >::GetIndex().

template<typename TLabel , unsigned int VImageDimension>
const LabelObject< TLabel, VImageDimension >::LabelType & itk::LabelObject< TLabel, VImageDimension >::GetLabel ( ) const
inherited

Set/Get the label associated with the object.

Set/Get the label associated with that object.

Definition at line 66 of file itkLabelObject.hxx.

template<typename TLabel , unsigned int VImageDimension>
const LabelObject< TLabel, VImageDimension >::LineType & itk::LabelObject< TLabel, VImageDimension >::GetLine ( SizeValueType  i) const
inherited

Definition at line 206 of file itkLabelObject.hxx.

template<typename TLabel , unsigned int VImageDimension>
LabelObject< TLabel, VImageDimension >::LineType & itk::LabelObject< TLabel, VImageDimension >::GetLine ( SizeValueType  i)
inherited

Definition at line 213 of file itkLabelObject.hxx.

template<typename TLabel , unsigned int VImageDimension>
std::string itk::LabelObject< TLabel, VImageDimension >::GetNameFromAttribute ( const AttributeType a)
staticinherited
template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
virtual const char* otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
unsigned int otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::GetNumberOfAttributes ( ) const
inlineinherited

Returns the total number of attributes

Definition at line 233 of file otbAttributesMapLabelObject.h.

template<typename TLabel , unsigned int VImageDimension>
LabelObject< TLabel, VImageDimension >::SizeValueType itk::LabelObject< TLabel, VImageDimension >::GetNumberOfLines ( ) const
inherited

Definition at line 198 of file itkLabelObject.hxx.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
const PolygonType* otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::GetPolygon ( ) const
inlineinherited

Return the polygon (const version)

Definition at line 272 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
PolygonType* otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::GetPolygon ( )
inlineinherited

Return the polygon (non const version)

Definition at line 278 of file otbAttributesMapLabelObject.h.

virtual int itk::LightObject::GetReferenceCount ( ) const
inlinevirtualinherited

Gets the reference count on this object.

Definition at line 112 of file itkLightObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
bool otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::HasClassLabel ( ) const
inline
Returns
true if a class label is available

Definition at line 91 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<typename TLabel , unsigned int VImageDimension>
bool itk::LabelObject< TLabel, VImageDimension >::HasIndex ( const IndexType idx) const
inherited

Return true if the object contain the given index and false otherwise. Worst case complexity is O(L) where L is the number of lines in the object.

Definition at line 84 of file itkLabelObject.hxx.

LightObject::Pointer itk::LightObject::InternalClone ( void  ) const
protectedvirtualinherited

Actual implementation of the clone method. This method should be reimplemeted in subclasses to clone the extra required parameters.

Reimplemented in itk::Transform< TScalar, NInputDimensions, NOutputDimensions >, itk::Transform< TScalar, 3, 2 >, itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >, itk::Transform< double, NInputDimensions, NOutputDimensions >, itk::Transform< TScalar, NDimensions, NDimensions >, itk::CompositeTransform< TScalar, NDimensions >, itk::JensenHavrdaCharvatTsallisPointSetToPointSetMetricv4< TPointSet, TInternalComputationValueType >, itk::ConstantVelocityFieldTransform< TScalar, NDimensions >, itk::VelocityFieldTransform< TScalar, NDimensions >, itk::BSplineSmoothingOnUpdateDisplacementFieldTransform< TScalar, NDimensions >, itk::Statistics::UniformRandomSpatialNeighborSubsampler< TSample, TRegion >, itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >, itk::Statistics::SubsamplerBase< TSample >, itk::Statistics::RegionConstrainedSubsampler< TSample, TRegion >, itk::Statistics::GaussianMembershipFunction< TMeasurementVector >, itk::GaussianSmoothingOnUpdateDisplacementFieldTransform< TScalar, NDimensions >, itk::Statistics::SpatialNeighborSubsampler< TSample, TRegion >, itk::ExpectationBasedPointSetToPointSetMetricv4< TFixedPointSet, TMovingPointSet, TInternalComputationValueType >, itk::Statistics::DistanceToCentroidMembershipFunction< TVector >, itk::Statistics::GaussianRandomSpatialNeighborSubsampler< TSample, TRegion >, and itk::AffineGeometryFrame< TScalar, NDimensions >.

Definition at line 77 of file itkLightObject.cxx.

References itk::LightObject::CreateAnother().

itk::LightObject::itkCloneMacro ( Self  )
inherited
template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
static Pointer otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::New ( )
static

Method for creation through the object factory.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
void otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::operator= ( const Self )
private
template<typename TLabel , unsigned int VImageDimension>
void itk::LabelObject< TLabel, VImageDimension >::Optimize ( )
inherited

Reorder the lines, merge the touching lines and ensure that no pixel is covered by two lines

Definition at line 293 of file itkLabelObject.hxx.

References itk::LabelObjectLine< VImageDimension >::GetIndex(), itk::Index< VIndexDimension >::GetIndex(), and itk::LabelObjectLine< VImageDimension >::GetLength().

void itk::LightObject::Print ( std::ostream &  os,
Indent  indent = 0 
) const
inherited

Cause the object to print itself out.

Avoid DLL boundary problems. This function will be common to all itk objects. It just calls the header/self/trailer virtual print methods, which can be overriden by subclasses (any itk object).

Definition at line 137 of file itkLightObject.cxx.

References itk::Indent::GetNextIndent().

Referenced by itk::operator<<(), and itk::VideoStream< TFrameType >::PrintSelf().

void itk::LightObject::PrintHeader ( std::ostream &  os,
Indent  indent 
) const
protectedvirtualinherited

Define a default print header for all objects.

Definition at line 315 of file itkLightObject.cxx.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
void otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
inlineprotectedvirtual
void itk::LightObject::PrintTrailer ( std::ostream &  os,
Indent  indent 
) const
protectedvirtualinherited

Define a default print trailer for all objects.

Definition at line 325 of file itkLightObject.cxx.

void itk::LightObject::Register ( ) const
virtualinherited

Increase the reference count (mark as used by another object).

Reimplemented in itk::Object, and itk::ExceptionObject::ReferenceCountedExceptionData.

Definition at line 158 of file itkLightObject.cxx.

Referenced by itk::ExceptionObject::ReferenceCountedExceptionData::Register().

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
void otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::RemoveClassLabel ( )
inline

Invalidate the class label if any

Definition at line 97 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<typename TLabel , unsigned int VImageDimension>
bool itk::LabelObject< TLabel, VImageDimension >::RemoveIndex ( const IndexType idx)
inherited

Remove an index to the object. Depending on the configuration, it can either reduce the size of the corresponding line, add one more line, remove the line from the line container.

Definition at line 104 of file itkLabelObject.hxx.

References itk::Index< VIndexDimension >::GetIndex(), and itk::Index< VIndexDimension >::SetIndex().

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
void otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::SetAttribute ( const char *  name,
AttributesValueType  value 
)
inlineinherited

Set an attribute value. If the key name already exists in the map, the value is overwritten.

Definition at line 200 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
void otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::SetAttribute ( const std::string &  name,
AttributesValueType  value 
)
inlineinherited

Set an attribute value. If the key name already exists in the map, the value is overwritten.

Definition at line 209 of file otbAttributesMapLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
void otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::SetClassLabel ( const ClassLabelType label)
inline

Set the class label

Definition at line 73 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<typename TLabel , unsigned int VImageDimension>
void itk::LabelObject< TLabel, VImageDimension >::SetLabel ( const LabelType label)
inherited

Definition at line 73 of file itkLabelObject.hxx.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue >
void otb::AttributesMapLabelObject< TLabel, VImageDimension, TAttributesValue >::SetPolygon ( PolygonType p)
inlineinherited

Set the polygon

Definition at line 284 of file otbAttributesMapLabelObject.h.

void itk::LightObject::SetReferenceCount ( int  ref)
virtualinherited

Sets the reference count on this object. This is a dangerous method, use it with care.

Sets the reference count (use with care)

Reimplemented in itk::Object.

Definition at line 240 of file itkLightObject.cxx.

template<typename TLabel , unsigned int VImageDimension>
void itk::LabelObject< TLabel, VImageDimension >::Shift ( OffsetType  offset)
inherited
template<typename TLabel , unsigned int VImageDimension>
LabelObject< TLabel, VImageDimension >::SizeValueType itk::LabelObject< TLabel, VImageDimension >::Size ( void  ) const
inherited

Returns the number of pixels contained in the object.

Warning
To get an accurate result, you need to make sure there is no duplication in the line container. One way to ensure this (at a cost) is to call the Optimize method.

Definition at line 220 of file itkLabelObject.hxx.

void itk::LightObject::UnRegister ( ) const
virtualinherited

Decrease the reference count (release by another object).

Reimplemented in itk::Object, and itk::ExceptionObject::ReferenceCountedExceptionData.

Definition at line 189 of file itkLightObject.cxx.

Referenced by itk::LightObject::New(), and itk::ExceptionObject::ReferenceCountedExceptionData::UnRegister().

Member Data Documentation

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
const unsigned int otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::ImageDimension = VImageDimension
static

Definition at line 67 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<typename TLabel, unsigned int VImageDimension>
const AttributeType itk::LabelObject< TLabel, VImageDimension >::LABEL = 0
staticinherited

Definition at line 91 of file itkLabelObject.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
ClassLabelType otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::m_ClassLabel
private

The class label

Definition at line 144 of file otbAttributesMapLabelObjectWithClassLabel.h.

template<class TLabel , unsigned int VImageDimension, class TAttributesValue , class TClassLabel >
bool otb::AttributesMapLabelObjectWithClassLabel< TLabel, VImageDimension, TAttributesValue, TClassLabel >::m_HasClassLabel
private

Does the LabelObject have a class label ?

Definition at line 147 of file otbAttributesMapLabelObjectWithClassLabel.h.

InternalReferenceCountType itk::LightObject::m_ReferenceCount
mutableprotectedinherited

Number of uses of this object by other objects.

Definition at line 156 of file itkLightObject.h.

SimpleFastMutexLock itk::LightObject::m_ReferenceCountLock
mutableprotectedinherited

Mutex lock to protect modification to the reference count

Definition at line 159 of file itkLightObject.h.


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

Generated at Sat Aug 30 2014 18:17:45 for Orfeo Toolbox with doxygen 1.8.3.1