pub trait Detail_ExposureCompensatorTrait: Detail_ExposureCompensatorTraitConst {
// Required method
fn as_raw_mut_Detail_ExposureCompensator(&mut self) -> *mut c_void;
// Provided methods
fn feed(
&mut self,
corners: &Vector<Point>,
images: &Vector<UMat>,
masks: &Vector<UMat>,
) -> Result<()> { ... }
fn feed_1(
&mut self,
corners: &Vector<Point>,
images: &Vector<UMat>,
masks: &Vector<Tuple<(UMat, u8)>>,
) -> Result<()> { ... }
fn apply(
&mut self,
index: i32,
corner: Point,
image: &mut impl ToInputOutputArray,
mask: &impl ToInputArray,
) -> Result<()> { ... }
fn get_mat_gains(&mut self, unnamed: &mut Vector<Mat>) -> Result<()> { ... }
fn set_mat_gains(&mut self, unnamed: &mut Vector<Mat>) -> Result<()> { ... }
fn set_update_gain(&mut self, b: bool) -> Result<()> { ... }
fn get_update_gain(&mut self) -> Result<bool> { ... }
}
Expand description
Mutable methods for crate::stitching::Detail_ExposureCompensator
Required Methods§
fn as_raw_mut_Detail_ExposureCompensator(&mut self) -> *mut c_void
Provided Methods§
Sourcefn feed(
&mut self,
corners: &Vector<Point>,
images: &Vector<UMat>,
masks: &Vector<UMat>,
) -> Result<()>
fn feed( &mut self, corners: &Vector<Point>, images: &Vector<UMat>, masks: &Vector<UMat>, ) -> Result<()>
§Parameters
- corners: Source image top-left corners
- images: Source images
- masks: Image masks to update (second value in pair specifies the value which should be used to detect where image is)
Sourcefn feed_1(
&mut self,
corners: &Vector<Point>,
images: &Vector<UMat>,
masks: &Vector<Tuple<(UMat, u8)>>,
) -> Result<()>
fn feed_1( &mut self, corners: &Vector<Point>, images: &Vector<UMat>, masks: &Vector<Tuple<(UMat, u8)>>, ) -> Result<()>
Sourcefn apply(
&mut self,
index: i32,
corner: Point,
image: &mut impl ToInputOutputArray,
mask: &impl ToInputArray,
) -> Result<()>
fn apply( &mut self, index: i32, corner: Point, image: &mut impl ToInputOutputArray, mask: &impl ToInputArray, ) -> Result<()>
Compensate exposure in the specified image.
§Parameters
- index: Image index
- corner: Image top-left corner
- image: Image to process
- mask: Image mask
fn get_mat_gains(&mut self, unnamed: &mut Vector<Mat>) -> Result<()>
fn set_mat_gains(&mut self, unnamed: &mut Vector<Mat>) -> Result<()>
fn set_update_gain(&mut self, b: bool) -> Result<()>
fn get_update_gain(&mut self) -> Result<bool>
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.