Struct opencv::core::GpuMatND [−][src]
Implementations
impl GpuMatND
[src]
pub fn as_raw_GpuMatND(&self) -> *const c_void
[src]
pub fn as_raw_mut_GpuMatND(&mut self) -> *mut c_void
[src]
impl GpuMatND
[src]
pub fn default() -> Result<GpuMatND>
[src]
default constructor
pub fn new(size: GpuMatND_SizeArray, typ: i32) -> Result<GpuMatND>
[src]
default constructor
Overloaded parameters
Parameters
- size: Array of integers specifying an n-dimensional array shape.
- type: Array type. Use CV_8UC1, …, CV_16FC4 to create 1-4 channel matrices, or CV_8UC(n), …, CV_64FC(n) to create multi-channel (up to CV_CN_MAX channels) matrices.
pub fn new_1(
size: GpuMatND_SizeArray,
typ: i32,
data: *mut c_void,
step: GpuMatND_StepArray
) -> Result<GpuMatND>
[src]
size: GpuMatND_SizeArray,
typ: i32,
data: *mut c_void,
step: GpuMatND_StepArray
) -> Result<GpuMatND>
default constructor
Overloaded parameters
Parameters
- size: Array of integers specifying an n-dimensional array shape.
- type: Array type. Use CV_8UC1, …, CV_16FC4 to create 1-4 channel matrices, or CV_8UC(n), …, CV_64FC(n) to create multi-channel (up to CV_CN_MAX channels) matrices.
- data: Pointer to the user data. Matrix constructors that take data and step parameters do not allocate matrix data. Instead, they just initialize the matrix header that points to the specified data, which means that no data is copied. This operation is very efficient and can be used to process external data using OpenCV functions. The external data is not automatically deallocated, so you should take care of it.
- step: Array of _size.size()-1 steps in case of a multi-dimensional array (the last step is always set to the element size). If not specified, the matrix is assumed to be continuous.
C++ default parameters
- step: StepArray()
pub fn copy(unnamed: &GpuMatND) -> GpuMatND
[src]
pub fn copy_mut(unnamed: &mut GpuMatND) -> GpuMatND
[src]
Trait Implementations
impl Boxed for GpuMatND
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Clone for GpuMatND
[src]
fn clone(&self) -> Self
[src]
Calls try_clone() and panics if that fails
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Drop for GpuMatND
[src]
impl GpuMatNDTrait for GpuMatND
[src]
fn as_raw_GpuMatND(&self) -> *const c_void
[src]
fn as_raw_mut_GpuMatND(&mut self) -> *mut c_void
[src]
fn flags(&self) -> i32
[src]
fn set_flags(&mut self, val: i32)
[src]
fn dims(&self) -> i32
[src]
fn set_dims(&mut self, val: i32)
[src]
fn size(&mut self) -> Vector<i32>
[src]
fn set_size(&mut self, val: GpuMatND_SizeArray)
[src]
fn step(&mut self) -> Vector<size_t>
[src]
fn set_step(&mut self, val: GpuMatND_StepArray)
[src]
fn create(&mut self, size: GpuMatND_SizeArray, typ: i32) -> Result<()>
[src]
fn release(&mut self) -> Result<()>
[src]
fn swap(&mut self, m: &mut GpuMatND)
[src]
fn try_clone(&self) -> Result<GpuMatND>
[src]
fn clone_1(&self, stream: &mut Stream) -> Result<GpuMatND>
[src]
fn create_gpu_mat_header(
&self,
idx: GpuMatND_IndexArray,
row_range: Range,
col_range: Range
) -> Result<GpuMat>
[src]
&self,
idx: GpuMatND_IndexArray,
row_range: Range,
col_range: Range
) -> Result<GpuMat>
fn create_gpu_mat_header_1(&self) -> Result<GpuMat>
[src]
fn to_gpu_mat(&self) -> Result<GpuMat>
[src]
fn upload(&mut self, src: &dyn ToInputArray) -> Result<()>
[src]
fn upload_1(
&mut self,
src: &dyn ToInputArray,
stream: &mut Stream
) -> Result<()>
[src]
&mut self,
src: &dyn ToInputArray,
stream: &mut Stream
) -> Result<()>
fn download(&self, dst: &mut dyn ToOutputArray) -> Result<()>
[src]
fn download_1(
&self,
dst: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
[src]
&self,
dst: &mut dyn ToOutputArray,
stream: &mut Stream
) -> Result<()>
fn is_continuous(&self) -> Result<bool>
[src]
fn is_submatrix(&self) -> Result<bool>
[src]
fn elem_size(&self) -> Result<size_t>
[src]
fn elem_size1(&self) -> Result<size_t>
[src]
fn empty(&self) -> Result<bool>
[src]
fn external(&self) -> Result<bool>
[src]
fn get_device_ptr(&self) -> Result<&mut u8>
[src]
fn total(&self) -> Result<size_t>
[src]
fn total_mem_size(&self) -> Result<size_t>
[src]
fn typ(&self) -> Result<i32>
[src]
impl Send for GpuMatND
[src]
Auto Trait Implementations
impl RefUnwindSafe for GpuMatND
impl !Sync for GpuMatND
impl Unpin for GpuMatND
impl UnwindSafe for GpuMatND
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,