about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2024-03-09 22:07:25 -0600
committergennyble <gen@nyble.dev>2024-03-09 22:07:25 -0600
commit91365deccbfd1d5686ff62d77d9dea6937fcdb4d (patch)
treea8f4375158652ee14843cfa27a80bb6d9bbfb12c
parent4b37607028967fd178745d0986f88b83f0d65e2f (diff)
downloadlri-rs-91365deccbfd1d5686ff62d77d9dea6937fcdb4d.tar.gz
lri-rs-91365deccbfd1d5686ff62d77d9dea6937fcdb4d.zip
prism: output images have camera id HEAD main
-rw-r--r--prism/src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/prism/src/main.rs b/prism/src/main.rs
index 8a52e0f..427b3db 100644
--- a/prism/src/main.rs
+++ b/prism/src/main.rs
@@ -34,7 +34,7 @@ fn main() {
 	println!("{} images", lri.image_count());
 
 	if let Some(refimg) = lri.reference_image() {
-		output::make_png(refimg, directory.join("reference.png"), gain);
+		println!("The reference camera is {}", refimg.camera);
 	}
 
 	let mut set: HashMap<CameraId, Entry> = HashMap::new();
@@ -52,7 +52,8 @@ fn main() {
 		println!("{} {:?} {}", kv.0, kv.1.sensor, kv.1.count);
 	});*/
 
-	for (idx, img) in lri.images().enumerate() {
-		output::make_png(img, directory.join(format!("image_{idx}.png")), gain);
+	for img in lri.images() {
+		let path = format!("{}.png", img.camera);
+		output::make_png(img, directory.join(path), gain);
 	}
 }