pub trait GpuMatNDTrait: GpuMatNDTraitConst {
    // Required method
    fn as_raw_mut_GpuMatND(&mut self) -> *mut c_void;

    // Provided methods
    fn set_flags(&mut self, val: i32) { ... }
    fn set_dims(&mut self, val: i32) { ... }
    fn set_size(&mut self, val: GpuMatND_SizeArray) { ... }
    fn set_step(&mut self, val: GpuMatND_StepArray) { ... }
    fn create(&mut self, size: GpuMatND_SizeArray, typ: i32) -> Result<()> { ... }
    fn release(&mut self) -> Result<()> { ... }
    fn swap(&mut self, m: &mut GpuMatND) { ... }
    fn upload(&mut self, src: &impl ToInputArray) -> Result<()> { ... }
    fn upload_1(
        &mut self,
        src: &impl ToInputArray,
        stream: &mut Stream
    ) -> Result<()> { ... }
}
Expand description

Mutable methods for core::GpuMatND

Required Methods§

Provided Methods§

source

fn set_flags(&mut self, val: i32)

! includes several bit-fields:

  • the magic signature
  • continuity flag
  • depth
  • number of channels
source

fn set_dims(&mut self, val: i32)

matrix dimensionality

source

fn set_size(&mut self, val: GpuMatND_SizeArray)

shape of this array

source

fn set_step(&mut self, val: GpuMatND_StepArray)

! step values Their semantics is identical to the semantics of step for Mat.

source

fn create(&mut self, size: GpuMatND_SizeArray, typ: i32) -> Result<()>

Allocates GPU memory. Suppose there is some GPU memory already allocated. In that case, this method may choose to reuse that GPU memory under the specific condition: it must be of the same size and type, not externally allocated, the GPU memory is continuous(i.e., isContinuous() is true), and is not a sub-matrix of another GpuMatND (i.e., isSubmatrix() is false). In other words, this method guarantees that the GPU memory allocated by this method is always continuous and is not a sub-region of another GpuMatND.

source

fn release(&mut self) -> Result<()>

source

fn swap(&mut self, m: &mut GpuMatND)

source

fn upload(&mut self, src: &impl ToInputArray) -> Result<()>

source

fn upload_1( &mut self, src: &impl ToInputArray, stream: &mut Stream ) -> Result<()>

Implementors§