opencv::prelude

Trait RICInterpolatorTraitConst

Source
pub trait RICInterpolatorTraitConst: SparseMatchInterpolatorTraitConst {
Show 14 methods // Required method fn as_raw_RICInterpolator(&self) -> *const c_void; // Provided methods fn get_k(&self) -> Result<i32> { ... } fn get_superpixel_size(&self) -> Result<i32> { ... } fn get_superpixel_nn_cnt(&self) -> Result<i32> { ... } fn get_superpixel_ruler(&self) -> Result<f32> { ... } fn get_superpixel_mode(&self) -> Result<i32> { ... } fn get_alpha(&self) -> Result<f32> { ... } fn get_model_iter(&self) -> Result<i32> { ... } fn get_refine_models(&self) -> Result<bool> { ... } fn get_max_flow(&self) -> Result<f32> { ... } fn get_use_variational_refinement(&self) -> Result<bool> { ... } fn get_use_global_smoother_filter(&self) -> Result<bool> { ... } fn get_fgs_lambda(&self) -> Result<f32> { ... } fn get_fgs_sigma(&self) -> Result<f32> { ... }
}
Expand description

Constant methods for crate::ximgproc::RICInterpolator

Required Methods§

Provided Methods§

Source

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

K is a number of nearest-neighbor matches considered, when fitting a locally affine model for a superpixel segment. However, lower values would make the interpolation noticeably faster. The original implementation of Hu2017 uses 32.

§See also

setK

Source

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

Get the internal cost, i.e. edge map, used for estimating the edge-aware term.

§See also

setCostMap setSuperpixelSize

Source

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

Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine model.

§See also

setSuperpixelNNCnt

Source

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

Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.

§See also

cv::ximgproc::createSuperpixelSLIC setSuperpixelRuler

Source

fn get_superpixel_mode(&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 setSuperpixelMode

Source

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

Alpha is a parameter defining a global weight for transforming geodesic distance into weight.

§See also

setAlpha

Source

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

Parameter defining the number of iterations for piece-wise affine model estimation.

§See also

setModelIter

Source

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

Parameter to choose wether additional refinement of the piece-wise affine models is employed.

§See also

setRefineModels

Source

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

MaxFlow is a threshold to validate the predictions using a certain piece-wise affine model. If the prediction exceeds the treshold the translational model will be applied instead.

§See also

setMaxFlow

Source

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

Parameter to choose wether the VariationalRefinement post-processing is employed.

§See also

setUseVariationalRefinement

Source

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

Sets whether the fastGlobalSmootherFilter() post-processing is employed.

§See also

setUseGlobalSmootherFilter

Source

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

Sets the respective fastGlobalSmootherFilter() parameter.

§See also

setFGSLambda

Source

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

Sets the respective fastGlobalSmootherFilter() parameter.

§See also

setFGSSigma

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§