[−][src]Trait opencv::prelude::TrackerSamplerPF_ParamsTrait
This structure contains all the parameters that can be varied during the course of sampling algorithm. Below is the structure exposed, together with its members briefly explained with reference to the above discussion on algorithm's working.
Required methods
fn as_raw_TrackerSamplerPF_Params(&self) -> *const c_void
fn as_raw_mut_TrackerSamplerPF_Params(&mut self) -> *mut c_void
Provided methods
fn iteration_num(&self) -> i32
number of selection rounds
fn set_iteration_num(&mut self, val: i32)
number of selection rounds
fn particles_num(&self) -> i32
number of "perturbed" boxes on each round
fn set_particles_num(&mut self, val: i32)
number of "perturbed" boxes on each round
fn alpha(&self) -> f64
with each new round we exponentially decrease the amount of "perturbing" we allow (like in simulated annealing) and this very alpha controls how fast annealing happens, ie. how fast perturbing decreases
fn set_alpha(&mut self, val: f64)
with each new round we exponentially decrease the amount of "perturbing" we allow (like in simulated annealing) and this very alpha controls how fast annealing happens, ie. how fast perturbing decreases
fn std(&mut self) -> Mat_<f64>
initial values for perturbing (1-by-4 array, as each rectangle is given by 4 values -- coordinates of opposite vertices, hence we have 4 values to perturb)
fn set_std(&mut self, val: Mat_<f64>)
initial values for perturbing (1-by-4 array, as each rectangle is given by 4 values -- coordinates of opposite vertices, hence we have 4 values to perturb)