Opaque data structure, will hold the image type, depending on back-end library. This type is the one used in all the drawing functions.
More...
|
void | clear (Color c=Color(255, 255, 255)) |
|
void | clear (uint8_t, uint8_t, uint8_t) |
|
void | clear (uint8_t) |
|
template<> |
void | clear (uint8_t, uint8_t, uint8_t) |
|
template<> |
void | clear (uint8_t r, uint8_t g, uint8_t b) |
|
template<> |
void | clear (uint8_t col) |
|
int | cols () const |
|
template<typename U > |
void | draw (const U &object, img::DrawParams dp=img::DrawParams()) |
|
template<typename U , typename V > |
void | draw (const std::pair< U, V > &p_objects, img::DrawParams dp=img::DrawParams()) |
|
void | drawText (std::string, Point2d_< float >, img::DrawParams dp=img::DrawParams()) |
|
template<> |
void | drawText (std::string str, Point2d_< float > pt, img::DrawParams dp) |
| Draw text on Svg image. More...
|
|
template<> |
void | drawText (std::string str, Point2d_< float > pt, img::DrawParams dp) |
| Draw text on Opencv image. More...
|
|
T & | getReal () |
| Returns a reference on the underlying image. More...
|
|
const T & | getReal () const |
| Returns a const reference on the underlying image. More...
|
|
| Image ()=default |
|
| Image (T &m) |
|
| Image (size_t, size_t) |
| That constructor is the default, shouln't be instanciated, see specializations. More...
|
|
template<> |
| Image (size_t width, size_t height) |
|
template<> |
| Image (size_t width, size_t height) |
|
int | rows () const |
|
void | setSize (size_t width, size_t height) |
|
template<typename F > |
void | setSize (const std::pair< F, F > &) |
|
template<> |
void | setSize (size_t width, size_t height) |
|
template<typename T > |
void | setSize (const std::pair< T, T > &pa) |
|
void | show (std::string wname) |
| Show image on window wname (not available for SVG !) More...
|
|
std::pair< size_t, size_t > | size () const |
|
void | write (std::string) const |
|
template<> |
void | write (std::string fname) const |
|
template<> |
void | write (std::string fname) const |
|
template<typename T>
class h2d::img::Image< T >
Opaque data structure, will hold the image type, depending on back-end library. This type is the one used in all the drawing functions.
At present the two allowed types are cv::Mat (external Opencv library, requires the symbol HOMOG2D_USE_OPENCV to be defined) or SvgImage (no dependency)