GMatDesc

Struct GMatDesc 

Source
pub struct GMatDesc { /* private fields */ }
Expand description

\addtogroup gapi_meta_args

Implementations§

Source§

impl GMatDesc

Source

pub fn new(d: i32, c: i32, s: Size, p: bool) -> Result<GMatDesc>

§C++ default parameters
  • p: false
Source

pub fn new_def(d: i32, c: i32, s: Size) -> Result<GMatDesc>

§Note

This alternative version of [new] function uses the following default values for its arguments:

  • p: false
Source

pub fn new_1(d: i32, dd: &Vector<i32>) -> Result<GMatDesc>

Source

pub fn new_2(d: i32, dd: Vector<i32>) -> Result<GMatDesc>

Source

pub fn default() -> Result<GMatDesc>

Trait Implementations§

Source§

impl Boxed for GMatDesc

Source§

unsafe fn from_raw(ptr: <GMatDesc as OpenCVFromExtern>::ExternReceive) -> Self

Wrap the specified raw pointer Read more
Source§

fn into_raw(self) -> <GMatDesc as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying raw pointer while consuming this wrapper. Read more
Source§

fn as_raw(&self) -> <GMatDesc as OpenCVTypeExternContainer>::ExternSend

Return the underlying raw pointer. Read more
Source§

fn as_raw_mut( &mut self, ) -> <GMatDesc as OpenCVTypeExternContainer>::ExternSendMut

Return the underlying mutable raw pointer Read more
Source§

impl Clone for GMatDesc

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GMatDesc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for GMatDesc

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl GMatDescTrait for GMatDesc

Source§

fn as_raw_mut_GMatDesc(&mut self) -> *mut c_void

Source§

fn set_depth(&mut self, val: i32)

Source§

fn set_chan(&mut self, val: i32)

Source§

fn set_size(&mut self, val: Size)

Source§

fn set_planar(&mut self, val: bool)

Source§

fn set_dims(&mut self, val: Vector<i32>)

Source§

impl GMatDescTraitConst for GMatDesc

Source§

fn as_raw_GMatDesc(&self) -> *const c_void

Source§

fn depth(&self) -> i32

Source§

fn chan(&self) -> i32

Source§

fn size(&self) -> Size

Source§

fn planar(&self) -> bool

Source§

fn dims(&self) -> Vector<i32>

Source§

fn equals(&self, rhs: &impl GMatDescTraitConst) -> Result<bool>

Source§

fn not_equals(&self, rhs: &impl GMatDescTraitConst) -> Result<bool>

Source§

fn is_nd(&self) -> Result<bool>

Source§

fn can_describe(&self, mat: &impl MatTraitConst) -> Result<bool>

Source§

fn can_describe_1(&self, mat: &impl RMatTraitConst) -> Result<bool>

Source§

fn with_size_delta(&self, delta: Size) -> Result<GMatDesc>

Source§

fn with_size_delta_1(&self, dx: i32, dy: i32) -> Result<GMatDesc>

Source§

fn with_size(&self, sz: Size) -> Result<GMatDesc>

Source§

fn with_depth(&self, ddepth: i32) -> Result<GMatDesc>

Source§

fn with_type(&self, ddepth: i32, dchan: i32) -> Result<GMatDesc>

Source§

fn as_planar(&self) -> Result<GMatDesc>

Source§

fn as_planar_1(&self, planes: i32) -> Result<GMatDesc>

Source§

fn as_interleaved(&self) -> Result<GMatDesc>

Source§

impl Send for GMatDesc

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Mat> ModifyInplace for Mat
where Mat: Boxed,

Source§

unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res

Helper function to call OpenCV functions that allow in-place modification of a Mat or another similar object. By passing a mutable reference to the Mat to this function your closure will get called with the read reference and a write references to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data, but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.