-
Notifications
You must be signed in to change notification settings - Fork 38
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
New tool 2dCompImage #313
New tool 2dCompImage #313
Conversation
doc/visualization.dox
Outdated
@@ -19,7 +19,7 @@ | |||
@section visualization_Doc Visualization | |||
|
|||
|
|||
|
|||
- @ref Doc2dCompImage : Computes and displays image comparisons (squared and absolute differences). |
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.
Compare images and display differences (squared and absolute differences).
?
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.
yes better thanks ;)
visualisation/2dCompImage.cpp
Outdated
-e [ --imageError ] arg Output error image basename (will generate | ||
two images <basename>MSE.ppm and | ||
<basename>MAE.ppm). | ||
-S [ --fixMaxColorValueMSE ] arg Fix the maximal color value for the scale |
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.
Fix -> set?
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.
yes
visualisation/2dCompImage.cpp
Outdated
getMAEstats(const Image2D & imageA, const Image2D &imageB, Image2DErr &imageMAE) | ||
{ | ||
Statistic< int> stat(false); | ||
for(Image2D::Domain::ConstIterator it = imageA.domain().begin(); |
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.
or more simply:
for(auto point: imageA.domain())
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.
;)
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.
yes thanks C++11 ;)
visualisation/2dCompImage.cpp
Outdated
("imageA,a", po::value<std::string >(), "Input filename of image A." ) | ||
("imageB,b", po::value<std::string >(), "Input filename of image B." ) | ||
("imageError,e", po::value<std::string >(), "Output error image basename (will generate two images <basename>MSE.ppm and <basename>MAE.ppm)." ) | ||
("fixMaxColorValueMSE,S", po::value<int>(), "Fix the maximal color value for the scale display of MSE (else the scale is set the maximal MSE value)." ) |
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.
Fix -> set ?
all done @dcoeurjo thanks for the review |
perfect. thanks. |
PR Description
New tools to compare 2D images (and visualize errors).
Checklist
cmake
mode (otherwise, Travis C.I. will fail).