Type Definition opencv::types::PtrOfEdgeBoxes
source · [−]Implementations
sourceimpl PtrOfEdgeBoxes
impl PtrOfEdgeBoxes
pub fn as_raw_PtrOfEdgeBoxes(&self) -> *const c_void
pub fn as_raw_mut_PtrOfEdgeBoxes(&mut self) -> *mut c_void
Trait Implementations
sourceimpl AlgorithmTrait for PtrOfEdgeBoxes
impl AlgorithmTrait for PtrOfEdgeBoxes
sourceimpl AlgorithmTraitConst for PtrOfEdgeBoxes
impl AlgorithmTraitConst for PtrOfEdgeBoxes
fn as_raw_Algorithm(&self) -> *const c_void
sourcefn write(&self, fs: &mut FileStorage) -> Result<()>
fn write(&self, fs: &mut FileStorage) -> Result<()>
Stores algorithm parameters in a file storage
sourcefn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
sourcefn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
sourcefn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more
sourcefn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more
sourceimpl EdgeBoxes for PtrOfEdgeBoxes
impl EdgeBoxes for PtrOfEdgeBoxes
fn as_raw_mut_EdgeBoxes(&mut self) -> *mut c_void
sourcefn get_bounding_boxes(
&mut self,
edge_map: &dyn ToInputArray,
orientation_map: &dyn ToInputArray,
boxes: &mut Vector<Rect>,
scores: &mut dyn ToOutputArray
) -> Result<()>
fn get_bounding_boxes(
&mut self,
edge_map: &dyn ToInputArray,
orientation_map: &dyn ToInputArray,
boxes: &mut Vector<Rect>,
scores: &mut dyn ToOutputArray
) -> Result<()>
Returns array containing proposal boxes. Read more
sourcefn set_min_score(&mut self, value: f32) -> Result<()>
fn set_min_score(&mut self, value: f32) -> Result<()>
Sets the min score of boxes to detect.
sourcefn set_max_boxes(&mut self, value: i32) -> Result<()>
fn set_max_boxes(&mut self, value: i32) -> Result<()>
Sets max number of boxes to detect.
sourcefn set_edge_min_mag(&mut self, value: f32) -> Result<()>
fn set_edge_min_mag(&mut self, value: f32) -> Result<()>
Sets the edge min magnitude.
sourcefn set_edge_merge_thr(&mut self, value: f32) -> Result<()>
fn set_edge_merge_thr(&mut self, value: f32) -> Result<()>
Sets the edge merge threshold.
sourcefn set_cluster_min_mag(&mut self, value: f32) -> Result<()>
fn set_cluster_min_mag(&mut self, value: f32) -> Result<()>
Sets the cluster min magnitude.
sourcefn set_max_aspect_ratio(&mut self, value: f32) -> Result<()>
fn set_max_aspect_ratio(&mut self, value: f32) -> Result<()>
Sets the max aspect ratio of boxes.
sourcefn set_min_box_area(&mut self, value: f32) -> Result<()>
fn set_min_box_area(&mut self, value: f32) -> Result<()>
Sets the minimum area of boxes.
sourceimpl EdgeBoxesConst for PtrOfEdgeBoxes
impl EdgeBoxesConst for PtrOfEdgeBoxes
fn as_raw_EdgeBoxes(&self) -> *const c_void
sourcefn get_min_score(&self) -> Result<f32>
fn get_min_score(&self) -> Result<f32>
Returns the min score of boxes to detect.
sourcefn get_max_boxes(&self) -> Result<i32>
fn get_max_boxes(&self) -> Result<i32>
Returns the max number of boxes to detect.
sourcefn get_edge_min_mag(&self) -> Result<f32>
fn get_edge_min_mag(&self) -> Result<f32>
Returns the edge min magnitude.
sourcefn get_edge_merge_thr(&self) -> Result<f32>
fn get_edge_merge_thr(&self) -> Result<f32>
Returns the edge merge threshold.
sourcefn get_cluster_min_mag(&self) -> Result<f32>
fn get_cluster_min_mag(&self) -> Result<f32>
Returns the cluster min magnitude.
sourcefn get_max_aspect_ratio(&self) -> Result<f32>
fn get_max_aspect_ratio(&self) -> Result<f32>
Returns the max aspect ratio of boxes.
sourcefn get_min_box_area(&self) -> Result<f32>
fn get_min_box_area(&self) -> Result<f32>
Returns the minimum area of boxes.