![]() |
OTB
10.0.0
Orfeo Toolbox
|
#include <otbShapeAttributesLabelMapFilter.h>
Public Types | |
| typedef LabelObjectType::ConstLineIterator | ConstLineIteratorType |
| typedef unsigned int | DimensionType |
| typedef FlusserPathFunction< PolygonType > | FlusserPathFunctionType |
| typedef TLabelImage | LabelImageType |
| typedef TLabelObject | LabelObjectType |
| typedef otb::Functor::OffsetLexicographicCompare< TLabelObject::ImageDimension > | OffsetLexicographicCompare |
| typedef itk::Offset< TLabelObject::ImageDimension > | OffsetType |
| typedef Functor::LabelObjectToPolygonFunctor< LabelObjectType, PolygonType > | PolygonFunctorType |
| typedef TLabelObject::PolygonType | PolygonType |
| typedef itk::ImageRegion< TLabelObject::ImageDimension > | RegionType |
| typedef ShapeAttributesLabelObjectFunctor | Self |
| typedef SimplifyPathFunctor< PolygonType, PolygonType > | SimplifyPolygonFunctorType |
Public Member Functions | |
| ShapeAttributesLabelObjectFunctor () | |
| virtual | ~ShapeAttributesLabelObjectFunctor () |
Static Public Attributes | |
| static const unsigned int | ImageDimension = TLabelObject::ImageDimension |
| typedef itk::Offset< 2 > | Offset2Type |
| typedef itk::Offset< 3 > | Offset3Type |
| typedef itk::Vector< double, 2 > | Spacing2Type |
| typedef itk::Vector< double, 3 > | Spacing3Type |
| typedef otb::Functor::OffsetLexicographicCompare< 2 > | OffsetLexicographicCompare2 |
| typedef otb::Functor::OffsetLexicographicCompare< 3 > | OffsetLexicographicCompare3 |
| typedef std::map< Offset2Type, itk::SizeValueType, OffsetLexicographicCompare2 > | MapIntercept2Type |
| typedef std::map< Offset3Type, itk::SizeValueType, OffsetLexicographicCompare3 > | MapIntercept3Type |
| bool | m_ComputeFeretDiameter |
| bool | m_ComputePerimeter |
| bool | m_ComputeFlusser |
| bool | m_ComputePolygon |
| bool | m_ReducedAttributeSet |
| LabelImageType::ConstPointer | m_LabelImage |
| bool | operator!= (const Self &self) |
| bool | operator== (const Self &self) |
| void | SetComputePerimeter (bool flag) |
| bool | GetComputePerimeter () const |
| void | SetComputeFlusser (bool flag) |
| bool | GetComputeFlusser () const |
| void | SetComputePolygon (bool flag) |
| bool | GetComputePolygon () const |
| void | SetComputeFeretDiameter (bool flag) |
| bool | GetComputeFeretDiameter () const |
| void | SetReducedAttributeSet (bool flag) |
| bool | GetReducedAttributeSet () const |
| void | SetLabelImage (const TLabelImage *image) |
| const TLabelImage * | GetLabelImage () const |
| void | operator() (LabelObjectType *lo) |
| static long | factorial (long n) |
| static long | doubleFactorial (long n) |
| static double | gammaN2p1 (long n) |
| static double | hyperSphereVolume (double radius) |
| static double | hyperSpherePerimeter (double radius) |
| static double | hyperSphereRadiusFromVolume (double volume) |
| double | ComputePerimeter (LabelObjectType *labelObject, const RegionType ®ion) |
| template<class TMapIntercept , class TSpacing > | |
| double | PerimeterFromInterceptCount (TMapIntercept &intercepts, const TSpacing &spacing) |
| double | PerimeterFromInterceptCount (MapIntercept2Type &intercepts, const Spacing2Type spacing) |
| double | PerimeterFromInterceptCount (MapIntercept3Type &intercepts, const Spacing3Type spacing) |
Functor to compute shape attributes of one LabelObject.
Definition at line 75 of file otbShapeAttributesLabelMapFilter.h.
| typedef LabelObjectType::ConstLineIterator otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::ConstLineIteratorType |
Const iterator over LabelObject lines
Definition at line 85 of file otbShapeAttributesLabelMapFilter.h.
| typedef unsigned int otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::DimensionType |
Definition at line 96 of file otbShapeAttributesLabelMapFilter.h.
| typedef FlusserPathFunction<PolygonType> otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::FlusserPathFunctionType |
Definition at line 93 of file otbShapeAttributesLabelMapFilter.h.
| typedef TLabelImage otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::LabelImageType |
Labeled image type
Definition at line 88 of file otbShapeAttributesLabelMapFilter.h.
| typedef TLabelObject otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::LabelObjectType |
LabelObject typedef
Definition at line 82 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 186 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 187 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 180 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 181 of file otbShapeAttributesLabelMapFilter.h.
| typedef otb::Functor::OffsetLexicographicCompare<TLabelObject::ImageDimension> otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::OffsetLexicographicCompare |
Definition at line 102 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 184 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 185 of file otbShapeAttributesLabelMapFilter.h.
| typedef itk::Offset< TLabelObject::ImageDimension > otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::OffsetType |
Definition at line 101 of file otbShapeAttributesLabelMapFilter.h.
| typedef Functor::LabelObjectToPolygonFunctor<LabelObjectType, PolygonType> otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::PolygonFunctorType |
Definition at line 92 of file otbShapeAttributesLabelMapFilter.h.
| typedef TLabelObject::PolygonType otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::PolygonType |
Flusser moments typedef
Definition at line 91 of file otbShapeAttributesLabelMapFilter.h.
| typedef itk::ImageRegion< TLabelObject::ImageDimension > otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::RegionType |
Definition at line 100 of file otbShapeAttributesLabelMapFilter.h.
| typedef ShapeAttributesLabelObjectFunctor otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::Self |
Self typedef
Definition at line 79 of file otbShapeAttributesLabelMapFilter.h.
| typedef SimplifyPathFunctor<PolygonType, PolygonType> otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::SimplifyPolygonFunctorType |
Definition at line 94 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 182 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 183 of file otbShapeAttributesLabelMapFilter.h.
| otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::ShapeAttributesLabelObjectFunctor |
Constructor
Definition at line 46 of file otbShapeAttributesLabelMapFilter.hxx.
|
inlinevirtual |
Destructor
Definition at line 108 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 655 of file otbShapeAttributesLabelMapFilter.hxx.
|
staticprivate |
Convenience internal method
Definition at line 938 of file otbShapeAttributesLabelMapFilter.hxx.
|
staticprivate |
Convenience internal method
Definition at line 926 of file otbShapeAttributesLabelMapFilter.hxx.
|
staticprivate |
Convenience internal method
Definition at line 950 of file otbShapeAttributesLabelMapFilter.hxx.
References otb::CONST_SQRTPI.
| bool otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::GetComputeFeretDiameter |
Get the compute feret diameter flag
Definition at line 127 of file otbShapeAttributesLabelMapFilter.hxx.
| bool otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::GetComputeFlusser |
Get the compute perimeter flag
Get the compute Flusser flag
Definition at line 113 of file otbShapeAttributesLabelMapFilter.hxx.
| bool otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::GetComputePerimeter |
Get the compute perimeter flag
Definition at line 85 of file otbShapeAttributesLabelMapFilter.hxx.
| bool otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::GetComputePolygon |
Get the polygonalisation flag
Get the compute polygon flag
Definition at line 99 of file otbShapeAttributesLabelMapFilter.hxx.
| const TLabelImage * otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::GetLabelImage |
Get the label image
Definition at line 156 of file otbShapeAttributesLabelMapFilter.hxx.
| bool otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::GetReducedAttributeSet |
Get the compute reduced attributes set flag
Definition at line 141 of file otbShapeAttributesLabelMapFilter.hxx.
|
staticprivate |
Convenience internal method
Definition at line 974 of file otbShapeAttributesLabelMapFilter.hxx.
|
staticprivate |
Convenience internal method
Definition at line 981 of file otbShapeAttributesLabelMapFilter.hxx.
References otb::CONST_PI.
|
staticprivate |
Convenience internal method
Definition at line 966 of file otbShapeAttributesLabelMapFilter.hxx.
References otb::CONST_PI.
| bool otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::operator!= | ( | const Self & | self | ) |
The comparators
The comparator (!=)
Definition at line 53 of file otbShapeAttributesLabelMapFilter.hxx.
|
inline |
This is the functor implementation Calling the functor on a label object will update its shape attributes
Definition at line 166 of file otbShapeAttributesLabelMapFilter.hxx.
References otb::Functor::LabelObjectToPolygonFunctor< TLabelObject, TPolygon >::SetOrigin(), otb::Functor::LabelObjectToPolygonFunctor< TLabelObject, TPolygon >::SetSpacing(), and otb::Functor::LabelObjectToPolygonFunctor< TLabelObject, TPolygon >::SetStartIndex().
| bool otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::operator== | ( | const Self & | self | ) |
The comparator (==)
Definition at line 70 of file otbShapeAttributesLabelMapFilter.hxx.
|
private |
Do we compute the feret diameter ?
Definition at line 848 of file otbShapeAttributesLabelMapFilter.hxx.
|
private |
Do we compute the feret diameter ?
Definition at line 871 of file otbShapeAttributesLabelMapFilter.hxx.
|
private |
Do we compute the feret diameter ?
Definition at line 821 of file otbShapeAttributesLabelMapFilter.hxx.
| void otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::SetComputeFeretDiameter | ( | bool | flag | ) |
Set the compute feret diameter flag
Definition at line 120 of file otbShapeAttributesLabelMapFilter.hxx.
| void otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::SetComputeFlusser | ( | bool | flag | ) |
Set the compute perimeter flag
Set the compute Flusser flag
Definition at line 106 of file otbShapeAttributesLabelMapFilter.hxx.
| void otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::SetComputePerimeter | ( | bool | flag | ) |
Set the compute perimeter flag
Definition at line 78 of file otbShapeAttributesLabelMapFilter.hxx.
| void otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::SetComputePolygon | ( | bool | flag | ) |
Set the polygonalisation flag
Set the compute polygon flag
Definition at line 92 of file otbShapeAttributesLabelMapFilter.hxx.
| void otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::SetLabelImage | ( | const TLabelImage * | image | ) |
Set the label image (used only to compute the Feret diameter
Definition at line 149 of file otbShapeAttributesLabelMapFilter.hxx.
| void otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::SetReducedAttributeSet | ( | bool | flag | ) |
Set the compute reduced attributes set flag
Definition at line 134 of file otbShapeAttributesLabelMapFilter.hxx.
|
static |
ImageDimension constants
Definition at line 99 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the feret diameter ?
Definition at line 196 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute flusser moments ?
Definition at line 202 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we compute the perimeter ?
Definition at line 199 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Do we polygonise ?
Definition at line 205 of file otbShapeAttributesLabelMapFilter.h.
|
private |
The label image is used to compute the feret diameter
Definition at line 211 of file otbShapeAttributesLabelMapFilter.h.
|
private |
Compute only a reduced attribute set
Definition at line 208 of file otbShapeAttributesLabelMapFilter.h.
1.9.1