OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimThinPlateSpline.h>
Public Member Functions | |
ossimThinPlateSpline (int nof_vars=1) | |
~ossimThinPlateSpline () | |
int | getNumberOfPoints () const |
void | setToler (double tx, double ty) |
void | getToler (double &tx, double &ty) const |
vizGeorefInterType | getInterpolationType () const |
int | deleteList () |
void | growPoints () |
int | addPoint (const double Px, const double Py, const double *Pvars) |
int | deletePoint (const double Px, const double Py) |
int | getPoint (const double Px, const double Py, double *Pvars) const |
bool | getXy (int index, double &x, double &y) const |
bool | changePoint (int index, double x, double y, double *Pvars) |
void | reset (void) |
int | solve (void) |
Private Member Functions | |
double | baseFunc (const double x1, const double y1, const double x2, const double y2) const |
Private Attributes | |
vizGeorefInterType | type |
int | _nof_vars |
int | _nof_points |
int | _max_nof_points |
int | _nof_eqs |
double | _tx |
double | _ty |
double | _ta |
double | _dx |
double | _dy |
std::vector< double > | x |
std::vector< double > | y |
std::vector< std::vector< double > > | rhs |
std::vector< std::vector< double > > | coef |
std::vector< double > | u |
std::vector< int > | unused |
std::vector< int > | index |
std::vector< double > | _AA |
std::vector< double > | _Ainv |
Definition at line 37 of file ossimThinPlateSpline.h.
Definition at line 40 of file ossimThinPlateSpline.h.
|
inline |
Definition at line 53 of file ossimThinPlateSpline.h.
|
inline |
Definition at line 69 of file ossimThinPlateSpline.h.
int ossimThinPlateSpline::addPoint | ( | const double | Px, |
const double | Py, | ||
const double * | Pvars | ||
) |
Definition at line 77 of file ossimThinPlateSpline.cpp.
References _max_nof_points, _nof_points, _nof_vars, growPoints(), rhs, type, VIZ_GEOREF_SPLINE_POINT_WAS_ADDED, x, and y.
Referenced by ossimHistogram::fillInteriorEmptyBins().
|
private |
Definition at line 391 of file ossimThinPlateSpline.cpp.
Referenced by getPoint(), and solve().
bool ossimThinPlateSpline::changePoint | ( | int | index, |
double | x, | ||
double | y, | ||
double * | Pvars | ||
) |
Definition at line 95 of file ossimThinPlateSpline.cpp.
References _nof_points, _nof_vars, index, rhs, x, and y.
|
inline |
Definition at line 99 of file ossimThinPlateSpline.h.
int ossimThinPlateSpline::deletePoint | ( | const double | Px, |
const double | Py | ||
) |
Definition at line 128 of file ossimThinPlateSpline.cpp.
References _nof_points, _nof_vars, _tx, _ty, ossim::abs(), rhs, type, VIZ_GEOREF_SPLINE_POINT_WAS_DELETED, x, and y.
|
inline |
Definition at line 95 of file ossimThinPlateSpline.h.
|
inline |
Definition at line 81 of file ossimThinPlateSpline.h.
int ossimThinPlateSpline::getPoint | ( | const double | Px, |
const double | Py, | ||
double * | Pvars | ||
) | const |
Definition at line 309 of file ossimThinPlateSpline.cpp.
References _dx, _dy, _nof_points, _nof_vars, baseFunc(), coef, index, rhs, type, u, VIZ_GEOREF_SPLINE_FULL, VIZ_GEOREF_SPLINE_ONE_DIMENSIONAL, VIZ_GEOREF_SPLINE_ONE_POINT, VIZ_GEOREF_SPLINE_POINT_WAS_ADDED, VIZ_GEOREF_SPLINE_POINT_WAS_DELETED, VIZ_GEOREF_SPLINE_TWO_POINTS, VIZ_GEOREF_SPLINE_ZERO_POINTS, x, and y.
Referenced by ossimHistogram::fillInteriorEmptyBins().
|
inline |
Definition at line 90 of file ossimThinPlateSpline.h.
bool ossimThinPlateSpline::getXy | ( | int | index, |
double & | x, | ||
double & | y | ||
) | const |
void ossimThinPlateSpline::growPoints | ( | ) |
Definition at line 57 of file ossimThinPlateSpline.cpp.
References _max_nof_points, _nof_vars, coef, index, rhs, u, unused, x, and y.
Referenced by addPoint().
|
inline |
Definition at line 114 of file ossimThinPlateSpline.h.
|
inline |
Definition at line 85 of file ossimThinPlateSpline.h.
int ossimThinPlateSpline::solve | ( | void | ) |
Definition at line 149 of file ossimThinPlateSpline.cpp.
References _AA, _Ainv, _dx, _dy, _nof_eqs, _nof_points, A, baseFunc(), index, ossim::max(), ossim::min(), status, type, u, unused, VIZ_GEOREF_SPLINE_FULL, VIZ_GEOREF_SPLINE_ONE_DIMENSIONAL, VIZ_GEOREF_SPLINE_ONE_POINT, VIZ_GEOREF_SPLINE_TWO_POINTS, VIZ_GEOREF_SPLINE_ZERO_POINTS, x, and y.
Referenced by ossimHistogram::fillInteriorEmptyBins().
|
private |
Definition at line 142 of file ossimThinPlateSpline.h.
Referenced by solve().
|
private |
Definition at line 142 of file ossimThinPlateSpline.h.
Referenced by solve().
|
private |
Definition at line 130 of file ossimThinPlateSpline.h.
Referenced by getPoint(), and solve().
|
private |
Definition at line 130 of file ossimThinPlateSpline.h.
Referenced by getPoint(), and solve().
|
private |
Definition at line 125 of file ossimThinPlateSpline.h.
Referenced by addPoint(), and growPoints().
|
private |
Definition at line 126 of file ossimThinPlateSpline.h.
Referenced by solve().
|
private |
Definition at line 124 of file ossimThinPlateSpline.h.
Referenced by addPoint(), changePoint(), deletePoint(), getPoint(), getXy(), and solve().
|
private |
Definition at line 123 of file ossimThinPlateSpline.h.
Referenced by addPoint(), changePoint(), deletePoint(), getPoint(), and growPoints().
|
private |
Definition at line 129 of file ossimThinPlateSpline.h.
|
private |
Definition at line 128 of file ossimThinPlateSpline.h.
Referenced by deletePoint().
|
private |
Definition at line 128 of file ossimThinPlateSpline.h.
Referenced by deletePoint().
|
private |
Definition at line 136 of file ossimThinPlateSpline.h.
Referenced by getPoint(), and growPoints().
|
private |
Definition at line 140 of file ossimThinPlateSpline.h.
Referenced by changePoint(), getPoint(), getXy(), growPoints(), and solve().
|
private |
Definition at line 135 of file ossimThinPlateSpline.h.
Referenced by addPoint(), changePoint(), deletePoint(), getPoint(), and growPoints().
|
private |
Definition at line 121 of file ossimThinPlateSpline.h.
Referenced by addPoint(), deletePoint(), getPoint(), and solve().
|
private |
Definition at line 138 of file ossimThinPlateSpline.h.
Referenced by getPoint(), growPoints(), and solve().
|
private |
Definition at line 139 of file ossimThinPlateSpline.h.
Referenced by growPoints(), and solve().
|
private |
Definition at line 132 of file ossimThinPlateSpline.h.
Referenced by addPoint(), changePoint(), deletePoint(), getPoint(), getXy(), growPoints(), and solve().
|
private |
Definition at line 133 of file ossimThinPlateSpline.h.
Referenced by addPoint(), changePoint(), deletePoint(), getPoint(), getXy(), growPoints(), and solve().