JeVois
1.19
JeVois Smart Embedded Machine Vision Toolkit
|
Share this page: |
|
|
|
 |
 |
|
Go to the documentation of this file.
25 #include <glm/fwd.hpp>
26 #include <opencv2/core/core.hpp>
32 #ifdef JEVOIS_PLATFORM_PRO
33 class GPUtextureDmaBuf;
57 void set(cv::Mat
const & img,
bool rgb);
83 void draw(
int & x,
int & y,
unsigned short & w,
unsigned short &
h,
bool noalias, glm::mat4
const & pvm);
87 ImVec2
i2d(ImVec2
const & p);
91 ImVec2
i2ds(ImVec2
const & p);
95 ImVec2
d2i(ImVec2
const & p);
99 ImVec2
d2is(ImVec2
const & p);
105 void setInternal(
unsigned int width,
unsigned int height,
unsigned int fmt,
unsigned char const * data);
110 #ifdef JEVOIS_PLATFORM_PRO
unsigned int itsDrawWidth
std::shared_ptr< GPUtexture > itsTexture
unsigned int itsTextureHeight
Class to hold a GPUtexture, GPUprogram, and other data associated with rendering an image in OpenGL.
std::shared_ptr< GPUtextureDmaBuf > itsTextureDmaBuf
void setWithDmaBuf(jevois::RawImage const &img, int dmafd, EGLDisplay display)
A raw image as coming from a V4L2 Camera and/or being sent out to a USB Gadget.
unsigned int itsTextureWidth
unsigned int itsDrawHeight
void setTwirl(float t)
Set the twirl amount if the image was constructed with twirl enabled.
void draw(int &x, int &y, unsigned short &w, unsigned short &h, bool noalias, glm::mat4 const &pvm)
Draw to OpenGL.
ImVec2 i2ds(ImVec2 const &p)
Convert a 2D size from within a rendered image to on-screen.
GPUimage(bool enable_twirl=false)
Constructor.
void setInternal(unsigned int width, unsigned int height, unsigned int fmt, unsigned char const *data)
ImVec2 i2d(ImVec2 const &p)
Convert coordinates of a point from within a rendered image to on-screen.
std::shared_ptr< GPUprogram > itsProgram
void set(RawImage const &img)
Set pixel data from a vanilla RawImage, pixel data will be copied to texture.
GLuint itsVertexBuffers[2]
ImVec2 d2i(ImVec2 const &p)
Convert coordinates of a point from on-screen to within a rendered image.
void set2(InputFrame const &frame, EGLDisplay display)
Set pixel data from camera input second (scaled) frame, sharing data with camera kernel driver using ...
ImVec2 d2is(ImVec2 const &p)
Convert a 2D size from on-screen to within a rendered image.