ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkNonUniformBSpline.h>
Public Types | |
typedef std::vector< double > | ChordLengthListType |
typedef SmartPointer< const Self > | ConstPointer |
typedef ControlPointListType * | ControlPointListPointer |
typedef std::vector < ControlPointType > | ControlPointListType |
typedef itk::Point< double, TDimension > | ControlPointType |
typedef std::vector< double > | CoordinateListType |
typedef std::vector< double > | KnotListType |
typedef SmartPointer< Self > | Pointer |
typedef PointListType * | PointListPointer |
typedef std::vector< PointType > | PointListType |
typedef itk::Point< ScalarType, TDimension > | PointType |
typedef double | ScalarType |
typedef NonUniformBSpline | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
Public Types inherited from itk::LightObject |
Public Member Functions | |
void | ComputeChordLengths () |
void | ComputeControlPoints () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
PointType | EvaluateSpline (const Array< double > &p) const |
PointType | EvaluateSpline (double t) const |
const ControlPointListType & | GetControlPoints () const |
const KnotListType & | GetKnots () const |
virtual const char * | GetNameOfClass () const |
const PointListType & | GetPoints () const |
double | NonUniformBSplineFunctionRecursive (unsigned int order, unsigned int i, double t) const |
void | SetControlPoints (ControlPointListType &ctrlpts) |
void | SetKnots (KnotListType &newKnots) |
void | SetPoints (PointListType &newPoints) |
virtual void | SetSplineOrder (unsigned int _arg) |
virtual const unsigned int & | GetSplineOrder () |
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 |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary (void) |
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
virtual unsigned long | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () 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 |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
Protected Member Functions | |
NonUniformBSpline () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~NonUniformBSpline () |
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 () |
Protected Attributes | |
ChordLengthListType | m_ChordLength |
ControlPointListType | m_ControlPoints |
ChordLengthListType | m_CumulativeChordLength |
KnotListType | m_Knots |
PointListType | m_Points |
unsigned int | m_SpatialDimension |
unsigned int | m_SplineOrder |
BSpline with nonuniform knot spacing.
This class is a bspline with nonuniform knot spacing. The use can specify a set of points and a set of knots and the spline will attempt to find the control points which will cause the spline to interpolate the points.
CAUTION: THIS CLASS IS STILL UNDER DEVELOPMENT.
Definition at line 46 of file itkNonUniformBSpline.h.
typedef std::vector< double > itk::NonUniformBSpline< TDimension >::ChordLengthListType |
Definition at line 66 of file itkNonUniformBSpline.h.
typedef SmartPointer< const Self > itk::NonUniformBSpline< TDimension >::ConstPointer |
Reimplemented from itk::Object.
Definition at line 56 of file itkNonUniformBSpline.h.
typedef ControlPointListType* itk::NonUniformBSpline< TDimension >::ControlPointListPointer |
Definition at line 65 of file itkNonUniformBSpline.h.
typedef std::vector< ControlPointType > itk::NonUniformBSpline< TDimension >::ControlPointListType |
Definition at line 64 of file itkNonUniformBSpline.h.
typedef itk::Point< double, TDimension > itk::NonUniformBSpline< TDimension >::ControlPointType |
Definition at line 63 of file itkNonUniformBSpline.h.
typedef std::vector< double > itk::NonUniformBSpline< TDimension >::CoordinateListType |
Definition at line 62 of file itkNonUniformBSpline.h.
typedef std::vector< double > itk::NonUniformBSpline< TDimension >::KnotListType |
Definition at line 61 of file itkNonUniformBSpline.h.
typedef SmartPointer< Self > itk::NonUniformBSpline< TDimension >::Pointer |
Reimplemented from itk::Object.
Definition at line 55 of file itkNonUniformBSpline.h.
typedef PointListType* itk::NonUniformBSpline< TDimension >::PointListPointer |
Definition at line 60 of file itkNonUniformBSpline.h.
typedef std::vector< PointType > itk::NonUniformBSpline< TDimension >::PointListType |
Definition at line 59 of file itkNonUniformBSpline.h.
typedef itk::Point< ScalarType, TDimension > itk::NonUniformBSpline< TDimension >::PointType |
Definition at line 58 of file itkNonUniformBSpline.h.
typedef double itk::NonUniformBSpline< TDimension >::ScalarType |
Definition at line 57 of file itkNonUniformBSpline.h.
typedef NonUniformBSpline itk::NonUniformBSpline< TDimension >::Self |
typedef Object itk::NonUniformBSpline< TDimension >::Superclass |
Reimplemented from itk::Object.
Definition at line 54 of file itkNonUniformBSpline.h.
|
protected |
Constructor
|
protectedvirtual |
Virtual destructor
void itk::NonUniformBSpline< TDimension >::ComputeChordLengths | ( | ) |
Computes the chord lengths based on the points.
void itk::NonUniformBSpline< TDimension >::ComputeControlPoints | ( | ) |
Compute the control points.
|
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::Object.
PointType itk::NonUniformBSpline< TDimension >::EvaluateSpline | ( | const Array< double > & | p | ) | const |
Methods for evaluating the spline. The parameterization is always between 0 and 1.
PointType itk::NonUniformBSpline< TDimension >::EvaluateSpline | ( | double | t | ) | const |
const ControlPointListType& itk::NonUniformBSpline< TDimension >::GetControlPoints | ( | ) | const |
Get the control points for the spline
const KnotListType& itk::NonUniformBSpline< TDimension >::GetKnots | ( | ) | const |
Get the knot vector.
|
virtual |
Method for creation through the object factory.
Reimplemented from itk::Object.
const PointListType& itk::NonUniformBSpline< TDimension >::GetPoints | ( | ) | const |
Get the points the spline is trying to interpolate.
|
virtual |
Set the order of the spline.
|
static |
Method for creation through the object factory.
Reimplemented from itk::Object.
double itk::NonUniformBSpline< TDimension >::NonUniformBSplineFunctionRecursive | ( | unsigned int | order, |
unsigned int | i, | ||
double | t | ||
) | const |
Evaluate the basis functions directly. order - order of the basis function, i.e. 3 = cubic. i - basis function number, zero based. t - parameter of the spline.
|
protectedvirtual |
Method to print the object.
Reimplemented from itk::Object.
void itk::NonUniformBSpline< TDimension >::SetControlPoints | ( | ControlPointListType & | ctrlpts | ) |
Set the control points for the spline.
void itk::NonUniformBSpline< TDimension >::SetKnots | ( | KnotListType & | newKnots | ) |
Set the knot vector. Knots may be nonuniformly spaced. Knots will be rescaled to be between 0 and 1.
void itk::NonUniformBSpline< TDimension >::SetPoints | ( | PointListType & | newPoints | ) |
Set points which the spline will attempt to interpolate.
|
virtual |
Set the order of the spline.
|
protected |
The chord length computed from m_Points.
Definition at line 172 of file itkNonUniformBSpline.h.
|
protected |
The control points of the spline.
Definition at line 167 of file itkNonUniformBSpline.h.
|
protected |
The cumulative chord length computed from m_Points
Definition at line 177 of file itkNonUniformBSpline.h.
|
protected |
The knots of spline.
Definition at line 162 of file itkNonUniformBSpline.h.
|
protected |
Points that the spline attempts to intepolate.
Definition at line 157 of file itkNonUniformBSpline.h.
|
protected |
The spatial dimension. Saved from the template parameter.
Definition at line 187 of file itkNonUniformBSpline.h.
|
protected |
The order of the spline.
Definition at line 182 of file itkNonUniformBSpline.h.