|
Video Processing Framework
|
#include <Spl_BSpline.h>
Public Member Functions | |
| SplineProcessing (BSpline *spline=NULL, int numImageParameters=0, int numFloatParameters=0, int numIntegerParameters=0, int numDataParameters=0) | |
| virtual | ~SplineProcessing () |
| void | init () |
| int | allocateResults () |
| int | directSetParameters (TList *longParList, TList *doubleParList) |
| int | runProcessing () |
| int | initializeProcessing () |
| int | finalizeProcessing () |
| void | setCPPointer (std::vector< SplineCP > *array) |
| int | setInputSpline (BSpline *inSpl) |
| int | moveToNext () |
| int | setCP (int index, float x, float y=undefinedVal, float z=undefinedVal, float w=undefinedVal) |
| CvPoint2D32f | getCP (int index) |
| int | setKnot (int index, float u=-10.0, int multipl=1, bool copyToKnots=true) |
| float | getKnot (int index, int *multipl=NULL) |
| int | setStatus (int index, bool isCP, bool isKnot=false, int degree=3, bool open=true, bool uniform=false) |
| int | getStatus (int index, bool *isCP, bool *isKnot=NULL, int *degree=NULL, bool *open=NULL, bool *uniform=NULL) |
| std::vector< SplineCP > * | getCPPointer () |
| int | getNumCPs () |
| void | setSegment (int segm) |
| CvPoint2D32f | getPoint (int segm, float localParam) |
| CvPoint2D32f | getPoint (float globalParam) |
| CvPoint2D32f | getDer (int segm, float localParam) |
| CvPoint2D32f | getDer (float globalParam) |
| float | getArcLength () |
| void | calculateIntPoints (CvPoint **points, int &numPoints, float **weight=NULL) |
| void | displaySpline (IplImage *outimage, int offsetx=0, int offsety=0) |
| float | deBoor (int degree, float *coeff, float *knot, float u, int i, int multiplsum) |
| void | bsplToPoints (int degree, int startint, int numint, float *coeff, float *knot, int dense, float *points, int *point_num, int *num_segm) |
| int | prepareSplToPoints (bool copyCPs=true) |
| int | splineToPoints (CvPoint2D32f **points, int *numPoints, int density, int startInt=-1, int endInt=-1, int *numSegments=NULL, float *abscisae=NULL) |
| int | plotSpline (IplImage *outimage, CvPoint2D32f *points, int numPoints, int density=0, int offsetx=0, int offsety=0) |
| int | calculateKnots (bool isUniform=true, bool isOpen=true, bool endKnotsCP=true, float *inputKnots=NULL, int numInputKnots=0) |
| int | copyToOutput (bool copyCPs=true, bool copyKnots=true) |
| int | writeBSpline (BSpline *spl, bool writeStatus=true) |
Public Attributes | |
| std::vector< SplineCP > | tempcp |
| float | cpp [4][3] |
| float * | coeffx |
| float * | coeffy |
| int | knotsAllocated |
| bool | coeffChanged |
| bool | debug |
| bool | outputSplOnStack |
| bool | inputImgAllocated |
| bool | inputSplAllocated |
| int | currCPInd |
| CvPoint2D32f | currCPVal |
| BSpline * | inputSpl |
| BSpline * | outputSpl |
| std::vector< SplineCP > & | cp |
| std::vector< CvPoint2D32f > | cps |
| int | currActInt |
| int | numActInt |
| bool | open |
| bool | uniform |
| bool | knotsDefined |
| bool | endCPsKnots |
| int | order |
| int | degree |
| int | numCPs |
| int | numOriginalCPs |
| int | numKnots |
| int | splineCol |
| int | splineCol2 |
| int | cpCol |
| int | knotCol |
| int | lineCol |
| int | selectedCPCol |
| bool | blendcolors |
| bool | drawCPs |
| bool | drawKnots |
| bool | drawCPline |
| float * | knots |
| int | sizeCPoint |
| int | plotDensity |
| SplineProcessing::SplineProcessing | ( | BSpline * | spline = NULL, |
| int | numImageParameters = 0, |
||
| int | numFloatParameters = 0, |
||
| int | numIntegerParameters = 0, |
||
| int | numDataParameters = 0 |
||
| ) |
| SplineProcessing::~SplineProcessing | ( | ) | [virtual] |
| int SplineProcessing::allocateResults | ( | ) | [virtual] |
Reimplemented from AbstractProcessing.
| void SplineProcessing::bsplToPoints | ( | int | degree, |
| int | startint, | ||
| int | numint, | ||
| float * | coeff, | ||
| float * | knot, | ||
| int | dense, | ||
| float * | points, | ||
| int * | point_num, | ||
| int * | num_segm | ||
| ) |
| void SplineProcessing::calculateIntPoints | ( | CvPoint ** | points, |
| int & | numPoints, | ||
| float ** | weight = NULL |
||
| ) |
| int SplineProcessing::calculateKnots | ( | bool | isUniform = true, |
| bool | isOpen = true, |
||
| bool | endKnotsCP = true, |
||
| float * | inputKnots = NULL, |
||
| int | numInputKnots = 0 |
||
| ) |
| int SplineProcessing::copyToOutput | ( | bool | copyCPs = true, |
| bool | copyKnots = true |
||
| ) |
| float SplineProcessing::deBoor | ( | int | degree, |
| float * | coeff, | ||
| float * | knot, | ||
| float | u, | ||
| int | i, | ||
| int | multiplsum | ||
| ) |
| int SplineProcessing::directSetParameters | ( | TList * | longParList, |
| TList * | doubleParList | ||
| ) |
| void SplineProcessing::displaySpline | ( | IplImage * | outimage, |
| int | offsetx = 0, |
||
| int | offsety = 0 |
||
| ) |
| int SplineProcessing::finalizeProcessing | ( | ) | [virtual] |
Reimplemented from AbstractProcessing.
| float SplineProcessing::getArcLength | ( | ) |
| CvPoint2D32f SplineProcessing::getCP | ( | int | index | ) |
| std::vector< SplineCP > * SplineProcessing::getCPPointer | ( | ) |
| CvPoint2D32f SplineProcessing::getDer | ( | int | segm, |
| float | localParam | ||
| ) |
| CvPoint2D32f SplineProcessing::getDer | ( | float | globalParam | ) |
| float SplineProcessing::getKnot | ( | int | index, |
| int * | multipl = NULL |
||
| ) |
| int SplineProcessing::getNumCPs | ( | ) |
| CvPoint2D32f SplineProcessing::getPoint | ( | int | segm, |
| float | localParam | ||
| ) |
| CvPoint2D32f SplineProcessing::getPoint | ( | float | globalParam | ) |
| int SplineProcessing::getStatus | ( | int | index, |
| bool * | isCP, | ||
| bool * | isKnot = NULL, |
||
| int * | degree = NULL, |
||
| bool * | open = NULL, |
||
| bool * | uniform = NULL |
||
| ) |
| void SplineProcessing::init | ( | ) |
| int SplineProcessing::initializeProcessing | ( | ) | [virtual] |
Reimplemented from AbstractProcessing.
| int SplineProcessing::moveToNext | ( | ) |
Reimplemented from AbstractData.
| int SplineProcessing::plotSpline | ( | IplImage * | outimage, |
| CvPoint2D32f * | points, | ||
| int | numPoints, | ||
| int | density = 0, |
||
| int | offsetx = 0, |
||
| int | offsety = 0 |
||
| ) |
| int SplineProcessing::prepareSplToPoints | ( | bool | copyCPs = true | ) |
| int SplineProcessing::runProcessing | ( | ) | [virtual] |
Reimplemented from AbstractProcessing.
| int SplineProcessing::setCP | ( | int | index, |
| float | x, | ||
| float | y = undefinedVal, |
||
| float | z = undefinedVal, |
||
| float | w = undefinedVal |
||
| ) |
| void SplineProcessing::setCPPointer | ( | std::vector< SplineCP > * | array | ) |
| int SplineProcessing::setInputSpline | ( | BSpline * | inSpl | ) |
| int SplineProcessing::setKnot | ( | int | index, |
| float | u = -10.0, |
||
| int | multipl = 1, |
||
| bool | copyToKnots = true |
||
| ) |
| void SplineProcessing::setSegment | ( | int | segm | ) |
| int SplineProcessing::setStatus | ( | int | index, |
| bool | isCP, | ||
| bool | isKnot = false, |
||
| int | degree = 3, |
||
| bool | open = true, |
||
| bool | uniform = false |
||
| ) |
| int SplineProcessing::splineToPoints | ( | CvPoint2D32f ** | points, |
| int * | numPoints, | ||
| int | density, | ||
| int | startInt = -1, |
||
| int | endInt = -1, |
||
| int * | numSegments = NULL, |
||
| float * | abscisae = NULL |
||
| ) |
| int SplineProcessing::writeBSpline | ( | BSpline * | spl, |
| bool | writeStatus = true |
||
| ) |
| float* SplineProcessing::coeffx |
| float* SplineProcessing::coeffy |
| std::vector<SplineCP>& SplineProcessing::cp |
| float SplineProcessing::cpp[4][3] |
| std::vector<CvPoint2D32f> SplineProcessing::cps |
| CvPoint2D32f SplineProcessing::currCPVal |
| float* SplineProcessing::knots |
| std::vector<SplineCP> SplineProcessing::tempcp |