opencv::stitching

Struct Detail_FeatherBlender

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

Simple blender which mixes images at its borders.

Implementations§

Source§

impl Detail_FeatherBlender

Source

pub fn new(sharpness: f32) -> Result<Detail_FeatherBlender>

§C++ default parameters
  • sharpness: 0.02f
Source

pub fn new_def() -> Result<Detail_FeatherBlender>

§Note

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

  • sharpness: 0.02f

Trait Implementations§

Source§

impl Boxed for Detail_FeatherBlender

Source§

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

Wrap the specified raw pointer Read more
Source§

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

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

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

Return the underlying raw pointer. Read more
Source§

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

Return the underlying mutable raw pointer Read more
Source§

impl Debug for Detail_FeatherBlender

Source§

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

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

impl Detail_BlenderTrait for Detail_FeatherBlender

Source§

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

Source§

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<()>

Prepares the blender for blending. Read more
Source§

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<()>

Blends and returns the final pano. Read more
Source§

impl Detail_BlenderTraitConst for Detail_FeatherBlender

Source§

impl Detail_FeatherBlenderTrait for Detail_FeatherBlender

Source§

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

Source§

fn set_sharpness(&mut self, val: f32) -> Result<()>

Source§

fn prepare(&mut self, dst_roi: Rect) -> Result<()>

Source§

fn feed( &mut self, img: &impl ToInputArray, mask: &impl ToInputArray, tl: Point, ) -> Result<()>

Source§

fn blend( &mut self, dst: &mut impl ToInputOutputArray, dst_mask: &mut impl ToInputOutputArray, ) -> Result<()>

Source§

fn create_weight_maps( &mut self, masks: &Vector<UMat>, corners: &Vector<Point>, weight_maps: &mut Vector<UMat>, ) -> Result<Rect>

Creates weight maps for fixed set of source images by their masks and top-left corners. Final image can be obtained by simple weighting of the source images.
Source§

impl Detail_FeatherBlenderTraitConst for Detail_FeatherBlender

Source§

impl Drop for Detail_FeatherBlender

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl From<Detail_FeatherBlender> for Detail_Blender

Source§

fn from(s: Detail_FeatherBlender) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<Detail_Blender> for Detail_FeatherBlender

Source§

type Error = Error

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

fn try_from(s: Detail_Blender) -> Result<Self>

Performs the conversion.
Source§

impl Send for Detail_FeatherBlender

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> 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, 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.