23#include <opencv2/core.hpp>
37 void load(std::string
const & fname);
41 void load(cv::Mat
const & img,
bool isbgr =
true);
54 void draw(ImVec2
const & pos, ImVec2
const & size, ImDrawList * dl =
nullptr);
Wrapper for an image that can be rendered into ImGui.
void load(std::string const &fname)
Load from file.
bool loaded() const
Returns true if an image has been loaded through load()
void draw(ImVec2 const &pos, ImVec2 const &size, ImDrawList *dl=nullptr)
Draw into into current ImGui window or a drawlist.
void clear()
Free the texture and revert to un-initialized state.
ImGuiImage()
Constructor, image is uninitialized and loaded() returns false.
Main namespace for all JeVois classes and functions.