|
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.
◆ ~transformation()
virtual bnb::interfaces::transformation::~transformation |
( |
| ) |
|
|
inlinevirtual |
◆ chain_right()
Applies transform t after this e.g.
{rotate >> translate;} rotates first: (initial -> rotated) >> (rotated -> translated) = (initial -> translated)
◆ clone_j()
virtual std::shared_ptr< transformation > bnb::interfaces::transformation::clone_j |
( |
| ) |
const |
|
pure virtual |
◆ get_mat_j()
virtual std::vector< float > bnb::interfaces::transformation::get_mat_j |
( |
| ) |
const |
|
pure virtual |
◆ 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 |
Implemented in bnb::transformation.
◆ transform_point()
virtual point2d bnb::interfaces::transformation::transform_point |
( |
const point2d & | p | ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: