Struct opencv::stitching::Detail_Blender
source · 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 of course unsafe as it breaks the Rust aliasing rules, but it might be useful for some performance
sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold
. Read more