[][src]Struct opencv::types::PtrOfSinusoidalPattern

pub struct PtrOfSinusoidalPattern { /* fields omitted */ }

Methods

impl PtrOfSinusoidalPattern[src]

Trait Implementations

impl Algorithm for PtrOfSinusoidalPattern[src]

fn clear(&mut self) -> Result<()>[src]

Clears the algorithm state

fn empty(&self) -> Result<bool>[src]

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

fn save(&self, filename: &str) -> Result<()>[src]

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more

fn get_default_name(&self) -> Result<String>[src]

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more

impl SinusoidalPattern for PtrOfSinusoidalPattern[src]

fn compute_phase_map(
    &mut self,
    pattern_images: &VectorOfMat,
    wrapped_phase_map: &mut Mat,
    shadow_mask: &mut Mat,
    fundamental: &Mat
) -> Result<()>
[src]

Compute a wrapped phase map from sinusoidal patterns. ## Parameters * patternImages: Input data to compute the wrapped phase map. * wrappedPhaseMap: Wrapped phase map obtained through one of the three methods. * shadowMask: Mask used to discard shadow regions. * fundamental: Fundamental matrix used to compute epipolar lines and ease the matching step. Read more

fn unwrap_phase_map(
    &mut self,
    wrapped_phase_map: &VectorOfMat,
    unwrapped_phase_map: &mut Mat,
    cam_size: Size,
    shadow_mask: &Mat
) -> Result<()>
[src]

Unwrap the wrapped phase map to remove phase ambiguities. ## Parameters * wrappedPhaseMap: The wrapped phase map computed from the pattern. * unwrappedPhaseMap: The unwrapped phase map used to find correspondences between the two devices. * camSize: Resolution of the camera. * shadowMask: Mask used to discard shadow regions. Read more

fn find_pro_cam_matches(
    &mut self,
    proj_unwrapped_phase_map: &Mat,
    cam_unwrapped_phase_map: &Mat,
    matches: &mut VectorOfMat
) -> Result<()>
[src]

Find correspondences between the two devices thanks to unwrapped phase maps. ## Parameters * projUnwrappedPhaseMap: Projector's unwrapped phase map. * camUnwrappedPhaseMap: Camera's unwrapped phase map. * matches: Images used to display correspondences map. Read more

fn compute_data_modulation_term(
    &mut self,
    pattern_images: &VectorOfMat,
    data_modulation_term: &mut Mat,
    shadow_mask: &Mat
) -> Result<()>
[src]

compute the data modulation term. ## Parameters * patternImages: captured images with projected patterns. * dataModulationTerm: Mat where the data modulation term is saved. * shadowMask: Mask used to discard shadow regions. Read more

impl StructuredLightPattern for PtrOfSinusoidalPattern[src]

fn generate(&mut self, pattern_images: &mut VectorOfMat) -> Result<bool>[src]

Generates the structured light pattern to project. Read more

fn decode(
    &self,
    pattern_images: &VectorOfVectorOfMat,
    disparity_map: &mut Mat,
    black_images: &VectorOfMat,
    white_images: &VectorOfMat,
    flags: i32
) -> Result<bool>
[src]

Decodes the structured light pattern, generating a disparity map Read more

impl Send for PtrOfSinusoidalPattern[src]

impl Drop for PtrOfSinusoidalPattern[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]