pub struct GMatDesc { /* private fields */ }Expand description
\addtogroup gapi_meta_args
Implementations§
Source§impl GMatDesc
impl GMatDesc
Sourcepub fn new(d: i32, c: i32, s: Size, p: bool) -> Result<GMatDesc>
pub fn new(d: i32, c: i32, s: Size, p: bool) -> Result<GMatDesc>
§C++ default parameters
- p: false
Sourcepub fn new_def(d: i32, c: i32, s: Size) -> Result<GMatDesc>
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
pub fn new_1(d: i32, dd: &Vector<i32>) -> Result<GMatDesc>
pub fn new_2(d: i32, dd: Vector<i32>) -> Result<GMatDesc>
pub fn default() -> Result<GMatDesc>
Trait Implementations§
Source§impl Boxed for GMatDesc
impl Boxed for GMatDesc
Source§unsafe fn from_raw(ptr: <GMatDesc as OpenCVFromExtern>::ExternReceive) -> Self
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
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
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
fn as_raw_mut( &mut self, ) -> <GMatDesc as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl GMatDescTrait for GMatDesc
impl GMatDescTrait for GMatDesc
Source§impl GMatDescTraitConst for GMatDesc
impl GMatDescTraitConst for GMatDesc
fn as_raw_GMatDesc(&self) -> *const c_void
fn depth(&self) -> i32
fn chan(&self) -> i32
fn size(&self) -> Size
fn planar(&self) -> bool
fn dims(&self) -> Vector<i32>
fn equals(&self, rhs: &impl GMatDescTraitConst) -> Result<bool>
fn not_equals(&self, rhs: &impl GMatDescTraitConst) -> Result<bool>
fn is_nd(&self) -> Result<bool>
fn can_describe(&self, mat: &impl MatTraitConst) -> Result<bool>
fn can_describe_1(&self, mat: &impl RMatTraitConst) -> Result<bool>
fn with_size_delta(&self, delta: Size) -> Result<GMatDesc>
fn with_size_delta_1(&self, dx: i32, dy: i32) -> Result<GMatDesc>
fn with_size(&self, sz: Size) -> Result<GMatDesc>
fn with_depth(&self, ddepth: i32) -> Result<GMatDesc>
fn with_type(&self, ddepth: i32, dchan: i32) -> Result<GMatDesc>
fn as_planar(&self) -> Result<GMatDesc>
fn as_planar_1(&self, planes: i32) -> Result<GMatDesc>
fn as_interleaved(&self) -> Result<GMatDesc>
impl Send for GMatDesc
Auto Trait Implementations§
impl Freeze for GMatDesc
impl RefUnwindSafe for GMatDesc
impl !Sync for GMatDesc
impl Unpin for GMatDesc
impl UnwindSafe for GMatDesc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
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