[][src]Trait opencv::prelude::ObjectnessBINGTrait

pub trait ObjectnessBINGTrait: Objectness {
    fn as_raw_ObjectnessBING(&self) -> *const c_void;
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 write(&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 get_base(&self) -> Result<f64> { ... }
fn set_base(&mut self, val: f64) -> Result<()> { ... }
fn get_nss(&self) -> Result<i32> { ... }
fn set_nss(&mut self, val: i32) -> Result<()> { ... }
fn get_w(&self) -> Result<i32> { ... }
fn set_w(&mut self, val: i32) -> Result<()> { ... } }

the Binarized normed gradients algorithm from BING

Required methods

Loading content...

Provided methods

fn compute_saliency(
    &mut self,
    image: &dyn ToInputArray,
    saliency_map: &mut dyn ToOutputArray
) -> Result<bool>

fn read(&mut self) -> Result<()>

fn write(&self) -> Result<()>

fn getobjectness_values(&mut self) -> Result<Vector<f32>>

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.

fn set_training_path(&mut self, training_path: &str) -> Result<()>

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

fn set_bb_res_dir(&mut self, results_dir: &str) -> Result<()>

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

fn get_base(&self) -> Result<f64>

fn set_base(&mut self, val: f64) -> Result<()>

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

fn set_nss(&mut self, val: i32) -> Result<()>

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

fn set_w(&mut self, val: i32) -> Result<()>

Loading content...

Implementors

Loading content...