Trait Detail_FeatherBlenderTrait

Source
pub trait Detail_FeatherBlenderTrait: Detail_BlenderTrait + Detail_FeatherBlenderTraitConst {
    // Required method
    fn as_raw_mut_Detail_FeatherBlender(&mut self) -> *mut c_void;

    // Provided methods
    fn set_sharpness(&mut self, val: f32) -> Result<()> { ... }
    fn prepare(&mut self, dst_roi: Rect) -> Result<()> { ... }
    fn feed(
        &mut self,
        img: &impl ToInputArray,
        mask: &impl ToInputArray,
        tl: Point,
    ) -> Result<()> { ... }
    fn blend(
        &mut self,
        dst: &mut impl ToInputOutputArray,
        dst_mask: &mut impl ToInputOutputArray,
    ) -> Result<()> { ... }
    fn create_weight_maps(
        &mut self,
        masks: &Vector<UMat>,
        corners: &Vector<Point>,
        weight_maps: &mut Vector<UMat>,
    ) -> Result<Rect> { ... }
}
Expand description

Required Methods§

Provided Methods§

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§