|
static std::shared_ptr< transformation > | make_identity () |
| Constructs identity transform.
|
|
static std::shared_ptr< transformation > | make_data (const std::vector< float > &mat) |
| Constructs from mat_t.
|
|
static std::shared_ptr< transformation > | make_rot (rotation rot) |
| Constructs rotate transformation.
|
|
static std::shared_ptr< transformation > | make_affine (float scale_x, float scale_y, float t_x, float t_y, rotation rot, bool flip_x, bool flip_y) |
| Constructs affine transformation.
|
|
static std::shared_ptr< transformation > | make_rects (const pixel_rect &source_rect, const pixel_rect &target_rect, rotation rot, bool flip_x, bool flip_y) |
| Constructs transformation from source to target rectangle Rotation and flips are around rectangles' center.
|
|
Definition at line 20 of file transformation.hpp.
◆ chain_right()
Applies transform t after this e.g.
{rotate >> translate;} rotates first: (initial -> rotated) >> (rotated -> translated) = (initial -> translated)
◆ inverse_j()
virtual std::shared_ptr<transformation> bnb::interfaces::transformation::inverse_j |
( |
| ) |
const |
|
pure virtual |
Get the inverse of the transformation.
- Exceptions
-
std::logic_error | when matrix is singular |
The documentation for this class was generated from the following file:
- /Users/andreykrivoshey/Work/Repositories/banuba_sdk/libs/types/bnb/types/interfaces/transformation.hpp