pub struct Detail_Blender { /* private fields */ }
Expand description
Base class for all blenders.
Simple blender which puts one image over another
Implementations§
Source§impl Detail_Blender
impl Detail_Blender
Sourcepub fn create_default(typ: i32, try_gpu: bool) -> Result<Ptr<Detail_Blender>>
pub fn create_default(typ: i32, try_gpu: bool) -> Result<Ptr<Detail_Blender>>
§C++ default parameters
- try_gpu: false
Sourcepub fn create_default_def(typ: i32) -> Result<Ptr<Detail_Blender>>
pub fn create_default_def(typ: i32) -> Result<Ptr<Detail_Blender>>
§Note
This alternative version of Detail_Blender::create_default function uses the following default values for its arguments:
- try_gpu: false
Trait Implementations§
Source§impl Boxed for Detail_Blender
impl Boxed for Detail_Blender
Source§unsafe fn from_raw(
ptr: <Detail_Blender as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <Detail_Blender as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(
self,
) -> <Detail_Blender as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <Detail_Blender as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <Detail_Blender as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <Detail_Blender as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <Detail_Blender as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <Detail_Blender as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for Detail_Blender
impl Debug for Detail_Blender
Source§impl Default for Detail_Blender
impl Default for Detail_Blender
Source§impl Detail_BlenderTrait for Detail_Blender
impl Detail_BlenderTrait for Detail_Blender
fn as_raw_mut_Detail_Blender(&mut self) -> *mut c_void
Source§fn prepare(
&mut self,
corners: &Vector<Point>,
sizes: &Vector<Size>,
) -> Result<()>
fn prepare( &mut self, corners: &Vector<Point>, sizes: &Vector<Size>, ) -> Result<()>
Prepares the blender for blending. Read more
Source§fn prepare_1(&mut self, dst_roi: Rect) -> Result<()>
fn prepare_1(&mut self, dst_roi: Rect) -> Result<()>
Prepares the blender for blending. Read more
Source§fn feed(
&mut self,
img: &impl ToInputArray,
mask: &impl ToInputArray,
tl: Point,
) -> Result<()>
fn feed( &mut self, img: &impl ToInputArray, mask: &impl ToInputArray, tl: Point, ) -> Result<()>
Processes the image. Read more
Source§fn blend(
&mut self,
dst: &mut impl ToInputOutputArray,
dst_mask: &mut impl ToInputOutputArray,
) -> Result<()>
fn blend( &mut self, dst: &mut impl ToInputOutputArray, dst_mask: &mut impl ToInputOutputArray, ) -> Result<()>
Blends and returns the final pano. Read more
Source§impl Detail_BlenderTraitConst for Detail_Blender
impl Detail_BlenderTraitConst for Detail_Blender
fn as_raw_Detail_Blender(&self) -> *const c_void
Source§impl Drop for Detail_Blender
impl Drop for Detail_Blender
Source§impl From<Detail_FeatherBlender> for Detail_Blender
impl From<Detail_FeatherBlender> for Detail_Blender
Source§fn from(s: Detail_FeatherBlender) -> Self
fn from(s: Detail_FeatherBlender) -> Self
Converts to this type from the input type.
Source§impl From<Detail_MultiBandBlender> for Detail_Blender
impl From<Detail_MultiBandBlender> for Detail_Blender
Source§fn from(s: Detail_MultiBandBlender) -> Self
fn from(s: Detail_MultiBandBlender) -> Self
Converts to this type from the input type.
impl Send for Detail_Blender
Auto Trait Implementations§
impl Freeze for Detail_Blender
impl RefUnwindSafe for Detail_Blender
impl !Sync for Detail_Blender
impl Unpin for Detail_Blender
impl UnwindSafe for Detail_Blender
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<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