-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add difference tool to configurator #243
Conversation
ae8ffc4
to
5961888
Compare
configurator/src/cv.rs
Outdated
if let Some(output) = &output_dir { | ||
let mut output = output.clone(); | ||
output.push("1_base_grayscale.jpg"); | ||
Picture::from(base_gray.clone()).save_to_file(output.to_str().unwrap())?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: to_str()?
instead of unwrap?
configurator/src/cv.rs
Outdated
pub fn save_to_file(&self, filename: &str) -> Result<(), Box<dyn Error>> { | ||
debug!("Writing file: {}", filename); | ||
opencv::imgcodecs::imwrite(filename, &self.inner, &opencv::core::Vector::default())?; | ||
pub fn save_to_file<P: AsRef<Path>>(&self, path: &P) -> Result<(), Box<dyn Error>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub fn save_to_file<P: AsRef<Path>>(&self, path: &P) -> Result<(), Box<dyn Error>> { | |
pub fn save_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Box<dyn Error>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.