fast::CardinalSplineModel class

Cardinal spline shape model.

Contents

Used in the Kalman filter deformable model segmentation algorithm

Base classes

class ShapeModel

Public functions

auto create(std::vector<Vector2f> controlPoints, float globalProcessError, float localProcessError) -> std::shared_ptr<CardinalSplineModel>
Create instance.
auto getShape(VectorXf state) -> Shape::pointer virtual
auto getStateTransitionMatrix1() -> MatrixXf virtual
auto getStateTransitionMatrix2() -> MatrixXf virtual
auto getStateTransitionMatrix3() -> MatrixXf virtual
auto getProcessErrorMatrix() -> MatrixXf virtual
auto getInitialState(std::shared_ptr<Image> image) -> VectorXf virtual
auto getMeasurementVectors(VectorXf state, Shape::pointer shape) -> std::vector<MatrixXf> virtual
void initializeShapeToImageCenter()
void setControlPoints(std::vector<Vector2f> controlPoints)
void setInitialScaling(float x, float y)
void setInitialRotation(float angleInRadians)
void setInitialTranslation(float x, float y)
void setLocalProcessError(float error)
void setGlobalProcessError(float error)
void setTension(float tension)
void setTension(std::vector<float> tension)
void setResolution(int resolution)
auto restrictState(VectorXf state) -> VectorXf virtual
void setScalingLimit(float min = -1, float max = -1)

Function documentation

std::shared_ptr<CardinalSplineModel> fast::CardinalSplineModel::create(std::vector<Vector2f> controlPoints, float globalProcessError, float localProcessError)

Create instance.

Parameters
controlPoints List of control points for the cardinal spline.
globalProcessError
localProcessError
Returns instance

void fast::CardinalSplineModel::setControlPoints(std::vector<Vector2f> controlPoints)

Give a set of control points. The control points are assumed to be connected so that vector k, is connected to vector k-1 and k+1, and the last is connected to to the first to form a closed loop.