convert most variable swaps to mem swaps

This commit is contained in:
Henry Schimke
2022-12-19 18:04:43 -06:00
parent eaacf31923
commit 8a0cc78c61
11 changed files with 16 additions and 39 deletions

View File

@@ -85,9 +85,7 @@ impl Detector {
let mut bulls_eye_corners = self.get_bulls_eye_corners(p_center)?;
if is_mirror {
let temp = bulls_eye_corners[0];
bulls_eye_corners[0] = bulls_eye_corners[2];
bulls_eye_corners[2] = temp;
bulls_eye_corners.swap(0,2);
}
// 3. Get the size of the matrix and other parameters from the bull's eye