Struct opencv::core::Texture2D [−][src]
pub struct Texture2D { /* fields omitted */ }
Expand description
Smart pointer for OpenGL 2D texture memory with reference counting.
Implementations
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
C++ default parameters
- auto_release: false
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
C++ default parameters
- auto_release: false
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
Parameters
- arows: Number of rows.
- acols: Number of columns.
- aformat: Image format. See cv::ogl::Texture2D::Format .
- autoRelease: Auto release mode (if true, release will be called in object’s destructor).
C++ default parameters
- auto_release: false
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
Parameters
- asize: 2D array size.
- aformat: Image format. See cv::ogl::Texture2D::Format .
- autoRelease: Auto release mode (if true, release will be called in object’s destructor).
C++ default parameters
- auto_release: false
The constructors.
Creates empty ogl::Texture2D object, allocates memory for ogl::Texture2D object or copies from host/device memory.
Overloaded parameters
Parameters
- arr: Input array (host or device memory, it can be Mat , cuda::GpuMat or ogl::Buffer ).
- autoRelease: Auto release mode (if true, release will be called in object’s destructor).
C++ default parameters
- auto_release: false
Trait Implementations
Allocates memory for ogl::Texture2D object. Read more
Allocates memory for ogl::Texture2D object. Read more
Decrements the reference counter and destroys the texture object if needed. Read more
Copies from host/device memory to OpenGL texture. Read more
Copies from OpenGL texture to host/device memory or another OpenGL texture object. Read more
Binds texture to current active texture unit for GL_TEXTURE_2D target.