Trait opencv::hub_prelude::ObjectnessBINGTrait[][src]

pub trait ObjectnessBINGTrait: Objectness + ObjectnessBINGTraitConst {
    fn as_raw_mut_ObjectnessBING(&mut self) -> *mut c_void;

    fn compute_saliency(
        &mut self,
        image: &dyn ToInputArray,
        saliency_map: &mut dyn ToOutputArray
    ) -> Result<bool> { ... }
fn read(&mut self) -> Result<()> { ... }
fn getobjectness_values(&mut self) -> Result<Vector<f32>> { ... }
fn set_training_path(&mut self, training_path: &str) -> Result<()> { ... }
fn set_bb_res_dir(&mut self, results_dir: &str) -> Result<()> { ... }
fn set_base(&mut self, val: f64) -> Result<()> { ... }
fn set_nss(&mut self, val: i32) -> Result<()> { ... }
fn set_w(&mut self, val: i32) -> Result<()> { ... } }

Required methods

Provided methods

Return the list of the rectangles’ objectness value,

in the same order as the vector<Vec4i> objectnessBoundingBox returned by the algorithm (in computeSaliencyImpl function). The bigger value these scores are, it is more likely to be an object window.

This is a utility function that allows to set the correct path from which the algorithm will load the trained model.

Parameters
  • trainingPath: trained model path

This is a utility function that allows to set an arbitrary path in which the algorithm will save the optional results

(ie writing on file the total number and the list of rectangles returned by objectess, one for each row).

Parameters
  • resultsDir: results’ folder path

Implementors