Basic Image AlgorithmS Library
2.8.0
|
this class is intended for drawing of quadratic and cubic regular B-Splines from given control points. More...
#include <MathAlgo/BSplineCurve.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
BSplineCurve () | |
void | CubicUniformBSpline (Vector2< double > &res, double t) |
computes the point on a cubic uniform B-spline curve at time t More... | |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
void | InitCubicUniformBSpline () |
computes coefficients for all segments of a cubic uniform B-spline More... | |
void | InitQuadraticUniformBSpline () |
computes coefficients for all segments of a quadratic uniform B-spline More... | |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
void | QuadraticUniformBSpline (Vector2< double > &res, double t) |
computes the point on a quadratic uniform B-spline curve at time t More... | |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
void | SetControlPoints (std::vector< BIAS::Vector2< double > > &cPnt) |
set the control points, which control the interpolating curve More... | |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
~BSplineCurve () | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
std::vector< BIAS::Vector2 < double > > | cPnts_ |
bool | initializedCubic_ |
bool | initializedQuadratic_ |
std::vector< BIAS::Vector < double > > | xCoeff_ |
std::vector< BIAS::Vector < double > > | yCoeff_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
this class is intended for drawing of quadratic and cubic regular B-Splines from given control points.
this class is intended for drawing of quadratic and cubic regular B-Splines from given control points. The Spline doesnt interpolate through the control points!!!
The Implementation of BSplineCurve is faster then BSpline. If you only want to draw a BSpline you should use this implementation.
usage:
see also 'Computer Graphics & Geometric Modeling' from David Salomon chapter 4.16
Definition at line 70 of file BSplineCurve.hh.
BSplineCurve::BSplineCurve | ( | ) |
Definition at line 32 of file BSplineCurve.cpp.
|
inline |
Definition at line 75 of file BSplineCurve.hh.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
|
inlineprotectedinherited |
void BSplineCurve::CubicUniformBSpline | ( | Vector2< double > & | res, |
double | t | ||
) |
computes the point on a cubic uniform B-spline curve at time t
this function computes the point on a cubic uniform B-spline curve at time t. method is discribed in David Salomons "Computer Graphic & Geometric Modelling" chapter 4.16.2. the value of t must be between 0 and 1. t is used to compute the corresponding segment and the t_ for the result segment.
res | - reference to the result (return value) |
t | - time value of which point is to be calculated |
Definition at line 182 of file BSplineCurve.cpp.
References BIAS::Vector< T >::ScalarProduct().
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
void BSplineCurve::InitCubicUniformBSpline | ( | ) |
computes coefficients for all segments of a cubic uniform B-spline
this function computes the coefficients for all sements of a cubic uniform B-spline and saves these coefficients in protected vectors xCoeff_, yCoeff_. method is discribed in David Salomons "Computer Graphic & Geometric Modelling" chapter 4.16.4
Definition at line 93 of file BSplineCurve.cpp.
References BIAS::Matrix< T >::clear(), and BIAS::Matrix< T >::Mult().
void BSplineCurve::InitQuadraticUniformBSpline | ( | ) |
computes coefficients for all segments of a quadratic uniform B-spline
this function computes the coefficients for all sements of a quadratic uniform B-spline and saves these coefficients in protected vectors xCoeff_, yCoeff_ method is discribed in David Salomons "Computer Graphic & Geometric Modelling" chapter 4.16.2
Definition at line 39 of file BSplineCurve.cpp.
References BIAS::Matrix< T >::clear(), and BIAS::Matrix< T >::Mult().
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
inlineinherited |
void BSplineCurve::QuadraticUniformBSpline | ( | Vector2< double > & | res, |
double | t | ||
) |
computes the point on a quadratic uniform B-spline curve at time t
this function computes the point on a quadratic uniform B-spline curve at time t. method is discribed in David Salomons "Computer Graphic & Geometric Modelling" chapter 4.16.2. the value of t must be between 0 and 1. t is used to compute the corresponding segment and the t_ for the result segment.
res | - reference to the result (return value) |
t | - time value of which point is to be calculated |
Definition at line 152 of file BSplineCurve.cpp.
References BIAS::Vector< T >::ScalarProduct().
|
inlineinherited |
|
inlineinherited |
|
inline |
set the control points, which control the interpolating curve
Definition at line 80 of file BSplineCurve.hh.
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlineinherited |
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protected |
Definition at line 154 of file BSplineCurve.hh.
|
staticprotectedinherited |
|
protected |
Definition at line 152 of file BSplineCurve.hh.
|
protected |
Definition at line 151 of file BSplineCurve.hh.
|
protected |
Definition at line 155 of file BSplineCurve.hh.
|
protected |
Definition at line 156 of file BSplineCurve.hh.