diff options
author | CJ Smith <cjs.connor.smith@gmail.com> | 2018-08-01 07:41:20 -0400 |
---|---|---|
committer | Alexander Alekhin <alexander.a.alekhin@gmail.com> | 2018-08-01 14:41:20 +0300 |
commit | da41ac9e601a11b503753d4ebe9e20930ecf0f30 (patch) | |
tree | 8515e549315d9ae7a98a2c78153efbdc1293450a | |
parent | 82c477c9f7d5a2cc6f70b51d61584a2dca605c8c (diff) | |
download | opencv-upstream/master.tar.gz opencv-upstream/master.tar.bz2 opencv-upstream/master.zip |
Merge pull request #12106 from CJSmith-0141:warpPerspective_typofixupstream/master
* Fixes typo in function name hal::warpPerspective.
* Fixes remaining typos in word Perspective (was Perspectve).
-rw-r--r-- | 3rdparty/openvx/hal/openvx_hal.cpp | 2 | ||||
-rw-r--r-- | 3rdparty/openvx/hal/openvx_hal.hpp | 4 | ||||
-rw-r--r-- | modules/imgproc/include/opencv2/imgproc/hal/hal.hpp | 2 | ||||
-rw-r--r-- | modules/imgproc/src/hal_replacement.hpp | 6 | ||||
-rw-r--r-- | modules/imgproc/src/imgwarp.cpp | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/3rdparty/openvx/hal/openvx_hal.cpp b/3rdparty/openvx/hal/openvx_hal.cpp index 53a2711d52..191816488b 100644 --- a/3rdparty/openvx/hal/openvx_hal.cpp +++ b/3rdparty/openvx/hal/openvx_hal.cpp @@ -431,7 +431,7 @@ int ovx_hal_warpAffine(int atype, const uchar *a, size_t astep, int aw, int ah, return CV_HAL_ERROR_OK; } -int ovx_hal_warpPerspectve(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, const double M[9], int interpolation, int borderType, const double borderValue[4]) +int ovx_hal_warpPerspective(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, const double M[9], int interpolation, int borderType, const double borderValue[4]) { if (skipSmallImages<VX_KERNEL_WARP_PERSPECTIVE>(aw, ah)) return CV_HAL_ERROR_NOT_IMPLEMENTED; diff --git a/3rdparty/openvx/hal/openvx_hal.hpp b/3rdparty/openvx/hal/openvx_hal.hpp index c94cde3158..98bb4dc43e 100644 --- a/3rdparty/openvx/hal/openvx_hal.hpp +++ b/3rdparty/openvx/hal/openvx_hal.hpp @@ -27,7 +27,7 @@ int ovx_hal_mul(const T *a, size_t astep, const T *b, size_t bstep, T *c, size_t int ovx_hal_merge8u(const uchar **src_data, uchar *dst_data, int len, int cn); int ovx_hal_resize(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, double inv_scale_x, double inv_scale_y, int interpolation); int ovx_hal_warpAffine(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, const double M[6], int interpolation, int borderType, const double borderValue[4]); -int ovx_hal_warpPerspectve(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, const double M[9], int interpolation, int borderType, const double borderValue[4]); +int ovx_hal_warpPerspective(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, const double M[9], int interpolation, int borderType, const double borderValue[4]); struct cvhalFilter2D; int ovx_hal_filterInit(cvhalFilter2D **filter_context, uchar *kernel_data, size_t kernel_step, int kernel_type, int kernel_width, int kernel_height, @@ -97,7 +97,7 @@ int ovx_hal_integral(int depth, int sdepth, int, const uchar * a, size_t astep, //#undef cv_hal_warpAffine //#define cv_hal_warpAffine ovx_hal_warpAffine //#undef cv_hal_warpPerspective -//#define cv_hal_warpPerspective ovx_hal_warpPerspectve +//#define cv_hal_warpPerspective ovx_hal_warpPerspective #undef cv_hal_filterInit #define cv_hal_filterInit ovx_hal_filterInit diff --git a/modules/imgproc/include/opencv2/imgproc/hal/hal.hpp b/modules/imgproc/include/opencv2/imgproc/hal/hal.hpp index a435fd6b85..ac20725e63 100644 --- a/modules/imgproc/include/opencv2/imgproc/hal/hal.hpp +++ b/modules/imgproc/include/opencv2/imgproc/hal/hal.hpp @@ -108,7 +108,7 @@ CV_EXPORTS void warpAffine(int src_type, uchar * dst_data, size_t dst_step, int dst_width, int dst_height, const double M[6], int interpolation, int borderType, const double borderValue[4]); -CV_EXPORTS void warpPerspectve(int src_type, +CV_EXPORTS void warpPerspective(int src_type, const uchar * src_data, size_t src_step, int src_width, int src_height, uchar * dst_data, size_t dst_step, int dst_width, int dst_height, const double M[9], int interpolation, int borderType, const double borderValue[4]); diff --git a/modules/imgproc/src/hal_replacement.hpp b/modules/imgproc/src/hal_replacement.hpp index d6b1d78273..40f9d302df 100644 --- a/modules/imgproc/src/hal_replacement.hpp +++ b/modules/imgproc/src/hal_replacement.hpp @@ -271,7 +271,7 @@ inline int hal_ni_resize(int src_type, const uchar *src_data, size_t src_step, i */ inline int hal_ni_warpAffine(int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, const double M[6], int interpolation, int borderType, const double borderValue[4]) { return CV_HAL_ERROR_NOT_IMPLEMENTED; } /** - @brief hal_warpPerspectve + @brief hal_warpPerspective @param src_type source and destination image type @param src_data source image data @param src_step source image step @@ -287,12 +287,12 @@ inline int hal_ni_warpAffine(int src_type, const uchar *src_data, size_t src_ste @param borderValue values to use for CV_HAL_BORDER_CONSTANT mode @sa cv::warpPerspective, cv::hal::warpPerspective */ -inline int hal_ni_warpPerspectve(int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, const double M[9], int interpolation, int borderType, const double borderValue[4]) { return CV_HAL_ERROR_NOT_IMPLEMENTED; } +inline int hal_ni_warpPerspective(int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int dst_width, int dst_height, const double M[9], int interpolation, int borderType, const double borderValue[4]) { return CV_HAL_ERROR_NOT_IMPLEMENTED; } //! @cond IGNORED #define cv_hal_resize hal_ni_resize #define cv_hal_warpAffine hal_ni_warpAffine -#define cv_hal_warpPerspective hal_ni_warpPerspectve +#define cv_hal_warpPerspective hal_ni_warpPerspective //! @endcond /** diff --git a/modules/imgproc/src/imgwarp.cpp b/modules/imgproc/src/imgwarp.cpp index 7c8388ba86..f4f276a5b1 100644 --- a/modules/imgproc/src/imgwarp.cpp +++ b/modules/imgproc/src/imgwarp.cpp @@ -2878,7 +2878,7 @@ private: namespace hal { -void warpPerspectve(int src_type, +void warpPerspective(int src_type, const uchar * src_data, size_t src_step, int src_width, int src_height, uchar * dst_data, size_t dst_step, int dst_width, int dst_height, const double M[9], int interpolation, int borderType, const double borderValue[4]) @@ -2989,7 +2989,7 @@ void cv::warpPerspective( InputArray _src, OutputArray _dst, InputArray _M0, if( !(flags & WARP_INVERSE_MAP) ) invert(matM, matM); - hal::warpPerspectve(src.type(), src.data, src.step, src.cols, src.rows, dst.data, dst.step, dst.cols, dst.rows, + hal::warpPerspective(src.type(), src.data, src.step, src.cols, src.rows, dst.data, dst.step, dst.cols, dst.rows, matM.ptr<double>(), interpolation, borderType, borderValue.val); } |