for i in 0..self.chunks {
(r, theta) = buffer[i].to_polar();
+ // make linear and normalize
amplitude = 20f32 * r.log10();
amplitude = ((amplitude - VOLUME_MIN) / (VOLUME_REL / AMPLITUDE_REL)) + AMPLITUDE_MIN;
let homography = [0f64; 9]; // homography is a 3x3 matrix of 64-bit floats
let mut image_array = ImageArray::new(homography);
- println!("registered image array");
-
// create the debug window
let debug_window = create_window("Debug", Default::default())?;
-
// create window for displaying images and display calibration image
let display_window = create_window("Display", Default::default())?;
let calibration_image = ImageReader::open("src/calibration.jpg")?.decode()?;
}
}
-
// calibrate camera
image_array.calibrate();