pub trait ObjectnessBINGTrait: ObjectnessBINGTraitConst + ObjectnessTrait {
// Required method
fn as_raw_mut_ObjectnessBING(&mut self) -> *mut c_void;
// Provided methods
fn compute_saliency(
&mut self,
image: &impl ToInputArray,
saliency_map: &mut impl 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<()> { ... }
}
Expand description
Mutable methods for crate::saliency::ObjectnessBING
Required Methods§
fn as_raw_mut_ObjectnessBING(&mut self) -> *mut c_void
Provided Methods§
fn compute_saliency( &mut self, image: &impl ToInputArray, saliency_map: &mut impl ToOutputArray, ) -> Result<bool>
fn read(&mut self) -> Result<()>
Sourcefn getobjectness_values(&mut self) -> Result<Vector<f32>>
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.
Sourcefn set_training_path(&mut self, training_path: &str) -> Result<()>
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
Sourcefn set_bb_res_dir(&mut self, results_dir: &str) -> Result<()>
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 set_base(&mut self, val: f64) -> Result<()>
fn set_nss(&mut self, val: i32) -> Result<()>
fn set_w(&mut self, val: i32) -> Result<()>
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.