cleanup
This commit is contained in:
parent
3d53982e72
commit
6c0678ca1d
@ -2,8 +2,7 @@ use crate::transformer::Transformers;
|
|||||||
use crate::point::Point;
|
use crate::point::Point;
|
||||||
use crate::worldstate::{WorldState,EDH};
|
use crate::worldstate::{WorldState,EDH};
|
||||||
use serde::{Serialize,Deserialize};
|
use serde::{Serialize,Deserialize};
|
||||||
use log::info;
|
use log::debug;
|
||||||
use nalgebra::Matrix3;
|
|
||||||
use nalgebra::Matrix1x3;
|
use nalgebra::Matrix1x3;
|
||||||
|
|
||||||
/// Homography
|
/// Homography
|
||||||
@ -21,7 +20,7 @@ impl Transformers for Homography {
|
|||||||
let p = p * edh.matrix;
|
let p = p * edh.matrix;
|
||||||
let new_p = Point { x: p[0] / p[2], y: p[1] / p[2], ..*point };
|
let new_p = Point { x: p[0] / p[2], y: p[1] / p[2], ..*point };
|
||||||
|
|
||||||
dbg!("{:?} => {:?}", point, new_p);
|
debug!("{:?} => {:?}", point, new_p);
|
||||||
|
|
||||||
new_p
|
new_p
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user