ITK
4.3.0
Insight Segmentation and Registration Toolkit
|
#include <itkShapeLabelObject.h>
A Label object to store the common attributes related to the shape of the object.
ShapeLabelObject stores the common attributes related to the shape of the object
This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176
Definition at line 42 of file itkShapeLabelObject.h.
Public Types | |
typedef AffineTransformType::Pointer | AffineTransformPointer |
typedef AffineTransform < double, VImageDimension > | AffineTransformType |
typedef Superclass::AttributeType | AttributeType |
typedef Point< double, VImageDimension > | CentroidType |
typedef SmartPointer< const Self > | ConstPointer |
typedef WeakPointer< const Self > | ConstWeakPointer |
typedef Superclass::IndexType | IndexType |
typedef LabelMap< Self > | LabelMapType |
typedef Superclass::LabelObjectType | LabelObjectType |
typedef TLabel | LabelType |
typedef Superclass::LengthType | LengthType |
typedef Superclass::LineType | LineType |
typedef Matrix< double, VImageDimension, VImageDimension > | MatrixType |
typedef SmartPointer< Self > | Pointer |
typedef ImageRegion < VImageDimension > | RegionType |
typedef ShapeLabelObject | Self |
typedef LabelObject< TLabel, VImageDimension > | Superclass |
typedef Vector< double, VImageDimension > | VectorType |
Public Types inherited from itk::LabelObject< TLabel, VImageDimension > | |
typedef unsigned int | AttributeType |
typedef SmartPointer< const Self > | ConstPointer |
typedef WeakPointer< const Self > | ConstWeakPointer |
typedef Index< VImageDimension > | IndexType |
typedef Self | LabelObjectType |
typedef TLabel | LabelType |
typedef LineType::LengthType | LengthType |
typedef LabelObjectLine < VImageDimension > | LineType |
typedef Offset< VImageDimension > | OffsetType |
typedef SmartPointer< Self > | Pointer |
typedef LabelObject | Self |
typedef itk::SizeValueType | SizeValueType |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
const RegionType & | GetBoundingBox () const |
const CentroidType & | GetCentroid () const |
const double & | GetElongation () const |
const VectorType & | GetEquivalentEllipsoidDiameter () const |
const double & | GetEquivalentSphericalPerimeter () const |
const double & | GetEquivalentSphericalRadius () const |
const double & | GetFeretDiameter () const |
const double & | GetFlatness () const |
virtual const char * | GetNameOfClass () const |
const SizeValueType & | GetNumberOfPixels () const |
const SizeValueType & | GetNumberOfPixelsOnBorder () const |
const double & | GetPerimeter () const |
const double & | GetPerimeterOnBorder () const |
const double & | GetPerimeterOnBorderRatio () const |
const double & | GetPhysicalSize () const |
const MatrixType & | GetPrincipalAxes () const |
const VectorType & | GetPrincipalMoments () const |
const double & | GetRoundness () const |
void | SetBoundingBox (const RegionType &v) |
void | SetCentroid (const CentroidType ¢roid) |
void | SetElongation (const double &v) |
void | SetEquivalentEllipsoidDiameter (const VectorType &v) |
void | SetEquivalentSphericalPerimeter (const double &v) |
void | SetEquivalentSphericalRadius (const double &v) |
void | SetFeretDiameter (const double &v) |
void | SetFlatness (const double &v) |
void | SetNumberOfPixels (const SizeValueType &v) |
void | SetNumberOfPixelsOnBorder (const SizeValueType &v) |
void | SetPerimeter (const double &v) |
void | SetPerimeterOnBorder (const double &v) |
void | SetPerimeterOnBorderRatio (const double &v) |
void | SetPhysicalSize (const double &v) |
void | SetPrincipalAxes (const MatrixType &v) |
void | SetPrincipalMoments (const VectorType &v) |
void | SetRoundness (const double &v) |
Public Member Functions inherited from itk::LabelObject< TLabel, VImageDimension > | |
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) |
bool | Empty () const |
IndexType | GetIndex (SizeValueType i) const |
const LabelType & | GetLabel () const |
const LineType & | GetLine (SizeValueType i) const |
LineType & | GetLine (SizeValueType i) |
SizeValueType | GetNumberOfLines () const |
bool | HasIndex (const IndexType &idx) const |
void | Optimize () |
bool | RemoveIndex (const IndexType &idx) |
void | SetLabel (const LabelType &label) |
void | Shift (OffsetType offset) |
SizeValueType | Size () const |
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 |
virtual void | Register () const |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const |
Static Public Member Functions | |
static AttributeType | GetAttributeFromName (const std::string &s) |
static std::string | GetNameFromAttribute (const AttributeType &a) |
static Pointer | New () |
Static Public Member Functions inherited from itk::LabelObject< TLabel, VImageDimension > | |
static AttributeType | GetAttributeFromName (const std::string &s) |
static std::string | GetNameFromAttribute (const AttributeType &a) |
static Pointer | New () |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Additional Inherited Members | |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Protected Member Functions inherited from itk::LabelObject< TLabel, VImageDimension > | |
LabelObject () | |
Protected Attributes inherited from itk::LightObject | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
typedef AffineTransformType::Pointer itk::ShapeLabelObject< TLabel, VImageDimension >::AffineTransformPointer |
Definition at line 465 of file itkShapeLabelObject.h.
typedef AffineTransform< double, VImageDimension > itk::ShapeLabelObject< TLabel, VImageDimension >::AffineTransformType |
Affine transform for mapping to and from principal axis
Definition at line 464 of file itkShapeLabelObject.h.
typedef Superclass::AttributeType itk::ShapeLabelObject< TLabel, VImageDimension >::AttributeType |
Definition at line 71 of file itkShapeLabelObject.h.
typedef Point< double, VImageDimension > itk::ShapeLabelObject< TLabel, VImageDimension >::CentroidType |
Definition at line 285 of file itkShapeLabelObject.h.
typedef SmartPointer< const Self > itk::ShapeLabelObject< TLabel, VImageDimension >::ConstPointer |
Definition at line 50 of file itkShapeLabelObject.h.
typedef WeakPointer< const Self > itk::ShapeLabelObject< TLabel, VImageDimension >::ConstWeakPointer |
Definition at line 51 of file itkShapeLabelObject.h.
typedef Superclass::IndexType itk::ShapeLabelObject< TLabel, VImageDimension >::IndexType |
Definition at line 63 of file itkShapeLabelObject.h.
typedef LabelMap< Self > itk::ShapeLabelObject< TLabel, VImageDimension >::LabelMapType |
Definition at line 57 of file itkShapeLabelObject.h.
typedef Superclass::LabelObjectType itk::ShapeLabelObject< TLabel, VImageDimension >::LabelObjectType |
Definition at line 48 of file itkShapeLabelObject.h.
typedef TLabel itk::ShapeLabelObject< TLabel, VImageDimension >::LabelType |
Definition at line 65 of file itkShapeLabelObject.h.
typedef Superclass::LengthType itk::ShapeLabelObject< TLabel, VImageDimension >::LengthType |
Definition at line 69 of file itkShapeLabelObject.h.
typedef Superclass::LineType itk::ShapeLabelObject< TLabel, VImageDimension >::LineType |
Definition at line 67 of file itkShapeLabelObject.h.
typedef Matrix< double, VImageDimension, VImageDimension > itk::ShapeLabelObject< TLabel, VImageDimension >::MatrixType |
Definition at line 287 of file itkShapeLabelObject.h.
typedef SmartPointer< Self > itk::ShapeLabelObject< TLabel, VImageDimension >::Pointer |
Definition at line 49 of file itkShapeLabelObject.h.
typedef ImageRegion< VImageDimension > itk::ShapeLabelObject< TLabel, VImageDimension >::RegionType |
Definition at line 283 of file itkShapeLabelObject.h.
typedef ShapeLabelObject itk::ShapeLabelObject< TLabel, VImageDimension >::Self |
Standard class typedefs
Definition at line 46 of file itkShapeLabelObject.h.
typedef LabelObject< TLabel, VImageDimension > itk::ShapeLabelObject< TLabel, VImageDimension >::Superclass |
Definition at line 47 of file itkShapeLabelObject.h.
typedef Vector< double, VImageDimension > itk::ShapeLabelObject< TLabel, VImageDimension >::VectorType |
Definition at line 289 of file itkShapeLabelObject.h.
|
inlineprotected |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 550 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
|
inlinevirtual |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Reimplemented from itk::LabelObject< TLabel, VImageDimension >.
Reimplemented in itk::StatisticsLabelObject< TLabel, VImageDimension >.
Definition at line 520 of file itkShapeLabelObject.h.
References NULL.
|
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::LabelObject< TLabel, VImageDimension >.
Reimplemented in itk::StatisticsLabelObject< TLabel, VImageDimension >.
|
inlinestatic |
Definition at line 145 of file itkShapeLabelObject.h.
|
inline |
Definition at line 291 of file itkShapeLabelObject.h.
|
inline |
Definition at line 321 of file itkShapeLabelObject.h.
|
inline |
Definition at line 381 of file itkShapeLabelObject.h.
|
inline |
Definition at line 431 of file itkShapeLabelObject.h.
|
inline |
Definition at line 421 of file itkShapeLabelObject.h.
|
inline |
Definition at line 411 of file itkShapeLabelObject.h.
|
inline |
Definition at line 351 of file itkShapeLabelObject.h.
|
inline |
Definition at line 441 of file itkShapeLabelObject.h.
|
inlinestatic |
Definition at line 219 of file itkShapeLabelObject.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::LabelObject< TLabel, VImageDimension >.
Reimplemented in itk::StatisticsLabelObject< TLabel, VImageDimension >.
|
inline |
Definition at line 311 of file itkShapeLabelObject.h.
|
inline |
Definition at line 331 of file itkShapeLabelObject.h.
|
inline |
Definition at line 391 of file itkShapeLabelObject.h.
|
inline |
Definition at line 341 of file itkShapeLabelObject.h.
|
inline |
Definition at line 451 of file itkShapeLabelObject.h.
|
inline |
Get the affine transform from physical axes to principal axes This method returns an affine transform which transforms from the physical coordinate system to the principal axes coordinate system.
Definition at line 496 of file itkShapeLabelObject.h.
|
inline |
Definition at line 301 of file itkShapeLabelObject.h.
|
inline |
Definition at line 371 of file itkShapeLabelObject.h.
|
inline |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 470 of file itkShapeLabelObject.h.
|
inline |
Definition at line 361 of file itkShapeLabelObject.h.
|
inline |
Definition at line 401 of file itkShapeLabelObject.h.
|
static |
Method for creation through the object factory.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
|
inlineprotectedvirtual |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Reimplemented from itk::LabelObject< TLabel, VImageDimension >.
Reimplemented in itk::StatisticsLabelObject< TLabel, VImageDimension >.
Definition at line 570 of file itkShapeLabelObject.h.
|
inline |
Definition at line 296 of file itkShapeLabelObject.h.
|
inline |
Definition at line 326 of file itkShapeLabelObject.h.
|
inline |
Definition at line 386 of file itkShapeLabelObject.h.
|
inline |
Definition at line 436 of file itkShapeLabelObject.h.
|
inline |
Definition at line 426 of file itkShapeLabelObject.h.
|
inline |
Definition at line 416 of file itkShapeLabelObject.h.
|
inline |
Definition at line 356 of file itkShapeLabelObject.h.
|
inline |
Definition at line 446 of file itkShapeLabelObject.h.
|
inline |
Definition at line 316 of file itkShapeLabelObject.h.
|
inline |
Definition at line 336 of file itkShapeLabelObject.h.
|
inline |
Definition at line 396 of file itkShapeLabelObject.h.
|
inline |
Definition at line 346 of file itkShapeLabelObject.h.
|
inline |
Definition at line 456 of file itkShapeLabelObject.h.
|
inline |
Definition at line 306 of file itkShapeLabelObject.h.
|
inline |
Definition at line 376 of file itkShapeLabelObject.h.
|
inline |
Definition at line 366 of file itkShapeLabelObject.h.
|
inline |
Definition at line 406 of file itkShapeLabelObject.h.
|
static |
Definition at line 86 of file itkShapeLabelObject.h.
|
static |
Centroid is the position of the center of the shape in physical coordinates. It is not constrained to be in the object, and thus can be outside if the object is not convex.
Definition at line 84 of file itkShapeLabelObject.h.
|
static |
Elongation is the ratio of the largest principal moment to the smallest principal moment. Its value is greater or equal to 1. Its type is double.
Definition at line 119 of file itkShapeLabelObject.h.
|
static |
EquivalentEllipsoidPerimeter is the size of the ellipsoid of the same size and the same ratio on all the axes than the label object. The value depends on the image spacing.
Definition at line 139 of file itkShapeLabelObject.h.
|
static |
EquivalentPerimeter is the equivalent perimeter of the hypersphere of the same size than the label object. The value depends on the image spacing. Its type is double.
Definition at line 134 of file itkShapeLabelObject.h.
|
static |
EquivalentRadius is the equivalent radius of the hypersphere of the same size than the label object. The value depends on the image spacing. Its type is double.
Definition at line 129 of file itkShapeLabelObject.h.
|
static |
FeretDiameter is the diameter in physical units of the sphere which include all the object. The feret diameter is not computed by default, because of its high computation. Its type is double.
Definition at line 108 of file itkShapeLabelObject.h.
|
static |
Definition at line 141 of file itkShapeLabelObject.h.
|
static |
Definition at line 61 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 598 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 601 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 607 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 612 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 611 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 610 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 604 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 613 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 599 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 602 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 608 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 603 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 614 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 600 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 606 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 605 of file itkShapeLabelObject.h.
|
private |
Get the affine transform from principal axes to physical axes This method returns an affine transform which transforms from the principal axes coordinate system to physical coordinates.
Definition at line 609 of file itkShapeLabelObject.h.
|
static |
The number of pixels.
Definition at line 74 of file itkShapeLabelObject.h.
|
static |
NumberOfPixelsOnBorder is the number of pixels in the objects which are on the border of the image. A pixel on several borders (a pixel in a corner) is counted only one time, so the size on border can't be greater than the size of the object. This attribute is particularly useful to remove the objects which are touching too much the border. Its type is unsigned long.
Definition at line 94 of file itkShapeLabelObject.h.
|
static |
The perimeter of the object.
Definition at line 122 of file itkShapeLabelObject.h.
|
static |
PerimeterOnBorder is the physical size of the objects which are on the border of the image. In 2D, it is a distance, in 3D, a surface, etc. Contrary to the PhysicalSize attribute which is directly linked to the NumberOfPixels, this attribute is not directly linked to the NumberOfPixelsOnBorder attribute. This attribute is particularly useful to remove the objects which are touching too much the border. Its type is double.
Definition at line 103 of file itkShapeLabelObject.h.
|
static |
Definition at line 143 of file itkShapeLabelObject.h.
|
static |
PhysicalSize is the size of the object in physical units. It is equal to the NumberOfPixels multiplied by the physical pixel size. Its type is double.
Definition at line 79 of file itkShapeLabelObject.h.
|
static |
BinaryPrincipalAxes contains the principal axes of the object.
Definition at line 114 of file itkShapeLabelObject.h.
|
static |
PrincipalMoments contains the principal moments.
Definition at line 111 of file itkShapeLabelObject.h.
|
static |
Definition at line 124 of file itkShapeLabelObject.h.