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