Program Listing for File convert-maps-legacy.h

Return to documentation for file (aslam_cv2/aslam_cv_pipeline/include/aslam/pipeline/test/convert-maps-legacy.h)


#include <opencv2/imgproc/imgproc.hpp>

namespace aslam {

// This function is a copy of the convertMaps function of OpenCV's
// branch to circumvent a SSE2 bug that was introduced with OpenCV 3.* that
// causes a loss of accuracy in the map conversion from CV16SC2 to CV32FC1.
void convertMapsLegacy(cv::InputArray _map1, cv::InputArray _map2,
                       cv::OutputArray _dstmap1, cv::OutputArray _dstmap2,
                       int dstm1type, bool nninterpolate = false);
} // namespace aslam