Home
last modified time | relevance | path

Searched refs:mapx (Results 1 – 20 of 20) sorted by relevance

/external/opencv3/modules/cudev/test/
Dtest_warp.cu55 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()
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/ptr2d/
Dremap.hpp81 MapXPtr mapx; member
86 const typename PtrTraits<MapXPtr>::value_type nx = mapx(y, x); in operator ()()
131 remapPtr(const SrcPtr& src, const MapXPtr& mapx, const MapYPtr& mapy) in remapPtr() argument
133 const int rows = getRows(mapx); in remapPtr()
134 const int cols = getCols(mapx); in remapPtr()
140 r.mapx = shrinkPtr(mapx); in remapPtr()
/external/opencv3/modules/cudawarping/src/cuda/
Dremap.cu56 … Ptr2D, typename T> __global__ void remap(const Ptr2D src, const PtrStepf mapx, const PtrStepf map… in remap() argument
63 const float xcoo = mapx.ptr(y)[x]; in remap()
72 …static void call(PtrStepSz<T> src, PtrStepSzf mapx, PtrStepSzf mapy, PtrStepSz<T> dst, const float… in call()
83 remap<<<grid, block, 0, stream>>>(filter_src, mapx, mapy, dst); in call()
90 …l(PtrStepSz<T> src, PtrStepSz<T> srcWhole, int xoff, int yoff, PtrStepSzf mapx, PtrStepSzf mapy, P… in call()
104 remap<<<grid, block>>>(filter_src, mapx, mapy, dst); in call()
126 …Sz< type > src, PtrStepSz< type > srcWhole, int xoff, int yoff, PtrStepSzf mapx, PtrStepSzf mapy, \
137 remap<<<grid, block>>>(filter_src, mapx, mapy, dst); \
144 …Sz< type > src, PtrStepSz< type > srcWhole, int xoff, int yoff, PtrStepSzf mapx, PtrStepSzf mapy, \
154 remap<<<grid, block>>>(filter_src, mapx, mapy, dst); \
[all …]
/external/opencv3/modules/imgproc/test/
Dtest_imgwarp_strict.cpp638 Mat mapx, mapy; member in CV_Remap_Test
654 CV_ImageWarpBaseTest(), mapx(), mapy(), in CV_Remap_Test()
675 mapx.create(dst.size(), mapx_types[rng.uniform(0, sizeof(mapx_types) / sizeof(int))]); in generate_test_data()
681 switch (mapx.type()) in generate_test_data()
685 MatIterator_<Vec2s> begin_x = mapx.begin<Vec2s>(), end_x = mapx.end<Vec2s>(); in generate_test_data()
724 MatIterator_<float> begin_x = mapx.begin<float>(), end_x = mapx.end<float>(); in generate_test_data()
738 int width = mapx.cols << 1; in generate_test_data()
740 for (int y = 0; y < mapx.rows; ++y) in generate_test_data()
742 float * ptr = mapx.ptr<float>(y); in generate_test_data()
761 remap(src, dst, mapx, mapy, interpolation, borderType, borderValue); in run_func()
[all …]
Dtest_imgwarp.cpp341 static void test_remap( const Mat& src, Mat& dst, const Mat& mapx, const Mat& mapy, in test_remap() argument
374 const float* mx = mapx.ptr<float>(y); in test_remap()
541 Mat mapx(dst.size(), CV_32F), mapy(dst.size(), CV_32F); in prepare_to_validation() local
558 mapx.at<float>(y, x) = (float)(x*m[0] + y*m[1] + m[2]); in prepare_to_validation()
563 test_remap( src, dst, mapx, mapy, &mask ); in prepare_to_validation()
662 Mat mapx(dst.size(), CV_32F), mapy(dst.size(), CV_32F); in prepare_to_validation() local
683 mapx.at<float>(y, x) = (float)xs; in prepare_to_validation()
689 test_remap( src, dst, mapx, mapy, &mask ); in prepare_to_validation()
958 Mat mapx, mapy; in prepare_to_validation() local
959 cvtest::initUndistortMap( test_mat[INPUT][1], test_mat[INPUT][2], dst.size(), mapx, mapy ); in prepare_to_validation()
[all …]
/external/opencv3/modules/videostab/src/cuda/
Dglobal_motion.cu70 PtrStepf mapx, PtrStepf mapy) in calcWobbleSuppressionMapsKernel() argument
91 mapx(y,x) = (wr * xl + wl * xr) / (wl + wr); in calcWobbleSuppressionMapsKernel()
99 const float *ml, const float *mr, PtrStepSzf mapx, PtrStepSzf mapy) in calcWobbleSuppressionMaps() argument
108 left, idx, right, width, height, mapx, mapy); in calcWobbleSuppressionMaps()
/external/opencv/cv/src/
Dcvimgwarp.cpp1612 const float* mapx, int mxstep, \
1622 mxstep /= sizeof(mapx[0]); \
1626 mapx += mxstep, mapy += mystep ) \
1630 float _x = mapx[j], _y = mapy[j]; \
1661 const float* mapx, int mxstep, \
1671 mxstep /= sizeof(mapx[0]); \
1675 mapx += mxstep, mapy += mystep ) \
1679 int ix = cvRound(mapx[j]*(1 << ICV_WARP_SHIFT)); \
1748 const float* mapx, int mxstep,
1987 CvMat mxstub, *mapx = (CvMat*)_mapx; in cvRemap() local
[all …]
Dcvundistort.cpp240 float* mapx = (float*)(_mapx->data.ptr + _mapx->step*v); in cvInitUndistortMap() local
250 mapx[u] = (float)_x; in cvInitUndistortMap()
349 float* mapx = (float*)(_mapx->data.ptr + _mapx->step*i); in cvInitUndistortRectifyMap() local
361 mapx[j] = (float)u; in cvInitUndistortRectifyMap()
/external/opencv3/modules/videostab/src/
Dwobble_suppression.cpp62 const float *ml, const float *mr, PtrStepSzf mapx, PtrStepSzf mapy);
67 GpuMat &mapx, GpuMat &mapy) in calcWobbleSuppressionMaps() argument
72 mapx.create(size, CV_32F); in calcWobbleSuppressionMaps()
77 ml.ptr<float>(), mr.ptr<float>(), mapx, mapy); in calcWobbleSuppressionMaps()
/external/opencv3/modules/imgproc/src/
Dundistort.cpp233 cv::Mat mapx = cv::cvarrToMat(mapxarr), mapy, mapx0 = mapx, mapy0; in cvInitUndistortMap() local
239 mapx.size(), mapx.type(), mapx, mapy ); in cvInitUndistortMap()
240 CV_Assert( mapx0.data == mapx.data && mapy0.data == mapy.data ); in cvInitUndistortMap()
248 cv::Mat mapx = cv::cvarrToMat(mapxarr), mapy, mapx0 = mapx, mapy0; in cvInitUndistortRectifyMap() local
260 cv::initUndistortRectifyMap( A, distCoeffs, R, Ar, mapx.size(), mapx.type(), mapx, mapy ); in cvInitUndistortRectifyMap()
261 CV_Assert( mapx0.data == mapx.data && mapy0.data == mapy.data ); in cvInitUndistortRectifyMap()
Dimgwarp.cpp6393 cv::Mat mapx = cv::cvarrToMat(_mapx), mapy = cv::cvarrToMat(_mapy); in cvRemap() local
6394 CV_Assert( src.type() == dst.type() && dst.size() == mapx.size() ); in cvRemap()
6395 cv::remap( src, dst, mapx, mapy, flags & cv::INTER_MAX, in cvRemap()
6467 cv::Ptr<CvMat> mapx, mapy; in cvLogPolar() local
6482 mapx.reset(cvCreateMat( dsize.height, dsize.width, CV_32F )); in cvLogPolar()
6498 float* mx = (float*)(mapx->data.ptr + phi*mapx->step); in cvLogPolar()
6530 float* mx = (float*)(mapx->data.ptr + y*mapx->step); in cvLogPolar()
6571 cvRemap( src, dst, mapx, mapy, flags, cvScalarAll(0) ); in cvLogPolar()
6591 cv::Ptr<CvMat> mapx, mapy; in cvLinearPolar() local
6608 mapx.reset(cvCreateMat( dsize.height, dsize.width, CV_32F )); in cvLinearPolar()
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/expr/
Dwarping.hpp83 remap_(const SrcPtr& src, const MapXPtr& mapx, const MapYPtr& mapy) in remap_() argument
85 return makeExpr(remapPtr(src, mapx, mapy)); in remap_()
/external/opencv3/modules/imgproc/include/opencv2/imgproc/
Dimgproc_c.h252 const CvArr* mapx, const CvArr* mapy,
259 CVAPI(void) cvConvertMaps( const CvArr* mapx, const CvArr* mapy,
289 CvArr* mapx, CvArr* mapy );
297 CvArr* mapx, CvArr* mapy );
/external/opencv3/modules/calib3d/test/
Dtest_undistort_badarg.cpp311 cv::Mat mapx; member in CV_InitUndistortRectifyMapBadArgTest
327 …initUndistortRectifyMap(camera_mat,distortion_coeffs,R,new_camera_mat,img_size,mat_type,mapx,mapy); in run_func()
375 mapx = cv::cvarrToMat(&_mapx_orig); in run()
Dtest_undistort.cpp598 cv::Mat mapx; member in CV_InitUndistortRectifyMapTest
813 mapx = cv::Mat(_mapx); in prepare_to_validation()
817 cv::convertMaps(mapx,mapy,map1,map2,CV_32FC1); in prepare_to_validation()
870 mapx = cv::cvarrToMat(_mapx); in prepare_to_validation()
874 cv::convertMaps(mapx,mapy,map1,map2,CV_32FC1); in prepare_to_validation()
912 cv::initUndistortRectifyMap(camera_mat,input2,input3,input4,img_size,mat_type,mapx,mapy); in run_func()
/external/opencv3/modules/python/test/
Dcamera_calibration.py353 mapx = cv.CreateImage((640, 480), cv.IPL_DEPTH_32F, 1) variable
355 cv.InitUndistortMap(intrinsics, distortion, mapx, mapy)
358 cv.Remap(img, r, mapx, mapy)
/external/opencv/cv/include/
Dcv.h298 const CvArr* mapx, const CvArr* mapy, in LOAD_CHDL()
303 CVAPI(void) cvConvertMaps( const CvArr* mapx, const CvArr* mapy, in LOAD_CHDL()
1174 CvArr* mapx, CvArr* mapy ); in LOAD_CHDL()
1180 CvArr* mapx, CvArr* mapy ); in LOAD_CHDL()
/external/opencv/cvaux/src/
Dcvepilines.cpp2458 CvMat stubx, *mapx = (CvMat*)rectMapX; in cvComputePerspectiveMap() local
2462 CV_CALL( mapx = cvGetMat( mapx, &stubx )); in cvComputePerspectiveMap()
2465 if( CV_MAT_TYPE( mapx->type ) != CV_32FC1 || CV_MAT_TYPE( mapy->type ) != CV_32FC1 ) in cvComputePerspectiveMap()
2468 size = cvGetMatSize(mapx); in cvComputePerspectiveMap()
2473 float* mx = (float*)(mapx->data.ptr + mapx->step*i); in cvComputePerspectiveMap()
/external/opencv3/doc/py_tutorials/py_calib3d/py_calibration/
Dpy_calibration.markdown188 mapx,mapy = cv2.initUndistortRectifyMap(mtx,dist,None,newcameramtx,(w,h),5)
189 dst = cv2.remap(img,mapx,mapy,cv2.INTER_LINEAR)
/external/opencv3/modules/ts/include/opencv2/
Dts.hpp127 CV_EXPORTS void initUndistortMap( const Mat& a, const Mat& k, Size sz, Mat& mapx, Mat& mapy );