[−][src]Struct opencv::core::UMat
@todo document
Implementations
impl UMat
[src]
pub fn as_raw_UMat(&self) -> *const c_void
[src]
pub fn as_raw_mut_UMat(&mut self) -> *mut c_void
[src]
impl UMat
[src]
pub fn new(usage_flags: UMatUsageFlags) -> Result<UMat>
[src]
pub unsafe fn new_rows_cols(
rows: i32,
cols: i32,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]
rows: i32,
cols: i32,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<UMat>
constructs 2D matrix of the specified size and type
C++ default parameters
- usage_flags: USAGE_DEFAULT
pub unsafe fn new_size(
size: Size,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]
size: Size,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<UMat>
C++ default parameters
- usage_flags: USAGE_DEFAULT
pub fn new_rows_cols_with_default(
rows: i32,
cols: i32,
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]
rows: i32,
cols: i32,
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
constructs 2D matrix and fills it with the specified value _s.
C++ default parameters
- usage_flags: USAGE_DEFAULT
pub fn new_size_with_default(
size: Size,
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]
size: Size,
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
C++ default parameters
- usage_flags: USAGE_DEFAULT
pub unsafe fn new_nd(
sizes: &[i32],
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]
sizes: &[i32],
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<UMat>
pub fn new_nd_with_default(
sizes: &[i32],
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]
sizes: &[i32],
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
C++ default parameters
- usage_flags: USAGE_DEFAULT
pub fn copy(m: &UMat) -> Result<UMat>
[src]
copy constructor
pub fn rowscols(m: &UMat, row_range: &Range, col_range: &Range) -> Result<UMat>
[src]
creates a matrix header for a part of the bigger matrix
C++ default parameters
- col_range: Range::all()
pub fn roi(m: &UMat, roi: Rect) -> Result<UMat>
[src]
pub fn ranges(m: &UMat, ranges: &Vector<Range>) -> Result<UMat>
[src]
pub fn diag(d: &UMat) -> Result<UMat>
[src]
constructs a square diagonal matrix which main diagonal is vector "d"
pub fn zeros(rows: i32, cols: i32, typ: i32) -> Result<UMat>
[src]
Matlab-style matrix initialization
pub fn zeros_1(size: Size, typ: i32) -> Result<UMat>
[src]
pub fn zeros_2(ndims: i32, sz: &i32, typ: i32) -> Result<UMat>
[src]
pub fn ones(rows: i32, cols: i32, typ: i32) -> Result<UMat>
[src]
pub fn ones_1(size: Size, typ: i32) -> Result<UMat>
[src]
pub fn ones_2(ndims: i32, sz: &i32, typ: i32) -> Result<UMat>
[src]
pub fn eye(rows: i32, cols: i32, typ: i32) -> Result<UMat>
[src]
pub fn eye_1(size: Size, typ: i32) -> Result<UMat>
[src]
pub fn copy_mut(m: &mut UMat) -> Result<UMat>
[src]
Trait Implementations
impl Boxed for UMat
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Clone for UMat
[src]
pub 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 UMat
[src]
impl Send for UMat
[src]
impl ToInputArray for UMat
[src]
pub fn input_array(&self) -> Result<_InputArray>
[src]
impl<'_> ToInputArray for &'_ UMat
[src]
pub fn input_array(&self) -> Result<_InputArray>
[src]
impl ToInputOutputArray for UMat
[src]
pub fn input_output_array(&mut self) -> Result<_InputOutputArray>
[src]
impl<'_> ToInputOutputArray for &'_ mut UMat
[src]
pub fn input_output_array(&mut self) -> Result<_InputOutputArray>
[src]
impl ToOutputArray for UMat
[src]
pub fn output_array(&mut self) -> Result<_OutputArray>
[src]
impl<'_> ToOutputArray for &'_ mut UMat
[src]
pub fn output_array(&mut self) -> Result<_OutputArray>
[src]
impl UMatTrait for UMat
[src]
pub fn as_raw_UMat(&self) -> *const c_void
[src]
pub fn as_raw_mut_UMat(&mut self) -> *mut c_void
[src]
pub fn flags(&self) -> i32
[src]
pub fn set_flags(&mut self, val: i32)
[src]
pub fn dims(&self) -> i32
[src]
pub fn set_dims(&mut self, val: i32)
[src]
pub fn rows(&self) -> i32
[src]
pub fn set_rows(&mut self, val: i32)
[src]
pub fn cols(&self) -> i32
[src]
pub fn set_cols(&mut self, val: i32)
[src]
pub fn usage_flags(&self) -> UMatUsageFlags
[src]
pub fn set_usage_flags(&mut self, val: UMatUsageFlags)
[src]
pub fn u(&mut self) -> UMatData
[src]
pub fn set_u(&mut self, val: &mut UMatData)
[src]
pub fn offset(&self) -> size_t
[src]
pub fn set_offset(&mut self, val: size_t)
[src]
pub fn mat_size(&self) -> MatSize
[src]
pub fn mat_step(&self) -> MatStep
[src]
pub fn get_mat(&self, flags: AccessFlag) -> Result<Mat>
[src]
pub fn row(&self, y: i32) -> Result<UMat>
[src]
pub fn col(&self, x: i32) -> Result<UMat>
[src]
pub fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<UMat>
[src]
pub fn row_range(&self, r: &Range) -> Result<UMat>
[src]
pub fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<UMat>
[src]
pub fn col_range(&self, r: &Range) -> Result<UMat>
[src]
pub fn diag(&self, d: i32) -> Result<UMat>
[src]
pub fn try_clone(&self) -> Result<UMat>
[src]
pub fn copy_to(&self, m: &mut dyn ToOutputArray) -> Result<()>
[src]
pub fn copy_to_masked(
&self,
m: &mut dyn ToOutputArray,
mask: &dyn ToInputArray
) -> Result<()>
[src]
&self,
m: &mut dyn ToOutputArray,
mask: &dyn ToInputArray
) -> Result<()>
pub fn convert_to(
&self,
m: &mut dyn ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64
) -> Result<()>
[src]
&self,
m: &mut dyn ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64
) -> Result<()>
pub fn assign_to(&self, m: &mut UMat, typ: i32) -> Result<()>
[src]
pub fn set_to(
&mut self,
value: &dyn ToInputArray,
mask: &dyn ToInputArray
) -> Result<UMat>
[src]
&mut self,
value: &dyn ToInputArray,
mask: &dyn ToInputArray
) -> Result<UMat>
pub fn reshape(&self, cn: i32, rows: i32) -> Result<UMat>
[src]
pub fn reshape_1(&self, cn: i32, newndims: i32, newsz: &i32) -> Result<UMat>
[src]
pub fn t(&self) -> Result<UMat>
[src]
pub fn inv(&self, method: i32) -> Result<UMat>
[src]
pub fn mul(&self, m: &dyn ToInputArray, scale: f64) -> Result<UMat>
[src]
pub fn dot(&self, m: &dyn ToInputArray) -> Result<f64>
[src]
pub unsafe fn create_rows_cols(
&mut self,
rows: i32,
cols: i32,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
[src]
&mut self,
rows: i32,
cols: i32,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
pub unsafe fn create_size(
&mut self,
size: Size,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
[src]
&mut self,
size: Size,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
pub unsafe fn create_nd(
&mut self,
sizes: &[i32],
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
[src]
&mut self,
sizes: &[i32],
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
pub unsafe fn create_nd_vec(
&mut self,
sizes: &Vector<i32>,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
[src]
&mut self,
sizes: &Vector<i32>,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
pub fn addref(&mut self) -> Result<()>
[src]
pub fn release(&mut self) -> Result<()>
[src]
pub fn deallocate(&mut self) -> Result<()>
[src]
pub fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>
[src]
pub fn adjust_roi(
&mut self,
dtop: i32,
dbottom: i32,
dleft: i32,
dright: i32
) -> Result<UMat>
[src]
&mut self,
dtop: i32,
dbottom: i32,
dleft: i32,
dright: i32
) -> Result<UMat>
pub fn is_continuous(&self) -> Result<bool>
[src]
pub fn is_submatrix(&self) -> Result<bool>
[src]
pub fn elem_size(&self) -> Result<size_t>
[src]
pub fn elem_size1(&self) -> Result<size_t>
[src]
pub fn typ(&self) -> Result<i32>
[src]
pub fn depth(&self) -> Result<i32>
[src]
pub fn channels(&self) -> Result<i32>
[src]
pub fn step1(&self, i: i32) -> Result<size_t>
[src]
pub fn empty(&self) -> Result<bool>
[src]
pub fn total(&self) -> Result<size_t>
[src]
pub fn check_vector(
&self,
elem_channels: i32,
depth: i32,
require_continuous: bool
) -> Result<i32>
[src]
&self,
elem_channels: i32,
depth: i32,
require_continuous: bool
) -> Result<i32>
pub fn handle(&self, access_flags: AccessFlag) -> Result<*mut c_void>
[src]
pub fn ndoffset(&self, ofs: &mut size_t) -> Result<()>
[src]
pub fn update_continuity_flag(&mut self) -> Result<()>
[src]
impl VectorElement for UMat where
Vector<UMat>: VectorExtern<UMat>,
[src]
Vector<UMat>: VectorExtern<UMat>,
Auto Trait Implementations
impl RefUnwindSafe for UMat
[src]
impl !Sync for UMat
[src]
impl Unpin for UMat
[src]
impl UnwindSafe for UMat
[src]
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>,