Perspective projection transformation. More...
#include <vcsl_perspective.h>

Public Member Functions | |
| ~vcsl_perspective () override=default | |
| bool | is_invertible (double time) const override |
| Is ‘this’ invertible at time ‘time’? Never !. More... | |
| bool | is_valid () const override |
| Is ‘this’ correctly set ?. More... | |
| void | set_static (double new_focal) |
| Set the focal in meters of a static perspective projection. More... | |
| void | set_focal (list_of_scalars const &new_focal) |
| Set the focal variation along the time in meters. More... | |
| list_of_scalars | focal () const |
| Return the focal variation along the time in meters. More... | |
| vnl_vector< double > | execute (const vnl_vector< double > &v, double time) const override |
| Image of ‘v’ by ‘this’. More... | |
| vnl_vector< double > | inverse (const vnl_vector< double > &v, double time) const override |
| Image of ‘v’ by the inverse of ‘this’. More... | |
| std::vector< double > | beat () const |
| Return the list of time clocks. More... | |
| unsigned int | duration () const |
| Return the time duration. More... | |
| std::vector< vcsl_interpolator > | interpolators () const |
| Return the list of interpolators. More... | |
| bool | valid_time (double time) const |
| Is ‘time’ between the two time bounds ?. More... | |
| int | matching_interval (double time) const |
| Return the index of the beat inferior or equal to ‘time’. More... | |
| void | set_beat (std::vector< double > const &new_beat) |
| Set the list of time clocks. More... | |
| void | set_interpolators (std::vector< vcsl_interpolator > const &i) |
| Set the list of interpolators. More... | |
| void | set_static () |
| Empty the time clock and interpolators, thereby making the transf static. More... | |
| double | lsi (double v0, double v1, int index, double time) const |
| Linear interpolation on scalar values. More... | |
| vnl_vector< double > | lvi (const vnl_vector< double > &v0, const vnl_vector< double > &v1, int index, double time) const |
| Linear interpolation on vnl_vectors. More... | |
| vnl_matrix< double > | lmi (const vnl_matrix< double > &m0, const vnl_matrix< double > &m1, int index, double time) const |
| Linear interpolation on vnl_matrices. More... | |
| vnl_quaternion< double > | lqi (const vnl_quaternion< double > &v0, const vnl_quaternion< double > &v1, int index, double time) const |
| Linear interpolation on quaternions. More... | |
| void | ref () |
| void | unref () |
| long | get_references () const |
| bool | is_referenced () const |
Protected Member Functions | |
| double | focal_value (double time) const |
| Compute the parameter at time ‘time’. More... | |
Protected Attributes | |
| list_of_scalars | focal_ |
| Angle variation along the time. More... | |
| std::vector< double > | beat_ |
| List of time clocks. More... | |
| std::vector< vcsl_interpolator > | interpolator_ |
Private Member Functions | |
| vcsl_perspective ()=default | |
Perspective projection transformation.
This is a perspective projection from a 3D cartesian coordinate system to a 2D cartesian coordinate system, parametrized by the focal expressed in meters. The projection is along the z axis. The center of the projection is the origin of the 3D frame. The projection plane is in the half-space z<0.
Definition at line 26 of file vcsl_perspective.h.
|
privatedefault |
|
overridedefault |
|
inlineinherited |
Return the list of time clocks.
Definition at line 65 of file vcsl_spatial_transformation.h.
|
inlineinherited |
Return the time duration.
Definition at line 68 of file vcsl_spatial_transformation.h.
|
overridevirtual |
Image of ‘v’ by ‘this’.
REQUIRE: is_valid() REQUIRE: v.size()==3 Pure virtual function of vcsl_spatial_transformation
Implements vcsl_spatial_transformation.
Definition at line 33 of file vcsl_perspective.cxx.
|
inline |
Return the focal variation along the time in meters.
Definition at line 67 of file vcsl_perspective.h.
|
protected |
Compute the parameter at time ‘time’.
Definition at line 69 of file vcsl_perspective.cxx.
|
inlineinherited |
Return the list of interpolators.
Definition at line 71 of file vcsl_spatial_transformation.h.
|
overridevirtual |
Image of ‘v’ by the inverse of ‘this’.
REQUIRE: is_valid() REQUIRE: is_invertible(time) and v.size()==2 The first pre-condition is never true. You can not use this method Pure virtual function of vcsl_spatial_transformation
Implements vcsl_spatial_transformation.
Definition at line 57 of file vcsl_perspective.cxx.
|
overridevirtual |
Is ‘this’ invertible at time ‘time’? Never !.
REQUIRE: valid_time(time) Pure virtual function of vcsl_spatial_transformation
Implements vcsl_spatial_transformation.
Definition at line 12 of file vcsl_perspective.cxx.
|
inlineoverridevirtual |
Is ‘this’ correctly set ?.
Virtual function of vcsl_spatial_transformation
Reimplemented from vcsl_spatial_transformation.
Definition at line 51 of file vcsl_perspective.h.
|
inherited |
Linear interpolation on vnl_matrices.
Definition at line 94 of file vcsl_spatial_transformation.cxx.
|
inherited |
Linear interpolation on quaternions.
Definition at line 121 of file vcsl_spatial_transformation.cxx.
|
inherited |
Linear interpolation on scalar values.
Definition at line 53 of file vcsl_spatial_transformation.cxx.
|
inherited |
Linear interpolation on vnl_vectors.
Definition at line 69 of file vcsl_spatial_transformation.cxx.
|
inherited |
Return the index of the beat inferior or equal to ‘time’.
REQUIRE: valid_time(time)
Definition at line 22 of file vcsl_spatial_transformation.cxx.
|
inlineinherited |
Set the list of time clocks.
Definition at line 109 of file vcsl_spatial_transformation.h.
|
inline |
Set the focal variation along the time in meters.
Definition at line 64 of file vcsl_perspective.h.
|
inlineinherited |
Set the list of interpolators.
Definition at line 112 of file vcsl_spatial_transformation.h.
| void vcsl_perspective::set_static | ( | double | new_focal | ) |
Set the focal in meters of a static perspective projection.
Definition at line 22 of file vcsl_perspective.cxx.
|
inherited |
Empty the time clock and interpolators, thereby making the transf static.
Definition at line 44 of file vcsl_spatial_transformation.cxx.
|
inherited |
Is ‘time’ between the two time bounds ?.
Definition at line 12 of file vcsl_spatial_transformation.cxx.
|
protectedinherited |
List of time clocks.
Definition at line 147 of file vcsl_spatial_transformation.h.
|
protected |
Angle variation along the time.
Definition at line 94 of file vcsl_perspective.h.
|
protectedinherited |
Definition at line 148 of file vcsl_spatial_transformation.h.
1.8.15