Added PNG instance of image for fisheye::undistort test as JPG is decoded differently with different libjpeg versions.

This commit is contained in:
Alexander Smorkalov 2024-03-28 12:02:58 +03:00
parent ff9aeaceb0
commit fd576d9e8e

View File

@ -185,7 +185,7 @@ TEST_F(fisheyeTest, undistortImage)
cv::Matx33d theK = this->K; cv::Matx33d theK = this->K;
cv::Mat theD = cv::Mat(this->D); cv::Mat theD = cv::Mat(this->D);
std::string file = combine(datasets_repository_path, "/calib-3_stereo_from_JY/left/stereo_pair_014.jpg"); std::string file = combine(datasets_repository_path, "stereo_pair_014.png");
cv::Matx33d newK = theK; cv::Matx33d newK = theK;
cv::Mat distorted = cv::imread(file), undistorted; cv::Mat distorted = cv::imread(file), undistorted;
{ {