Merging to hdr image#519
Conversation
# Conflicts: # src-tauri/src/main.rs
# Conflicts: # src-tauri/Cargo.lock # src-tauri/Cargo.toml # src-tauri/src/main.rs # src/App.tsx # src/components/ui/AppProperties.tsx
|
Here's a sneak peek: merge_hdr.mp4I have already replaced 'panorama' with 'HDR' in the texts. The reading of the EXIF values may need improvement |
|
Thanks @SimonIT for this PR. I will take a look at this soon. Do you already have a fix in mind for these purple sensor clipping artifacts? |
|
Thanks! Perhaps it's because of the hard-coded highlight compression to 2.5? You used this value for culling, denoising and panorama stitching too, though, so I thought it would be OK. It may simply be how RapidRaw behaves with overexposed parts. When I reduce the exposure by -2 on the second mushroom picture (_1020394.RW2), the image just has purple clipping. I can try with different pictures, though — I wasn't planning to merge these when I took them. |
# Conflicts: # src/App.tsx
# Conflicts: # src-tauri/Cargo.toml
# Conflicts: # src/App.tsx
|
Hi @SimonIT, Thanks for the great work on this PR and for the demo video! I've had a chance to look through the code, and it's integrating nicely. I have two main suggestions to align it with the rest of the project:
After these changes, I'll do some final testing, and we should be ready to merge. Thank you & have a nice evening, |
|
I changed it to only use the RapidRaw Exif reading, removed and/or replaced the println, and made the error handling (hopefully) in general better for that function |
|
Hey @SimonIT, thanks for the updates! Two things: 1. Replace The The rational values already exist in pub fn read_exposure_time_secs(path: &str, file_bytes: &[u8]) -> Option<f32> {
// return num/denom from the Rational directly, no string involved
}
pub fn read_iso(path: &str, file_bytes: &[u8]) -> Option<f32> {
// same
}Then use these in 2. Use The rest of the codebase uses Thanks a lot! |
|
Just did Use log::info! instead of debug! quickly, I'm on Replace parse_exposure_time with typed accessors right know |
|
No stress! I’d suggest taking the time to integrate this cleanly with the rest of the codebase instead of rushing the last steps. A slightly slower, tidy integration now will make maintenance much easier later :) |
# Conflicts: # src-tauri/Cargo.toml
|
It's done. The problem with waiting is that merge conflicts appear all the time. And I'm not patient^^ |
|
Hi @SimonIT, These changes look great! Thank you for carefully addressing the feedback and cleaning up the EXIF handling. I really appreciate the effort you put into this. I’ll go ahead and merge it now. 💯 |
|
🎉 Reading the meta data for raw should also be a bit faster, as it reads it now from the slice. I love to contribute, but I haven't found the right topics as I don't have much knowledge in this field. I'm looking forward to see this awesome succeed and helping it. By the way, the author of the image-hdr crate has also some other interesting crates like star detection and something other I don't really understand for denoising? Might be worth a look |
I saw this while reviewing the code - that's amazing!! thanks for this fix.
Thanks a lot - that's great and I really appreciate it 🥇
Yesterday I also looked at his other repositories. Yes, some of them are for noise reduction or feature detection (perhaps useful?). I don't currently have a direct use for them. |
It's not quite there yet, but please feel free to provide some initial feedback.
to_rgb8()for preview(?)