Perspective transformation coefficients. More...
#include <cvb/foundation/transform_2d.hpp>
Public Member Functions | |
PerspectiveTransformation (Point2D< double > leftTop, Point2D< double > rightTop, Point2D< double > rightBottom, Point2D< double > leftBottom, Rect< int > destRect) | |
Calculate the defining coefficients for the perspective transformation. More... | |
PerspectiveTransformation (Point2D< double > leftTop, Point2D< double > rightTop, Point2D< double > rightBottom, Point2D< double > leftBottom, Rect< double > destRect) | |
Calculate the defining coefficients for the perspective transformation. More... | |
double | C00 () const noexcept |
Get defining coefficient for the transformation. More... | |
double | C01 () const noexcept |
Get defining coefficient for the transformation. More... | |
double | C02 () const noexcept |
Get defining coefficient for the transformation. More... | |
double | C10 () const noexcept |
Get defining coefficient for the transformation. More... | |
double | C11 () const noexcept |
Get defining coefficient for the transformation. More... | |
double | C12 () const noexcept |
Get defining coefficient for the transformation. More... | |
double | C20 () const noexcept |
Get defining coefficient for the transformation. More... | |
double | C21 () const noexcept |
Get defining coefficient for the transformation. More... | |
double | C22 () const noexcept |
Get defining coefficient for the transformation. More... | |
Perspective transformation coefficients.
Performed calculation is:
|
inline |
Calculate the defining coefficients for the perspective transformation.
[in] | leftTop | Left top corner's coordinate in the source image. |
[in] | rightTop | Right top corner's coordinate in the source image. |
[in] | rightBottom | Right bottom corner's coordinate in the source image. |
[in] | leftBottom | Left bottom corner's coordinate in the source image. |
[in] | destRect | Rectangle containing the locations the input points are to be transformed to. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Calculate the defining coefficients for the perspective transformation.
[in] | leftTop | Left top corner's coordinate in the source image. |
[in] | rightTop | Right top corner's coordinate in the source image. |
[in] | rightBottom | Right bottom corner's coordinate in the source image. |
[in] | leftBottom | Left bottom corner's coordinate in the source image. |
[in] | destRect | Rectangle containing the positions into which the input points are to be converted. |
Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Get defining coefficient for the transformation.
Does | not throw any exception. |
|
inlinenoexcept |
Get defining coefficient for the transformation.
Does | not throw any exception. |
|
inlinenoexcept |
Get defining coefficient for the transformation.
Does | not throw any exception. |
|
inlinenoexcept |
Get defining coefficient for the transformation.
Does | not throw any exception. |
|
inlinenoexcept |
Get defining coefficient for the transformation.
Does | not throw any exception. |
|
inlinenoexcept |
Get defining coefficient for the transformation.
Does | not throw any exception. |
|
inlinenoexcept |
Get defining coefficient for the transformation.
Does | not throw any exception. |
|
inlinenoexcept |
Get defining coefficient for the transformation.
Does | not throw any exception. |
|
inlinenoexcept |
Get defining coefficient for the transformation.
Does | not throw any exception. |