Skip to content
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

Rectify image if any distortion coefficients are non-zero #118

Merged
merged 1 commit into from
Mar 4, 2016

Conversation

lucasw
Copy link
Contributor

@lucasw lucasw commented Mar 2, 2016

Unit tests included.

For #117

@vrabaud vrabaud changed the title Rectify image if any distortion coefficients are non-zero Rectify image if any distortion coefficients are non-zero Mar 2, 2016
error = cv::sum(diff_image)[0];
EXPECT_EQ(error, 0);

// debug
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds an extra dependency on highgui so I guess you can remove it right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can remove it and the #include <opencv2/highgui/highgui.hpp> above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's gone now.

@vrabaud
Copy link
Contributor

vrabaud commented Mar 3, 2016

looks good overall, please take the comments into account, that just makes less code to review :) And please squash your commits too once done. Thx.

lucasw added a commit to lucasw/vision_opencv that referenced this pull request Mar 3, 2016
@lucasw lucasw force-pushed the indigo branch 2 times, most recently from 2c284a4 to ce51a40 Compare March 3, 2016 13:02
lucasw added a commit to lucasw/vision_opencv that referenced this pull request Mar 3, 2016
…stortion coefficients to see if rectification ought to be done
@lucasw
Copy link
Contributor Author

lucasw commented Mar 3, 2016

Made those changes, and squashed.

}

cv::Mat rectified_image;
cv::Mat diff_image;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is useless now right ?

…stortion coefficients to see if rectification ought to be done
@lucasw
Copy link
Contributor Author

lucasw commented Mar 4, 2016

Deleted unused diff image mat.

@vrabaud
Copy link
Contributor

vrabaud commented Mar 4, 2016

Thx !

vrabaud added a commit that referenced this pull request Mar 4, 2016
Rectify image if any distortion coefficients are non-zero
@vrabaud vrabaud merged commit a77683d into ros-perception:indigo Mar 4, 2016
@vrabaud
Copy link
Contributor

vrabaud commented Mar 4, 2016

Thix closes #117

luca-della-vedova pushed a commit to luca-della-vedova/vision_opencv that referenced this pull request Sep 2, 2020
…ach-end-of-non-void

Return default value to prevent missing return warning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants