[−][src]Struct opencv::bgsegm::SyntheticSequenceGenerator
Synthetic frame sequence generator for testing background subtraction algorithms.
It will generate the moving object on top of the background. It will apply some distortion to the background to make the test more complex.
Implementations
impl SyntheticSequenceGenerator
[src]
pub fn as_raw_SyntheticSequenceGenerator(&self) -> *const c_void
[src]
pub fn as_raw_mut_SyntheticSequenceGenerator(&mut self) -> *mut c_void
[src]
impl SyntheticSequenceGenerator
[src]
pub fn new(
background: &dyn ToInputArray,
object: &dyn ToInputArray,
amplitude: f64,
wavelength: f64,
wavespeed: f64,
objspeed: f64
) -> Result<SyntheticSequenceGenerator>
[src]
background: &dyn ToInputArray,
object: &dyn ToInputArray,
amplitude: f64,
wavelength: f64,
wavespeed: f64,
objspeed: f64
) -> Result<SyntheticSequenceGenerator>
Creates an instance of SyntheticSequenceGenerator.
Parameters
- background: Background image for object.
- object: Object image which will move slowly over the background.
- amplitude: Amplitude of wave distortion applied to background.
- wavelength: Length of waves in distortion applied to background.
- wavespeed: How fast waves will move.
- objspeed: How fast object will fly over background.
Trait Implementations
impl AlgorithmTrait for SyntheticSequenceGenerator
[src]
pub fn as_raw_Algorithm(&self) -> *const c_void
[src]
pub fn as_raw_mut_Algorithm(&mut self) -> *mut c_void
[src]
pub fn clear(&mut self) -> Result<()>
[src]
pub fn write(&self, fs: &mut FileStorage) -> Result<()>
[src]
pub fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
[src]
pub fn read(&mut self, fn_: &FileNode) -> Result<()>
[src]
pub fn empty(&self) -> Result<bool>
[src]
pub fn save(&self, filename: &str) -> Result<()>
[src]
pub fn get_default_name(&self) -> Result<String>
[src]
impl Boxed for SyntheticSequenceGenerator
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for SyntheticSequenceGenerator
[src]
impl Send for SyntheticSequenceGenerator
[src]
impl SyntheticSequenceGeneratorTrait for SyntheticSequenceGenerator
[src]
pub fn as_raw_SyntheticSequenceGenerator(&self) -> *const c_void
[src]
pub fn as_raw_mut_SyntheticSequenceGenerator(&mut self) -> *mut c_void
[src]
pub fn get_next_frame(
&mut self,
frame: &mut dyn ToOutputArray,
gt_mask: &mut dyn ToOutputArray
) -> Result<()>
[src]
&mut self,
frame: &mut dyn ToOutputArray,
gt_mask: &mut dyn ToOutputArray
) -> Result<()>
Auto Trait Implementations
impl RefUnwindSafe for SyntheticSequenceGenerator
[src]
impl !Sync for SyntheticSequenceGenerator
[src]
impl Unpin for SyntheticSequenceGenerator
[src]
impl UnwindSafe for SyntheticSequenceGenerator
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,