Lines Matching refs:mapx
55 static void generateMap(Mat& mapx, Mat& mapy, int remapMode) in generateMap() argument
57 for (int j = 0; j < mapx.rows; ++j) in generateMap()
59 for (int i = 0; i < mapx.cols; ++i) in generateMap()
64 … if (i > mapx.cols*0.25 && i < mapx.cols*0.75 && j > mapx.rows*0.25 && j < mapx.rows*0.75) in generateMap()
66 mapx.at<float>(j,i) = 2.f * (i - mapx.cols * 0.25f) + 0.5f; in generateMap()
67 mapy.at<float>(j,i) = 2.f * (j - mapx.rows * 0.25f) + 0.5f; in generateMap()
71 mapx.at<float>(j,i) = 0.f; in generateMap()
76 mapx.at<float>(j,i) = static_cast<float>(i); in generateMap()
77 mapy.at<float>(j,i) = static_cast<float>(mapx.rows - j); in generateMap()
80 mapx.at<float>(j,i) = static_cast<float>(mapx.cols - i); in generateMap()
84 mapx.at<float>(j,i) = static_cast<float>(mapx.cols - i); in generateMap()
85 mapy.at<float>(j,i) = static_cast<float>(mapx.rows - j); in generateMap()
98 Mat mapx(size, CV_32FC1); in test_remap() local
100 generateMap(mapx, mapy, remapMode); in test_remap()
103 GpuMat_<float> d_mapx(mapx); in test_remap()
109 cv::remap(src, dst_gold, mapx, mapy, INTER_NEAREST, BORDER_REPLICATE); in test_remap()
147 Mat mapx(size.height * 2, size.width * 2, CV_32FC1); in TEST() local
150 for (int y = 0; y < mapx.rows; ++y) in TEST()
152 for (int x = 0; x < mapx.cols; ++x) in TEST()
154 mapx.at<float>(y, x) = static_cast<float>(x / 2); in TEST()
159 GpuMat_<float> d_mapx(mapx); in TEST()
180 …Mat mapx(cv::saturate_cast<int>(size.height * fy), cv::saturate_cast<int>(size.width * fx), CV_32F… in TEST()
183 for (int y = 0; y < mapx.rows; ++y) in TEST()
185 for (int x = 0; x < mapx.cols; ++x) in TEST()
187 mapx.at<float>(y, x) = x / fx; in TEST()
192 GpuMat_<float> d_mapx(mapx); in TEST()