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§
fn as_raw_RICInterpolator(&self) -> *const c_void
Provided Methods§
Sourcefn get_superpixel_size(&self) -> Result<i32>
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
Sourcefn get_superpixel_nn_cnt(&self) -> Result<i32>
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
Sourcefn get_superpixel_ruler(&self) -> Result<f32>
fn get_superpixel_ruler(&self) -> Result<f32>
Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.
§See also
cv::ximgproc::createSuperpixelSLIC setSuperpixelRuler
Sourcefn get_superpixel_mode(&self) -> Result<i32>
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
Sourcefn get_alpha(&self) -> Result<f32>
fn get_alpha(&self) -> Result<f32>
Alpha is a parameter defining a global weight for transforming geodesic distance into weight.
§See also
setAlpha
Sourcefn get_model_iter(&self) -> Result<i32>
fn get_model_iter(&self) -> Result<i32>
Parameter defining the number of iterations for piece-wise affine model estimation.
§See also
setModelIter
Sourcefn get_refine_models(&self) -> Result<bool>
fn get_refine_models(&self) -> Result<bool>
Parameter to choose wether additional refinement of the piece-wise affine models is employed.
§See also
setRefineModels
Sourcefn get_max_flow(&self) -> Result<f32>
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
Sourcefn get_use_variational_refinement(&self) -> Result<bool>
fn get_use_variational_refinement(&self) -> Result<bool>
Parameter to choose wether the VariationalRefinement post-processing is employed.
§See also
setUseVariationalRefinement
Sourcefn get_use_global_smoother_filter(&self) -> Result<bool>
fn get_use_global_smoother_filter(&self) -> Result<bool>
Sets whether the fastGlobalSmootherFilter() post-processing is employed.
§See also
setUseGlobalSmootherFilter
Sourcefn get_fgs_lambda(&self) -> Result<f32>
fn get_fgs_lambda(&self) -> Result<f32>
Sourcefn get_fgs_sigma(&self) -> Result<f32>
fn get_fgs_sigma(&self) -> Result<f32>
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.