opencv::prelude

Trait EdgeBoxesTrait

source
pub trait EdgeBoxesTrait: AlgorithmTrait + EdgeBoxesTraitConst {
Show 15 methods // Required method fn as_raw_mut_EdgeBoxes(&mut self) -> *mut c_void; // Provided methods fn get_bounding_boxes( &mut self, edge_map: &impl ToInputArray, orientation_map: &impl ToInputArray, boxes: &mut Vector<Rect>, scores: &mut impl ToOutputArray, ) -> Result<()> { ... } fn get_bounding_boxes_def( &mut self, edge_map: &impl ToInputArray, orientation_map: &impl ToInputArray, boxes: &mut Vector<Rect>, ) -> Result<()> { ... } fn set_alpha(&mut self, value: f32) -> Result<()> { ... } fn set_beta(&mut self, value: f32) -> Result<()> { ... } fn set_eta(&mut self, value: f32) -> Result<()> { ... } fn set_min_score(&mut self, value: f32) -> Result<()> { ... } fn set_max_boxes(&mut self, value: i32) -> Result<()> { ... } fn set_edge_min_mag(&mut self, value: f32) -> Result<()> { ... } fn set_edge_merge_thr(&mut self, value: f32) -> Result<()> { ... } fn set_cluster_min_mag(&mut self, value: f32) -> Result<()> { ... } fn set_max_aspect_ratio(&mut self, value: f32) -> Result<()> { ... } fn set_min_box_area(&mut self, value: f32) -> Result<()> { ... } fn set_gamma(&mut self, value: f32) -> Result<()> { ... } fn set_kappa(&mut self, value: f32) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::ximgproc::EdgeBoxes

Required Methods§

Provided Methods§

source

fn get_bounding_boxes( &mut self, edge_map: &impl ToInputArray, orientation_map: &impl ToInputArray, boxes: &mut Vector<Rect>, scores: &mut impl ToOutputArray, ) -> Result<()>

Returns array containing proposal boxes.

§Parameters
  • edge_map: edge image.
  • orientation_map: orientation map.
  • boxes: proposal boxes.
  • scores: of the proposal boxes, provided a vector of float types.
§C++ default parameters
  • scores: noArray()
source

fn get_bounding_boxes_def( &mut self, edge_map: &impl ToInputArray, orientation_map: &impl ToInputArray, boxes: &mut Vector<Rect>, ) -> Result<()>

Returns array containing proposal boxes.

§Parameters
  • edge_map: edge image.
  • orientation_map: orientation map.
  • boxes: proposal boxes.
  • scores: of the proposal boxes, provided a vector of float types.
§Note

This alternative version of EdgeBoxesTrait::get_bounding_boxes function uses the following default values for its arguments:

  • scores: noArray()
source

fn set_alpha(&mut self, value: f32) -> Result<()>

Sets the step size of sliding window search.

source

fn set_beta(&mut self, value: f32) -> Result<()>

Sets the nms threshold for object proposals.

source

fn set_eta(&mut self, value: f32) -> Result<()>

Sets the adaptation rate for nms threshold.

source

fn set_min_score(&mut self, value: f32) -> Result<()>

Sets the min score of boxes to detect.

source

fn set_max_boxes(&mut self, value: i32) -> Result<()>

Sets max number of boxes to detect.

source

fn set_edge_min_mag(&mut self, value: f32) -> Result<()>

Sets the edge min magnitude.

source

fn set_edge_merge_thr(&mut self, value: f32) -> Result<()>

Sets the edge merge threshold.

source

fn set_cluster_min_mag(&mut self, value: f32) -> Result<()>

Sets the cluster min magnitude.

source

fn set_max_aspect_ratio(&mut self, value: f32) -> Result<()>

Sets the max aspect ratio of boxes.

source

fn set_min_box_area(&mut self, value: f32) -> Result<()>

Sets the minimum area of boxes.

source

fn set_gamma(&mut self, value: f32) -> Result<()>

Sets the affinity sensitivity

source

fn set_kappa(&mut self, value: f32) -> Result<()>

Sets the scale sensitivity.

Object Safety§

This trait is not object safe.

Implementors§