DenseRLOFOpticalFlowTraitConst

Trait DenseRLOFOpticalFlowTraitConst 

Source
pub trait DenseRLOFOpticalFlowTraitConst: DenseOpticalFlowTraitConst {
Show 14 methods // Required method fn as_raw_DenseRLOFOpticalFlow(&self) -> *const c_void; // Provided methods fn get_rlof_optical_flow_parameter( &self, ) -> Result<Ptr<RLOFOpticalFlowParameter>> { ... } fn get_forward_backward(&self) -> Result<f32> { ... } fn get_grid_step(&self) -> Result<Size> { ... } fn get_interpolation(&self) -> Result<InterpolationType> { ... } fn get_epick(&self) -> Result<i32> { ... } fn get_epic_sigma(&self) -> Result<f32> { ... } fn get_epic_lambda(&self) -> Result<f32> { ... } fn get_fgs_lambda(&self) -> Result<f32> { ... } fn get_fgs_sigma(&self) -> Result<f32> { ... } fn get_use_post_proc(&self) -> Result<bool> { ... } fn get_use_variational_refinement(&self) -> Result<bool> { ... } fn get_ricsp_size(&self) -> Result<i32> { ... } fn get_ricslic_type(&self) -> Result<i32> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn get_rlof_optical_flow_parameter( &self, ) -> Result<Ptr<RLOFOpticalFlowParameter>>

Configuration of the RLOF alogrithm.

§See also

optflow::RLOFOpticalFlowParameter, getRLOFOpticalFlowParameter optflow::RLOFOpticalFlowParameter, setRLOFOpticalFlowParameter

Source

fn get_forward_backward(&self) -> Result<f32>

Threshold for the forward backward confidence check For each grid point inline formula a motion vector inline formula is computed. * If the forward backward error block formula * is larger than threshold given by this function then the motion vector will not be used by the following * vector field interpolation. inline formula denotes the backward flow. Note, the forward backward test * will only be applied if the threshold > 0. This may results into a doubled runtime for the motion estimation. * getForwardBackward, setGridStep

§See also

setForwardBackward

Source

fn get_grid_step(&self) -> Result<Size>

Size of the grid to spawn the motion vectors. For each grid point a motion vector is computed. Some motion vectors will be removed due to the forwatd backward * threshold (if set >0). The rest will be the base of the vector field interpolation. * see also: getForwardBackward, setGridStep

Source

fn get_interpolation(&self) -> Result<InterpolationType>

Interpolation used to compute the dense optical flow. Two interpolation algorithms are supported * - INTERP_GEO applies the fast geodesic interpolation, see Geistert2016. * - INTERP_EPIC_RESIDUAL applies the edge-preserving interpolation, see Revaud2015,Geistert2016. * ximgproc::EdgeAwareInterpolator, getInterpolation

§See also

ximgproc::EdgeAwareInterpolator, setInterpolation

Source

fn get_epick(&self) -> Result<i32>

see ximgproc::EdgeAwareInterpolator() K value. K is a number of nearest-neighbor matches considered, when fitting a locally affine * model. Usually it should be around 128. However, lower values would make the interpolation noticeably faster. * see also: ximgproc::EdgeAwareInterpolator, setEPICK

Source

fn get_epic_sigma(&self) -> Result<f32>

see ximgproc::EdgeAwareInterpolator() sigma value. Sigma is a parameter defining how fast the weights decrease in the locally-weighted affine * fitting. Higher values can help preserve fine details, lower values can help to get rid of noise in the * output flow. * see also: ximgproc::EdgeAwareInterpolator, setEPICSigma

Source

fn get_epic_lambda(&self) -> Result<f32>

see ximgproc::EdgeAwareInterpolator() lambda value. Lambda is a parameter defining the weight of the edge-aware term in geodesic distance, * should be in the range of 0 to 1000. * see also: ximgproc::EdgeAwareInterpolator, setEPICSigma

Source

fn get_fgs_lambda(&self) -> Result<f32>

see ximgproc::EdgeAwareInterpolator(). Sets the respective fastGlobalSmootherFilter() parameter. * see also: ximgproc::EdgeAwareInterpolator, setFgsLambda

Source

fn get_fgs_sigma(&self) -> Result<f32>

see ximgproc::EdgeAwareInterpolator(). Sets the respective fastGlobalSmootherFilter() parameter. * see also: ximgproc::EdgeAwareInterpolator, ximgproc::fastGlobalSmootherFilter, setFgsSigma

Source

fn get_use_post_proc(&self) -> Result<bool>

enables ximgproc::fastGlobalSmootherFilter

  • getUsePostProc
§See also

ximgproc::fastGlobalSmootherFilter, setUsePostProc

Source

fn get_use_variational_refinement(&self) -> Result<bool>

enables VariationalRefinement

  • getUseVariationalRefinement
§See also

ximgproc::fastGlobalSmootherFilter, setUsePostProc

Source

fn get_ricsp_size(&self) -> Result<i32>

Parameter to tune the approximate size of the superpixel used for oversegmentation.

  • cv::ximgproc::createSuperpixelSLIC, cv::ximgproc::RICInterpolator
§See also

setRICSPSize

Source

fn get_ricslic_type(&self) -> Result<i32>

Parameter to choose superpixel algorithm variant to use:

  • cv::ximgproc::SLICType SLIC segments image using a desired region_size (value: 100)
  • cv::ximgproc::SLICType SLICO will optimize using adaptive compactness factor (value: 101)
  • cv::ximgproc::SLICType MSLIC will optimize using manifold methods resulting in more content-sensitive superpixels (value: 102).
§See also

cv::ximgproc::createSuperpixelSLIC, cv::ximgproc::RICInterpolator setRICSLICType

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§