43 #ifndef __OPENCV_OPENGL_INTEROP_DEPRECATED_HPP__
44 #define __OPENCV_OPENGL_INTEROP_DEPRECATED_HPP__
58 ARRAY_BUFFER = 0x8892,
59 TEXTURE_BUFFER = 0x88EC
93 inline int rows()
const {
return rows_; }
94 inline int cols()
const {
return cols_; }
96 inline bool empty()
const {
return rows_ == 0 || cols_ == 0; }
98 inline int type()
const {
return type_; }
99 inline int depth()
const {
return CV_MAT_DEPTH(type_); }
100 inline int channels()
const {
return CV_MAT_CN(type_); }
101 inline int elemSize()
const {
return CV_ELEM_SIZE(type_); }
102 inline int elemSize1()
const {
return CV_ELEM_SIZE1(type_); }
132 void create(
int rows,
int cols,
int type);
133 void create(
Size size,
int type);
137 void copyFrom(
InputArray mat,
bool bgra =
true);
142 inline int rows()
const {
return rows_; }
143 inline int cols()
const {
return cols_; }
145 inline bool empty()
const {
return rows_ == 0 || cols_ == 0; }
147 inline int type()
const {
return type_; }
148 inline int depth()
const {
return CV_MAT_DEPTH(type_); }
149 inline int channels()
const {
return CV_MAT_CN(type_); }
150 inline int elemSize()
const {
return CV_ELEM_SIZE(type_); }
151 inline int elemSize1()
const {
return CV_ELEM_SIZE1(type_); }
189 inline int rows()
const {
return vertex_.rows(); }
190 inline int cols()
const {
return vertex_.cols(); }
191 inline Size size()
const {
return vertex_.size(); }
192 inline bool empty()
const {
return vertex_.empty(); }
210 WEIGHT_SEMIBOLD = 600,
226 inline const std::string&
family()
const {
return family_; }
227 inline int height()
const {
return height_; }
232 GlFont(
const std::string& family,
int height, Weight weight, Style style);
248 CV_EXPORTS
void render(
const GlTexture& tex,
249 Rect_<double> wndRect = Rect_<double>(0.0, 0.0, 1.0, 1.0),
250 Rect_<double> texRect = Rect_<double>(0.0, 0.0, 1.0, 1.0));
253 namespace RenderMode {
280 void setCameraPos(
Point3d pos,
double yaw,
double pitch,
double roll);
284 void setProjectionMatrix(
const Mat& projectionMatrix,
bool transpose =
true);
285 void setPerspectiveProjection(
double fov,
double aspect,
double zNear,
double zFar);
286 void setOrthoProjection(
double left,
double right,
double bottom,
double top,
double zNear,
double zFar);
288 void setupProjectionMatrix()
const;
289 void setupModelViewMatrix()
const;
301 bool useLookAtParams_;
305 Mat projectionMatrix_;
318 bool perspectiveProjection_;
328 #endif // __cplusplus
330 #endif // __OPENCV_OPENGL_INTEROP_DEPRECATED_HPP__
GLdouble GLdouble GLdouble GLdouble top
int cols() const
Definition: opengl_interop_deprecated.hpp:190
void delete_obj()
deletes the object. Override if needed
Definition: operations.hpp:2612
Size2i Size
Definition: core.hpp:896
int elemSize() const
Definition: opengl_interop_deprecated.hpp:150
Size size() const
Definition: opengl_interop_deprecated.hpp:95
void create(int rows, int cols, int type)
void resetColorArray()
Definition: opengl_interop_deprecated.hpp:178
Definition: opengl_interop_deprecated.hpp:255
void resetTexCoordArray()
Definition: opengl_interop_deprecated.hpp:184
void resetNormalArray()
Definition: opengl_interop_deprecated.hpp:181
CvPoint center
Definition: core_c.h:1290
int rows() const
Definition: opengl_interop_deprecated.hpp:189
OpenGL Font.
Definition: opengl_interop_deprecated.hpp:203
Definition: opengl_interop_deprecated.hpp:257
CV_EXPORTS void render(const GlTexture &tex, Rect_< double > wndRect=Rect_< double >(0.0, 0.0, 1.0, 1.0), Rect_< double > texRect=Rect_< double >(0.0, 0.0, 1.0, 1.0))
render functions
Definition: opengl_interop_deprecated.hpp:263
const CvPoint2D32f vertex[4]
Definition: legacy.hpp:1070
The 2D size class.
Definition: core.hpp:81
const char const char * str
Definition: core_c.h:1552
OpenGL Arrays.
Definition: opengl_interop_deprecated.hpp:166
Definition: opengl_interop_deprecated.hpp:262
Size size() const
Definition: opengl_interop_deprecated.hpp:191
GlArrays()
Definition: opengl_interop_deprecated.hpp:169
int type() const
Definition: opengl_interop_deprecated.hpp:98
CvMemStoragePos * pos
Definition: core_c.h:933
Smart pointer for OpenGL buffer memory with reference counting.
Definition: opengl_interop_deprecated.hpp:53
const char CvPoint const CvFont * font
Definition: core_c.h:1407
bool empty() const
Definition: opengl_interop_deprecated.hpp:192
int channels() const
Definition: opengl_interop_deprecated.hpp:100
OpenGL camera.
Definition: opengl_interop_deprecated.hpp:274
int type() const
Definition: opengl_interop_deprecated.hpp:147
Definition: opengl_interop_deprecated.hpp:258
CvArr const CvMat * mat
Definition: core_c.h:700
GLenum GLsizei GLsizei height
bool empty() const
Definition: opengl_interop_deprecated.hpp:96
Smart pointer for OpenGL 2d texture memory with reference counting.
Definition: opengl_interop_deprecated.hpp:119
Smart pointer for GPU memory with reference counting. Its interface is mostly similar with cv::Mat...
Definition: gpumat.hpp:154
int elemSize1() const
Definition: opengl_interop_deprecated.hpp:102
int depth() const
Definition: opengl_interop_deprecated.hpp:99
Usage
Definition: opengl_interop_deprecated.hpp:56
int height() const
Definition: opengl_interop_deprecated.hpp:227
Style style() const
Definition: opengl_interop_deprecated.hpp:229
GLsizei GLboolean transpose
The n-dimensional matrix class.
Definition: core.hpp:1688
int rows
Definition: core_c.h:114
static Scalar_< double > all(doublev0)
returns a scalar with all elements set to v0
int rows() const
Definition: opengl_interop_deprecated.hpp:142
Weight weight() const
Definition: opengl_interop_deprecated.hpp:228
int elemSize() const
Definition: opengl_interop_deprecated.hpp:101
int cols
Definition: core_c.h:109
GLuint GLuint GLsizei GLenum type
Definition: core_c.h:114
bool empty() const
Definition: opengl_interop_deprecated.hpp:145
void create(int rows, int cols, int type, Usage usage)
int depth() const
Definition: opengl_interop_deprecated.hpp:148
Definition: opengl_interop_deprecated.hpp:259
_Tp width
Definition: core.hpp:840
Usage usage() const
Definition: opengl_interop_deprecated.hpp:104
Style
Definition: opengl_interop_deprecated.hpp:215
int channels() const
Definition: opengl_interop_deprecated.hpp:149
Definition: opengl_interop_deprecated.hpp:264
Definition: opengl_interop_deprecated.hpp:260
int rows() const
Definition: opengl_interop_deprecated.hpp:93
Definition: opengl_interop_deprecated.hpp:256
CvArr * arr
Definition: core_c.h:649
Definition: opengl_interop_deprecated.hpp:261
GLsizeiptr const GLvoid GLenum usage
true
Definition: color.hpp:221
GLdouble GLdouble GLdouble bottom
void resetVertexArray()
Definition: opengl_interop_deprecated.hpp:175
const std::string & family() const
Definition: opengl_interop_deprecated.hpp:226
_Tp height
Definition: core.hpp:840
GLdouble GLdouble GLdouble GLdouble GLdouble zNear
GLenum GLenum GLenum GLenum GLenum scale
Weight
Definition: opengl_interop_deprecated.hpp:206
int cols() const
Definition: opengl_interop_deprecated.hpp:143
Size size() const
Definition: opengl_interop_deprecated.hpp:144
int elemSize1() const
Definition: opengl_interop_deprecated.hpp:151
Point_< double > Point2d
Definition: core.hpp:899
GLsizeiptr size
Definition: core_c.h:939
Scalar_< double > Scalar
Definition: core.hpp:968
int cols() const
Definition: opengl_interop_deprecated.hpp:94
GLuint color
Definition: core_c.h:1276