fix: unsued and draw
- remove all warning about unused function and variable. - adding draw figure to wait_space sequence
This commit is contained in:
parent
21700d5806
commit
7460b74c15
9 changed files with 190 additions and 22 deletions
|
|
@ -7,6 +7,7 @@ use opencv::prelude::*; //MatTraitConst;
|
|||
use opencv::types::VectorOfVec4i;
|
||||
use opencv::Result;
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn mix_borders(background: &Mat, borders: Vec<Mat>) -> Result<Mat> {
|
||||
let (row, col) = (background.rows(), background.cols());
|
||||
//let mask = Mat::default();
|
||||
|
|
@ -74,8 +75,9 @@ pub fn bord_mult(pt: Vec<(f64, f64)>, factor: f64) -> Vec<(f64, f64)> {
|
|||
}
|
||||
|
||||
// en fait ca marche pas dutout...next time
|
||||
#[allow(dead_code)]
|
||||
pub fn bord_mult_v2(pt: Vec<(f64, f64)>, factor: f64) -> Vec<(f64, f64)> {
|
||||
let mut pt: Vec<Pt> = pt.iter().map(|p| Pt::from(p)).collect();
|
||||
let pt: Vec<Pt> = pt.iter().map(|p| Pt::from(p)).collect();
|
||||
|
||||
let mut pn = vec![];
|
||||
for i in 0..pt.len() {
|
||||
|
|
@ -159,7 +161,7 @@ pub fn get_extermities(lines: &Vector<VecN<i32, 4>>, id: usize) -> ((f64, f64),
|
|||
pub fn probabilistic_hough(
|
||||
edges: &Mat,
|
||||
hough_param: &HoughLine,
|
||||
id: usize,
|
||||
_id: usize,
|
||||
) -> Result<Vector<VecN<i32, 4>>> {
|
||||
let mut p_lines = VectorOfVec4i::new();
|
||||
let mut probabalistic_hough = Mat::default();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue