Home
last modified time | relevance | path

Searched refs:ymap (Results 1 – 24 of 24) sorted by relevance

/external/opencv3/modules/cudawarping/test/
Dtest_remap.cpp54 …r> void remapImpl(const cv::Mat& src, const cv::Mat& xmap, const cv::Mat& ymap, cv::Mat& dst, int … in remapImpl() argument
67 …dst.at<T>(y, x * cn + c) = Interpolator<T>::getValue(src, ymap.at<float>(y, x), xmap.at<float>(y, … in remapImpl()
72 …void remapGold(const cv::Mat& src, const cv::Mat& xmap, const cv::Mat& ymap, cv::Mat& dst, int int… in remapGold() argument
74 …typedef void (*func_t)(const cv::Mat& src, const cv::Mat& xmap, const cv::Mat& ymap, cv::Mat& dst,… in remapGold()
108 funcs[interpolation][src.depth()](src, xmap, ymap, dst, borderType, borderVal); in remapGold()
125 cv::Mat ymap; in PARAM_TEST_CASE() local
145 ymap.create(size, CV_32FC1); in PARAM_TEST_CASE()
152 ymap.at<float>(y, x) = static_cast<float>(M[1][0] * x + M[1][1] * y + M[1][2]); in PARAM_TEST_CASE()
164 …cv::cuda::remap(loadMat(src, useRoi), dst, loadMat(xmap, useRoi), loadMat(ymap, useRoi), interpola… in CUDA_TEST_P()
167 remapGold(src, xmap, ymap, dst_gold, interpolation, borderType, val); in CUDA_TEST_P()
Dtest_warp_affine.cpp86 cv::cuda::GpuMat xmap, ymap; in CUDA_TEST_P() local
87 cv::cuda::buildWarpAffineMaps(M, inverse, size, xmap, ymap); in CUDA_TEST_P()
96 cv::remap(src, dst, cv::Mat(xmap), cv::Mat(ymap), interpolation, borderMode); in CUDA_TEST_P()
Dtest_warp_perspective.cpp86 cv::cuda::GpuMat xmap, ymap; in CUDA_TEST_P() local
87 cv::cuda::buildWarpPerspectiveMaps(M, inverse, size, xmap, ymap); in CUDA_TEST_P()
97 cv::remap(src, dst, cv::Mat(xmap), cv::Mat(ymap), interpolation, borderMode); in CUDA_TEST_P()
/external/opencv3/modules/stitching/include/opencv2/stitching/detail/
Dwarpers.hpp82 … Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) = 0;
146 Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap);
192 …dMaps(Size src_size, InputArray K, InputArray R, InputArray T, OutputArray xmap, OutputArray ymap);
193 Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap);
229 Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap);
254 Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap);
410 Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) in buildMaps() argument
414 d_ymap_.download(ymap); in buildMaps()
418 …ldMaps(Size src_size, InputArray K, InputArray R, InputArray T, OutputArray xmap, OutputArray ymap) in buildMaps() argument
422 d_ymap_.download(ymap); in buildMaps()
[all …]
Dwarpers_inl.hpp76 Mat xmap = _xmap.getMat(), ymap = _ymap.getMat(); in buildMaps() local
85 ymap.at<float>(v - dst_tl.y, u - dst_tl.x) = y; in buildMaps()
97 UMat xmap, ymap; in warp() local
98 Rect dst_roi = buildMaps(src.size(), K, R, xmap, ymap); in warp()
101 remap(src, dst, xmap, ymap, interp_mode, border_mode); in warp()
120 Mat ymap(dst_size, CV_32F); in warpBackward() local
129 ymap.at<float>(y, x) = v - src_tl.y; in warpBackward()
134 remap(src, dst, xmap, ymap, interp_mode, border_mode); in warpBackward()
/external/opencv3/modules/cudawarping/src/
Dremap.cpp56 …Szb src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, PtrStepSzb dst,
65 …src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, PtrStepSzb dst, in… in remap()
79 GpuMat ymap = _ymap.getGpuMat(); in remap() local
82 CV_Assert( xmap.type() == CV_32F && ymap.type() == CV_32F && xmap.size() == ymap.size() ); in remap()
100 …, PtrStepSzb(wholeSize.height, wholeSize.width, src.datastart, src.step), ofs.x, ofs.y, xmap, ymap, in remap()
Dwarp.cpp64 …void buildWarpAffineMaps_gpu(float coeffs[2 * 3], PtrStepSzf xmap, PtrStepSzf ymap, cudaStream_t s…
70 …void buildWarpPerspectiveMaps_gpu(float coeffs[3 * 3], PtrStepSzf xmap, PtrStepSzf ymap, cudaStrea…
90 GpuMat ymap = _ymap.getGpuMat(); in buildWarpAffineMaps() local
104 buildWarpAffineMaps_gpu(coeffs, xmap, ymap, StreamAccessor::getStream(stream)); in buildWarpAffineMaps()
119 GpuMat ymap = _ymap.getGpuMat(); in buildWarpPerspectiveMaps() local
133 buildWarpPerspectiveMaps_gpu(coeffs, xmap, ymap, StreamAccessor::getStream(stream)); in buildWarpPerspectiveMaps()
/external/opencv3/modules/cudawarping/src/cuda/
Dremap.cu206 …emap_gpu(PtrStepSzb src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, in remap_gpu() argument
209 …r_t)(PtrStepSz<T> src, PtrStepSz<T> srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, in remap_gpu()
237 …e](static_cast< PtrStepSz<T> >(src), static_cast< PtrStepSz<T> >(srcWhole), xoff, yoff, xmap, ymap, in remap_gpu()
241 …src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, PtrStepSzb dst, in…
243 …src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, PtrStepSzb dst, in…
244 …src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, PtrStepSzb dst, in…
251 …src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, PtrStepSzb dst, in…
253 …src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, PtrStepSzb dst, in…
254 …src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, PtrStepSzb dst, in…
256 …src, PtrStepSzb srcWhole, int xoff, int yoff, PtrStepSzf xmap, PtrStepSzf ymap, PtrStepSzb dst, in…
[all …]
Dwarp.cu85 template <class Transform> __global__ void buildWarpMaps(PtrStepSzf xmap, PtrStepf ymap) in buildWarpMaps() argument
95 ymap(y, x) = coord.y; in buildWarpMaps()
99 …template <class Transform> void buildWarpMaps_caller(PtrStepSzf xmap, PtrStepSzf ymap, cudaStream_… in buildWarpMaps_caller() argument
104 buildWarpMaps<Transform><<<grid, block, 0, stream>>>(xmap, ymap); in buildWarpMaps_caller()
111 …void buildWarpAffineMaps_gpu(float coeffs[2 * 3], PtrStepSzf xmap, PtrStepSzf ymap, cudaStream_t s… in buildWarpAffineMaps_gpu() argument
115 buildWarpMaps_caller<AffineTransform>(xmap, ymap, stream); in buildWarpAffineMaps_gpu()
118 …void buildWarpPerspectiveMaps_gpu(float coeffs[3 * 3], PtrStepSzf xmap, PtrStepSzf ymap, cudaStrea… in buildWarpPerspectiveMaps_gpu() argument
122 buildWarpMaps_caller<PerspectiveTransform>(xmap, ymap, stream); in buildWarpPerspectiveMaps_gpu()
/external/opencv3/modules/stitching/src/
Dwarpers_cuda.cpp150 cuda::GpuMat & xmap, cuda::GpuMat & ymap) in buildMaps() argument
152 return buildMaps(src_size, K, R, Mat::zeros(3, 1, CV_32F), xmap, ymap); in buildMaps()
156 cuda::GpuMat & xmap, cuda::GpuMat & ymap) in buildMaps() argument
164 (void)ymap; in buildMaps()
174 K, R, T, projector_.scale, xmap, ymap); in buildMaps()
210 …Gpu::buildMaps(Size src_size, InputArray K, InputArray R, cuda::GpuMat & xmap, cuda::GpuMat & ymap) in buildMaps() argument
217 (void)ymap; in buildMaps()
227 K, R, projector_.scale, xmap, ymap); in buildMaps()
256 cuda::GpuMat & xmap, cuda::GpuMat & ymap) in buildMaps() argument
263 (void)ymap; in buildMaps()
[all …]
Dwarpers.cpp97 …aneWarper::buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) in buildMaps() argument
99 return buildMaps(src_size, K, R, Mat::zeros(3, 1, CV_32FC1), xmap, ymap); in buildMaps()
136 Mat xmap = _xmap.getMat(), ymap = _ymap.getMat(); in buildMaps() local
145 ymap.at<float>(v - dst_tl.y, u - dst_tl.x) = y; in buildMaps()
311 …calWarper::buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) in buildMaps() argument
326 ymap.create(dsize, CV_32FC1); in buildMaps()
329 … UMat uxmap = xmap.getUMat(), uymap = ymap.getUMat(), uk_rinv = k_rinv.getUMat(ACCESS_READ); in buildMaps()
343 return RotationWarperBase<SphericalProjector>::buildMaps(src_size, K, R, xmap, ymap); in buildMaps()
359 …calWarper::buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) in buildMaps() argument
374 ymap.create(dsize, CV_32FC1); in buildMaps()
[all …]
/external/opencv3/modules/stitching/test/ocl/
Dtest_warpers.cpp54 Mat src, dst, xmap, ymap; member
78 EXPECT_MAT_NEAR(ymap, uymap, threshold); in Near()
94 OCL_OFF(warper->buildMaps(src.size(), K, R, xmap, ymap)); in OCL_TEST_F()
115 OCL_OFF(warper->buildMaps(src.size(), K, R, xmap, ymap)); in OCL_TEST_F()
136 OCL_OFF(warper->buildMaps(src.size(), K, R, xmap, ymap)); in OCL_TEST_F()
/external/opencv3/modules/stitching/perf/opencl/
Dperf_warpers.cpp86 Rect buildMaps(Size src_size, OutputArray xmap, OutputArray ymap) const in buildMaps()
88 return warper->buildMaps(src_size, K, R, xmap, ymap); in buildMaps()
124 UMat xmap, ymap; in OCL_PERF_TEST_P() local
126 OCL_TEST_CYCLE() warper.buildMaps(srcSize, xmap, ymap); in OCL_PERF_TEST_P()
129 SANITY_CHECK(ymap, 1e-3); in OCL_PERF_TEST_P()
/external/opencv3/modules/cudawarping/include/opencv2/
Dcudawarping.hpp86 CV_EXPORTS void remap(InputArray src, OutputArray dst, InputArray xmap, InputArray ymap,
140 …aps(InputArray M, bool inverse, Size dsize, OutputArray xmap, OutputArray ymap, Stream& stream = S…
172 …aps(InputArray M, bool inverse, Size dsize, OutputArray xmap, OutputArray ymap, Stream& stream = S…
/external/opencv3/modules/stitching/src/opencl/
Dwarpers.cl67 __global float * ymap = (__global float *)(ymapptr + ymap_index);
82 ymap[0] = y;
107 __global float * ymap = (__global float *)(ymapptr + ymap_index);
122 ymap[0] = y;
146 __global float * ymap = (__global float *)(ymapptr + ymap_index);
166 ymap[0] = y;
/external/opencv3/modules/imgproc/perf/opencl/
Dperf_imgwarp.cpp188 UMat xmap(srcSize, CV_32FC1), ymap(srcSize, CV_32FC1); in OCL_PERF_TEST_P() local
191 Mat _xmap = xmap.getMat(ACCESS_WRITE), _ymap = ymap.getMat(ACCESS_WRITE); in OCL_PERF_TEST_P()
204 declare.in(src, WARMUP_RNG).in(xmap, ymap, WARMUP_READ).out(dst); in OCL_PERF_TEST_P()
206 OCL_TEST_CYCLE() cv::remap(src, dst, xmap, ymap, interpolation, borderMode); in OCL_PERF_TEST_P()
/external/opencv3/apps/traincascade/
DHOGfeatures.cpp169 int* ymap = xmap + gradSize.width + 2; in integralHistogram() local
176 ymap[y] = borderInterpolate(y, gradSize.height, borderType); in integralHistogram()
190 const uchar* currPtr = img.ptr(ymap[y]); in integralHistogram()
191 const uchar* prevPtr = img.ptr(ymap[y-1]); in integralHistogram()
192 const uchar* nextPtr = img.ptr(ymap[y+1]); in integralHistogram()
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_xv.c310 char *ymap, *vmap, *umap; in copy_packed_data() local
328 ymap = (char*)pipe->transfer_map(pipe, ytrans); in copy_packed_data()
349 ymap[yidx++] = y[yoffset]; in copy_packed_data()
365 ymap[yidx++] = y1; in copy_packed_data()
366 ymap[yidx++] = y2; in copy_packed_data()
383 ymap[yidx++] = y1; in copy_packed_data()
384 ymap[yidx++] = y2; in copy_packed_data()
/external/opencv3/modules/cudawarping/perf/
Dperf_warping.cpp117 cv::Mat ymap(size, CV_32FC1); in PERF_TEST_P() local
118 generateMap(xmap, ymap, remapMode); in PERF_TEST_P()
124 const cv::cuda::GpuMat d_ymap(ymap); in PERF_TEST_P()
135 TEST_CYCLE() cv::remap(src, dst, xmap, ymap, interpolation, borderMode); in PERF_TEST_P()
/external/opencv3/samples/gpu/performance/
Dtests.cpp91 Mat src, dst, xmap, ymap; in TEST() local
104 ymap.create(size, size, CV_32F); in TEST()
108 float* ymap_row = ymap.ptr<float>(i); in TEST()
116 remap(src, dst, xmap, ymap, interpolation, borderMode); in TEST()
119 remap(src, dst, xmap, ymap, interpolation, borderMode); in TEST()
124 d_ymap.upload(ymap); in TEST()
/external/opencv3/modules/objdetect/test/
Dtest_cascadeandhog.cpp1213 int* ymap = xmap + gradsize.width + 2; in computeGradient() local
1221 ymap[y] = borderInterpolate(y - paddingTL.height + roiofs.y, in computeGradient()
1237 const uchar* imgPtr = img.ptr(ymap[y]); in computeGradient()
1238 const uchar* prevPtr = img.ptr(ymap[y-1]); in computeGradient()
1239 const uchar* nextPtr = img.ptr(ymap[y+1]); in computeGradient()
/external/opencv3/modules/objdetect/src/
Dhog.cpp273 int* ymap = xmap + gradsize.width + 2; in computeGradient() local
281 ymap[y] = borderInterpolate(y - paddingTL.height + roiofs.y, in computeGradient()
311 const uchar* imgPtr = img.ptr(ymap[y]); in computeGradient()
314 const uchar* prevPtr = img.data + img.step*ymap[y-1]; in computeGradient()
315 const uchar* nextPtr = img.data + img.step*ymap[y+1]; in computeGradient()
/external/opencv/cv/src/
D_cvipp.h275 const float* xmap, int xmapstep, const float* ymap, int ymapstep, \
Dcvimgwarp.cpp1768 const float* xmap, int xmapstep, const float* ymap, int ymapstep,