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.

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.

Implementors§