Compares the scale and dimensionality of two medial nodes. More...
#include <itkUnaryMedialNodeMetric.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef MedialNodeType::EigenvalueType | EigenvalueType |
typedef BloxCoreAtomPixel < VDimensions >::Pointer | MedialNodePointerType |
typedef BloxCoreAtomPixel < VDimensions > | MedialNodeType |
typedef SmartPointer< Self > | Pointer |
typedef UnaryMedialNodeMetric | Self |
typedef LightObject | Superclass |
Public Member Functions | |
virtual Pointer | CreateAnother () const |
virtual void | Delete () |
virtual const char * | GetNameOfClass () const |
virtual int | GetReferenceCount () const |
double | GetResult () |
void | Initialize (void) |
void | Print (std::ostream &os, Indent indent=0) const |
virtual void | Register () const |
void | SetMedialNodes (MedialNodeType *medialNodeA, MedialNodeType *medialNodeB) |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const |
Static Public Member Functions | |
static void | BreakOnError () |
static Pointer | New () |
Protected Types | |
typedef int | InternalReferenceCountType |
Protected Member Functions | |
void | operator= (const Self &) |
void | PrintSelf (std::ostream &os, Indent indent) const |
UnaryMedialNodeMetric () | |
~UnaryMedialNodeMetric () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
Protected Attributes | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
Compares the scale and dimensionality of two medial nodes.
The class is templated over image dimension. The metric measures the similarity of two medial nodes based on their eigenvalues and scales. The unary metric is calculated by u = sum(L^2 * S), where L is the difference in eigenvalues and S is the ratio of the difference in medial node scales and sum of the medial node scales. The metric is normalized such that a value of 0 means that the nodes are perfectly similar and that a value of 1 means that the nodes are not similar.
Reference: Tamburo, Cois, Shelton, Stetten. Medial Node Correspondences Towards Automated Registration, Lecture Notes in Computer Science (in press), 2003.
Definition at line 48 of file itkUnaryMedialNodeMetric.h.
typedef SmartPointer<const Self> itk::UnaryMedialNodeMetric< VDimensions >::ConstPointer |
Reimplemented from itk::LightObject.
Definition at line 56 of file itkUnaryMedialNodeMetric.h.
typedef MedialNodeType::EigenvalueType itk::UnaryMedialNodeMetric< VDimensions >::EigenvalueType |
Definition at line 67 of file itkUnaryMedialNodeMetric.h.
typedef int itk::LightObject::InternalReferenceCountType [protected, inherited] |
Define the type of the reference count according to the target. This allows the use of atomic operations
Definition at line 139 of file itkLightObject.h.
typedef BloxCoreAtomPixel<VDimensions>::Pointer itk::UnaryMedialNodeMetric< VDimensions >::MedialNodePointerType |
Definition at line 66 of file itkUnaryMedialNodeMetric.h.
typedef BloxCoreAtomPixel<VDimensions> itk::UnaryMedialNodeMetric< VDimensions >::MedialNodeType |
Pixel typedef.
Definition at line 62 of file itkUnaryMedialNodeMetric.h.
typedef SmartPointer<Self> itk::UnaryMedialNodeMetric< VDimensions >::Pointer |
Reimplemented from itk::LightObject.
Definition at line 55 of file itkUnaryMedialNodeMetric.h.
typedef UnaryMedialNodeMetric itk::UnaryMedialNodeMetric< VDimensions >::Self |
Standard class typedefs.
Reimplemented from itk::LightObject.
Definition at line 53 of file itkUnaryMedialNodeMetric.h.
typedef LightObject itk::UnaryMedialNodeMetric< VDimensions >::Superclass |
Definition at line 54 of file itkUnaryMedialNodeMetric.h.
itk::UnaryMedialNodeMetric< VDimensions >::UnaryMedialNodeMetric | ( | ) | [protected] |
Default Constructor.
itk::UnaryMedialNodeMetric< VDimensions >::~UnaryMedialNodeMetric | ( | ) | [inline, protected] |
Default Destructor.
Definition at line 85 of file itkUnaryMedialNodeMetric.h.
static void itk::LightObject::BreakOnError | ( | ) | [static, inherited] |
This method is called when itkExceptionMacro executes. It allows the debugger to break on error.
virtual Pointer itk::LightObject::CreateAnother | ( | ) | const [virtual, inherited] |
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 in itk::BSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >, itk::CreateObjectFunction< T >, itk::MetaDataObject< MetaDataObjectType >, itk::Object, itk::TransformFactoryBase, itk::AnalyzeImageIOFactory, itk::BioRadImageIOFactory, itk::BMPImageIOFactory, itk::Brains2MaskImageIOFactory, itk::DICOMImageIO2Factory, itk::DicomImageIOFactory, itk::GDCMImageIOFactory, itk::GE4ImageIOFactory, itk::GE5ImageIOFactory, itk::GEAdwImageIOFactory, itk::GiplImageIOFactory, itk::JPEGImageIOFactory, itk::LSMImageIOFactory, itk::MetaImageIOFactory, itk::NiftiImageIOFactory, itk::NrrdImageIOFactory, itk::PNGImageIOFactory, itk::RawImageIOFactory< TPixel, VImageDimension >, itk::SiemensVisionImageIOFactory, itk::StimulateImageIOFactory, itk::TIFFImageIOFactory, itk::VTKImageIOFactory, itk::Bruker2DSEQImageIOFactory, itk::MatlabTransformIOFactory, itk::MINC2ImageIOFactory, itk::MRCImageIOFactory, itk::PhilipsRECImageIOFactory, itk::TxtTransformIOFactory, itk::VoxBoCUBImageIOFactory, itk::VTKImageIO2Factory, and itk::SpatialObjectFactoryBase.
virtual void itk::LightObject::Delete | ( | ) | [virtual, inherited] |
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.
virtual const char* itk::UnaryMedialNodeMetric< VDimensions >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::LightObject.
virtual int itk::LightObject::GetReferenceCount | ( | ) | const [inline, virtual, inherited] |
Gets the reference count on this object.
Definition at line 106 of file itkLightObject.h.
double itk::UnaryMedialNodeMetric< VDimensions >::GetResult | ( | ) | [inline] |
Return the resulting unary metric value for a given two medial nodes.
Definition at line 77 of file itkUnaryMedialNodeMetric.h.
void itk::UnaryMedialNodeMetric< VDimensions >::Initialize | ( | void | ) |
Initialize and compute the Unary Metric.
static Pointer itk::UnaryMedialNodeMetric< VDimensions >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::LightObject.
void itk::UnaryMedialNodeMetric< VDimensions >::operator= | ( | const Self & | ) | [protected] |
void itk::LightObject::Print | ( | std::ostream & | os, | |
Indent | indent = 0 | |||
) | const [inherited] |
Cause the object to print itself out.
Referenced by itk::WeakPointer< ProcessObject >::Print().
virtual void itk::LightObject::PrintHeader | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, virtual, inherited] |
void itk::UnaryMedialNodeMetric< VDimensions >::PrintSelf | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, virtual] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::LightObject.
virtual void itk::LightObject::PrintTrailer | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, virtual, inherited] |
virtual void itk::LightObject::Register | ( | ) | const [virtual, inherited] |
Increase the reference count (mark as used by another object).
Reimplemented in itk::Object.
void itk::UnaryMedialNodeMetric< VDimensions >::SetMedialNodes | ( | MedialNodeType * | medialNodeA, | |
MedialNodeType * | medialNodeB | |||
) |
Set the two medial nodes to compute a unary metric for.
virtual void itk::LightObject::SetReferenceCount | ( | int | ) | [virtual, inherited] |
Sets the reference count on this object. This is a dangerous method, use it with care.
Reimplemented in itk::Object.
virtual void itk::LightObject::UnRegister | ( | ) | const [virtual, inherited] |
Decrease the reference count (release by another object).
Reimplemented in itk::Object.
InternalReferenceCountType itk::LightObject::m_ReferenceCount [mutable, protected, inherited] |
Number of uses of this object by other objects.
Definition at line 144 of file itkLightObject.h.
SimpleFastMutexLock itk::LightObject::m_ReferenceCountLock [mutable, protected, inherited] |
Mutex lock to protect modification to the reference count
Definition at line 147 of file itkLightObject.h.