Type Definition opencv::types::PtrOfRICInterpolator
source · [−]pub type PtrOfRICInterpolator = Ptr<dyn RICInterpolator>;
Implementations
sourceimpl PtrOfRICInterpolator
impl PtrOfRICInterpolator
pub fn as_raw_PtrOfRICInterpolator(&self) -> *const c_void
pub fn as_raw_mut_PtrOfRICInterpolator(&mut self) -> *mut c_void
Trait Implementations
sourceimpl AlgorithmTrait for PtrOfRICInterpolator
impl AlgorithmTrait for PtrOfRICInterpolator
sourceimpl AlgorithmTraitConst for PtrOfRICInterpolator
impl AlgorithmTraitConst for PtrOfRICInterpolator
fn as_raw_Algorithm(&self) -> *const c_void
sourcefn write(&self, fs: &mut FileStorage) -> Result<()>
fn write(&self, fs: &mut FileStorage) -> Result<()>
Stores algorithm parameters in a file storage
sourcefn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings Stores algorithm parameters in a file storage Read more
sourcefn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
sourcefn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more
sourcefn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
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
sourceimpl RICInterpolator for PtrOfRICInterpolator
impl RICInterpolator for PtrOfRICInterpolator
fn as_raw_mut_RICInterpolator(&mut self) -> *mut c_void
sourcefn set_cost_map(&mut self, cost_map: &Mat) -> Result<()>
fn set_cost_map(&mut self, cost_map: &Mat) -> Result<()>
Interface to provide a more elaborated cost map, i.e. edge map, for the edge-aware term. This implementation is based on a rather simple gradient-based edge map estimation. To used more complex edge map estimator (e.g. StructuredEdgeDetection that has been used in the original publication) that may lead to improved accuracies, the internal edge map estimation can be bypassed here. Read more
sourcefn set_superpixel_size(&mut self, sp_size: i32) -> Result<()>
fn set_superpixel_size(&mut self, sp_size: i32) -> Result<()>
Get the internal cost, i.e. edge map, used for estimating the edge-aware term. Read more
sourcefn set_superpixel_nn_cnt(&mut self, sp_nn: i32) -> Result<()>
fn set_superpixel_nn_cnt(&mut self, sp_nn: i32) -> Result<()>
Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine model. Read more
sourcefn set_superpixel_ruler(&mut self, ruler: f32) -> Result<()>
fn set_superpixel_ruler(&mut self, ruler: f32) -> Result<()>
Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation. Read more
sourcefn set_superpixel_mode(&mut self, mode: i32) -> Result<()>
fn set_superpixel_mode(&mut self, mode: i32) -> Result<()>
Parameter to choose superpixel algorithm variant to use: Read more
sourcefn set_alpha(&mut self, alpha: f32) -> Result<()>
fn set_alpha(&mut self, alpha: f32) -> Result<()>
Alpha is a parameter defining a global weight for transforming geodesic distance into weight. Read more
sourcefn set_model_iter(&mut self, model_iter: i32) -> Result<()>
fn set_model_iter(&mut self, model_iter: i32) -> Result<()>
Parameter defining the number of iterations for piece-wise affine model estimation. Read more
sourcefn set_refine_models(&mut self, refine_modles: bool) -> Result<()>
fn set_refine_models(&mut self, refine_modles: bool) -> Result<()>
Parameter to choose wether additional refinement of the piece-wise affine models is employed. Read more
sourcefn set_max_flow(&mut self, max_flow: f32) -> Result<()>
fn set_max_flow(&mut self, max_flow: f32) -> Result<()>
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. Read more
sourcefn set_use_variational_refinement(
&mut self,
use_variational_refinement: bool
) -> Result<()>
fn set_use_variational_refinement(
&mut self,
use_variational_refinement: bool
) -> Result<()>
Parameter to choose wether the VariationalRefinement post-processing is employed. Read more
sourcefn set_use_global_smoother_filter(&mut self, use_fgs: bool) -> Result<()>
fn set_use_global_smoother_filter(&mut self, use_fgs: bool) -> Result<()>
Sets whether the fastGlobalSmootherFilter() post-processing is employed. Read more
sourceimpl RICInterpolatorConst for PtrOfRICInterpolator
impl RICInterpolatorConst for PtrOfRICInterpolator
fn as_raw_RICInterpolator(&self) -> *const c_void
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. Read more
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 Read more
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. Read more
sourcefn get_superpixel_mode(&self) -> Result<i32>
fn get_superpixel_mode(&self) -> Result<i32>
Parameter to choose superpixel algorithm variant to use: Read more
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. Read more
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. Read more
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. Read more
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 Read more
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. Read more
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. Read more
sourcefn get_fgs_lambda(&self) -> Result<f32>
fn get_fgs_lambda(&self) -> Result<f32>
Sets the respective fastGlobalSmootherFilter() parameter. Read more
sourcefn get_fgs_sigma(&self) -> Result<f32>
fn get_fgs_sigma(&self) -> Result<f32>
Sets the respective fastGlobalSmootherFilter() parameter. Read more
sourceimpl SparseMatchInterpolator for PtrOfRICInterpolator
impl SparseMatchInterpolator for PtrOfRICInterpolator
fn as_raw_mut_SparseMatchInterpolator(&mut self) -> *mut c_void
sourcefn interpolate(
&mut self,
from_image: &dyn ToInputArray,
from_points: &dyn ToInputArray,
to_image: &dyn ToInputArray,
to_points: &dyn ToInputArray,
dense_flow: &mut dyn ToOutputArray
) -> Result<()>
fn interpolate(
&mut self,
from_image: &dyn ToInputArray,
from_points: &dyn ToInputArray,
to_image: &dyn ToInputArray,
to_points: &dyn ToInputArray,
dense_flow: &mut dyn ToOutputArray
) -> Result<()>
Interpolate input sparse matches. Read more