pub trait BufferTraitConst {
Show 15 methods fn as_raw_Buffer(&self) -> *const c_void; fn copy_to(&self, arr: &mut dyn ToOutputArray) -> Result<()> { ... } fn copy_to_1(
        &self,
        arr: &mut dyn ToOutputArray,
        stream: &mut Stream
    ) -> Result<()> { ... } fn clone(&self, target: Buffer_Target, auto_release: bool) -> Result<Buffer> { ... } fn bind(&self, target: Buffer_Target) -> Result<()> { ... } fn rows(&self) -> Result<i32> { ... } fn cols(&self) -> Result<i32> { ... } fn size(&self) -> Result<Size> { ... } fn empty(&self) -> Result<bool> { ... } fn typ(&self) -> Result<i32> { ... } fn depth(&self) -> Result<i32> { ... } fn channels(&self) -> Result<i32> { ... } fn elem_size(&self) -> Result<i32> { ... } fn elem_size1(&self) -> Result<i32> { ... } fn buf_id(&self) -> Result<u32> { ... }
}
Expand description

Constant methods for core::Buffer

Required Methods§

Provided Methods§

Copies from OpenGL buffer to host/device memory or another OpenGL buffer object.

Parameters
  • arr: Destination array (host or device memory, can be Mat , cuda::GpuMat , std::vector or ogl::Buffer ).

Copies from OpenGL buffer to host/device memory or another OpenGL buffer object.

Parameters
  • arr: Destination array (host or device memory, can be Mat , cuda::GpuMat , std::vector or ogl::Buffer ).
Overloaded parameters

Creates a full copy of the buffer object and the underlying data.

Parameters
  • target: Buffer usage for destination buffer.
  • autoRelease: Auto release mode for destination buffer.
C++ default parameters
  • target: ARRAY_BUFFER
  • auto_release: false

Binds OpenGL buffer to the specified buffer binding point.

Parameters
  • target: Binding point. See cv::ogl::Buffer::Target .

get OpenGL opject id

Implementors§