SLIP
1.4
|
Define a SoloffCamera class. More...
#include <SoloffCamera.hpp>
Public Member Functions | |
Constructors & Destructors | |
SoloffCamera () | |
Default constructor of SoloffCamera. More... | |
SoloffCamera (const self &rhs) | |
Constructs a copy of the SoloffCamera rhs. More... | |
~SoloffCamera () | |
Destructor of the SoloffCamera. More... | |
Assignment operators and methods | |
self & | operator= (const self &rhs) |
Assign a SoloffCamera. More... | |
Accessors/Mutators | |
slip::MultivariatePolynomial < Type, 3 > & | calibration_polynomial_x () const |
Get the image x calibration polynomial. More... | |
void | calibration_polynomial_x (const slip::MultivariatePolynomial< Type, 3 > &calibration_polynomial_x) |
Set the image x calibration polynomial equal to calibration_polynomial_x. More... | |
slip::MultivariatePolynomial < Type, 3 > & | calibration_polynomial_y () const |
Get the image y calibration polynomial. More... | |
void | calibration_polynomial_y (const slip::MultivariatePolynomial< Type, 3 > &calibration_polynomial_y) |
Set the image y calibration polynomial equal to calibration_polynomial_x. More... | |
slip::MultivariatePolynomial < Type, 3 > & | calibration_polynomial_X () const |
Get the real world X calibration polynomial. More... | |
void | calibration_polynomial_X (const slip::MultivariatePolynomial< Type, 3 > &calibration_polynomial_X) |
Set the real world X calibration polynomial equal to calibration_polynomial_X. More... | |
slip::MultivariatePolynomial < Type, 3 > & | calibration_polynomial_Y () |
Get the real world Y calibration polynomial. More... | |
void | calibration_polynomial_Y (const slip::MultivariatePolynomial< Type, 3 > &calibration_polynomial_Y) |
Set the real world Y calibration polynomial equal to calibration_polynomial_Y. More... | |
slip::Array< Type > & | calibration_polynomial_coeff_x () const |
Get the image x calibration polynomial. More... | |
template<typename RandomAccessIterator > | |
void | calibration_polynomial_coeff_x (RandomAccessIterator first, RandomAccessIterator last) |
Set the image x calibration polynomial coefficient to the range [first,last) More... | |
slip::Array< Type > & | calibration_polynomial_coeff_y () const |
Get the image y calibration polynomial. More... | |
template<typename RandomAccessIterator > | |
void | calibration_polynomial_coeff_y (RandomAccessIterator first, RandomAccessIterator last) |
Set the image y calibration polynomial coefficient to the range [first,last) More... | |
slip::Array< Type > & | calibration_polynomial_coeff_X () const |
Get the real world X calibration polynomial. More... | |
template<typename RandomAccessIterator > | |
void | calibration_polynomial_coeff_X (RandomAccessIterator first, RandomAccessIterator last) |
Set the real world X calibration polynomial coefficient to the range [first,last) More... | |
slip::Array< Type > & | calibration_polynomial_coeff_Y () const |
Get the real world Y calibration polynomial. More... | |
template<typename RandomAccessIterator > | |
void | calibration_polynomial_coeff_Y (RandomAccessIterator first, RandomAccessIterator last) |
Set the real world Y calibration polynomial coefficient to the range [first,last) More... | |
Projection methods | |
slip::Point2d< Type > | projection (const slip::Point3d< Type > &p) |
Computes the projection of a 3d world point onto the image plane. More... | |
slip::Point3d< Type > | backprojection (const slip::Point2d< Type > &p2, const Type &z) |
Computes the 3d world point corresponding to the backprojection of an image point. More... | |
Computation methods | |
void | compute (const slip::Matrix< Type > &P) |
Computes the parameters of the Soloff camera model. More... | |
input/output methods | |
void | read (const std::string &file) |
Read a multivariate polynomial from an ASCII file. More... | |
void | write (const std::string &file) |
Write a multivariate polynomial to an ASCII file. More... | |
Public Attributes | |
slip::MultivariatePolynomial < Type, 3 > * | calibration_polynomial_x_ |
slip::MultivariatePolynomial < Type, 3 > * | calibration_polynomial_y_ |
slip::MultivariatePolynomial < Type, 3 > * | calibration_polynomial_X_ |
slip::MultivariatePolynomial < Type, 3 > * | calibration_polynomial_Y_ |
slip::Array< Type > * | calibration_polynomial_coeff_x_ |
slip::Array< Type > * | calibration_polynomial_coeff_y_ |
slip::Array< Type > * | calibration_polynomial_coeff_X_ |
slip::Array< Type > * | calibration_polynomial_coeff_Y_ |
Friends | |
class | boost::serialization::access |
i/o operators | |
std::ostream & | operator<< (std::ostream &out, const self &c) |
Write the SoloffCamera to the ouput stream. More... | |
Define a SoloffCamera class.
Type | Type of the coordinates of the SoloffCamera. |
Definition at line 98 of file SoloffCamera.hpp.
|
inline |
Default constructor of SoloffCamera.
Definition at line 129 of file SoloffCamera.hpp.
|
inline |
Constructs a copy of the SoloffCamera rhs.
rhs |
Definition at line 144 of file SoloffCamera.hpp.
|
inline |
Destructor of the SoloffCamera.
Definition at line 160 of file SoloffCamera.hpp.
|
inlinevirtual |
Computes the 3d world point corresponding to the backprojection of an image point.
p | Point2d. |
z | Depth coordinate. |
Implements slip::CameraModel< Type >.
Definition at line 517 of file SoloffCamera.hpp.
|
inline |
Get the image x calibration polynomial.
Definition at line 351 of file SoloffCamera.hpp.
|
inline |
Set the image x calibration polynomial coefficient to the range [first,last)
first | RandomAccessIterator that points to the first element of the coefficients of the x calibration polynomial. |
last | RandomAccessIterator that points one-past-the-end element of the coefficients of the x calibration polynomial. |
Definition at line 363 of file SoloffCamera.hpp.
|
inline |
Get the real world X calibration polynomial.
Definition at line 400 of file SoloffCamera.hpp.
|
inline |
Set the real world X calibration polynomial coefficient to the range [first,last)
first | RandomAccessIterator that points to the first element of the coefficients of the X calibration polynomial. |
last | RandomAccessIterator that points one-past-the-end element of the coefficients of the X calibration polynomial. |
Definition at line 413 of file SoloffCamera.hpp.
|
inline |
Get the image y calibration polynomial.
Definition at line 375 of file SoloffCamera.hpp.
|
inline |
Set the image y calibration polynomial coefficient to the range [first,last)
first | RandomAccessIterator that points to the first element of the coefficients of the y calibration polynomial. |
last | RandomAccessIterator that points one-past-the-end element of the coefficients of the y calibration polynomial. |
Definition at line 388 of file SoloffCamera.hpp.
|
inline |
Get the real world Y calibration polynomial.
Definition at line 426 of file SoloffCamera.hpp.
|
inline |
Set the real world Y calibration polynomial coefficient to the range [first,last)
first | RandomAccessIterator that points to the first element of the coefficients of the Y calibration polynomial. |
last | RandomAccessIterator that points one-past-the-end element of the coefficients of the Y calibration polynomial. |
Definition at line 439 of file SoloffCamera.hpp.
|
inline |
Get the image x calibration polynomial.
Definition at line 262 of file SoloffCamera.hpp.
|
inline |
Set the image x calibration polynomial equal to calibration_polynomial_x.
calibration_polynomial_x | a slip::MultivariatePolynomial<Type,3> corresponding to the image x calibration polynomial |
Definition at line 272 of file SoloffCamera.hpp.
|
inline |
Get the real world X calibration polynomial.
Definition at line 307 of file SoloffCamera.hpp.
|
inline |
Set the real world X calibration polynomial equal to calibration_polynomial_X.
calibration_polynomial_X | a slip::MultivariatePolynomial<Type,3> corresponding to the real world X calibration polynomial |
Definition at line 317 of file SoloffCamera.hpp.
|
inline |
Get the image y calibration polynomial.
Definition at line 284 of file SoloffCamera.hpp.
|
inline |
Set the image y calibration polynomial equal to calibration_polynomial_x.
calibration_polynomial_y | a slip::MultivariatePolynomial<Type,3> corresponding to the image y calibration polynomial |
Definition at line 294 of file SoloffCamera.hpp.
|
inline |
Get the real world Y calibration polynomial.
Definition at line 329 of file SoloffCamera.hpp.
|
inline |
Set the real world Y calibration polynomial equal to calibration_polynomial_Y.
calibration_polynomial_Y | a slip::MultivariatePolynomial<Type,3> corresponding to the real world Y calibration polynomial |
Definition at line 339 of file SoloffCamera.hpp.
|
inlinevirtual |
Computes the parameters of the Soloff camera model.
P | Matrix containing the input data. |
Implements slip::CameraModel< Type >.
Definition at line 584 of file SoloffCamera.hpp.
|
inline |
Assign a SoloffCamera.
Assign elements of SoloffCamera in rhs
rhs | SoloffCamera to get the values from. |
Definition at line 201 of file SoloffCamera.hpp.
|
inlinevirtual |
Computes the projection of a 3d world point onto the image plane.
p | Point3d. |
Implements slip::CameraModel< Type >.
Definition at line 461 of file SoloffCamera.hpp.
|
inlinevirtual |
Read a multivariate polynomial from an ASCII file.
file | File path name. |
Implements slip::CameraModel< Type >.
Definition at line 618 of file SoloffCamera.hpp.
|
inlinevirtual |
Write a multivariate polynomial to an ASCII file.
file | File path name. |
Implements slip::CameraModel< Type >.
Definition at line 652 of file SoloffCamera.hpp.
|
friend |
Definition at line 678 of file SoloffCamera.hpp.
|
friend |
Write the SoloffCamera to the ouput stream.
out | output stream |
c | SoloffCamera to write to the output stream |
Definition at line 715 of file SoloffCamera.hpp.
slip::Array<Type>* slip::SoloffCamera< Type >::calibration_polynomial_coeff_x_ |
Definition at line 672 of file SoloffCamera.hpp.
slip::Array<Type>* slip::SoloffCamera< Type >::calibration_polynomial_coeff_X_ |
Definition at line 674 of file SoloffCamera.hpp.
slip::Array<Type>* slip::SoloffCamera< Type >::calibration_polynomial_coeff_y_ |
Definition at line 673 of file SoloffCamera.hpp.
slip::Array<Type>* slip::SoloffCamera< Type >::calibration_polynomial_coeff_Y_ |
Definition at line 675 of file SoloffCamera.hpp.
slip::MultivariatePolynomial<Type,3>* slip::SoloffCamera< Type >::calibration_polynomial_x_ |
Definition at line 668 of file SoloffCamera.hpp.
slip::MultivariatePolynomial<Type,3>* slip::SoloffCamera< Type >::calibration_polynomial_X_ |
Definition at line 670 of file SoloffCamera.hpp.
slip::MultivariatePolynomial<Type,3>* slip::SoloffCamera< Type >::calibration_polynomial_y_ |
Definition at line 669 of file SoloffCamera.hpp.
slip::MultivariatePolynomial<Type,3>* slip::SoloffCamera< Type >::calibration_polynomial_Y_ |
Definition at line 671 of file SoloffCamera.hpp.