Skip to content

Commit da41ac9

Browse files
CJSmith-0141alalek
authored andcommitted
Merge pull request opencv#12106 from CJSmith-0141:warpPerspective_typofix
* Fixes typo in function name hal::warpPerspective. * Fixes remaining typos in word Perspective (was Perspectve).
1 parent 82c477c commit da41ac9

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

3rdparty/openvx/hal/openvx_hal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ int ovx_hal_warpAffine(int atype, const uchar *a, size_t astep, int aw, int ah,
431431
return CV_HAL_ERROR_OK;
432432
}
433433

434-
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])
434+
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])
435435
{
436436
if (skipSmallImages<VX_KERNEL_WARP_PERSPECTIVE>(aw, ah))
437437
return CV_HAL_ERROR_NOT_IMPLEMENTED;

3rdparty/openvx/hal/openvx_hal.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int ovx_hal_mul(const T *a, size_t astep, const T *b, size_t bstep, T *c, size_t
2727
int ovx_hal_merge8u(const uchar **src_data, uchar *dst_data, int len, int cn);
2828
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);
2929
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]);
30-
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]);
30+
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]);
3131

3232
struct cvhalFilter2D;
3333
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,
9797
//#undef cv_hal_warpAffine
9898
//#define cv_hal_warpAffine ovx_hal_warpAffine
9999
//#undef cv_hal_warpPerspective
100-
//#define cv_hal_warpPerspective ovx_hal_warpPerspectve
100+
//#define cv_hal_warpPerspective ovx_hal_warpPerspective
101101

102102
#undef cv_hal_filterInit
103103
#define cv_hal_filterInit ovx_hal_filterInit

modules/imgproc/include/opencv2/imgproc/hal/hal.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ CV_EXPORTS void warpAffine(int src_type,
108108
uchar * dst_data, size_t dst_step, int dst_width, int dst_height,
109109
const double M[6], int interpolation, int borderType, const double borderValue[4]);
110110

111-
CV_EXPORTS void warpPerspectve(int src_type,
111+
CV_EXPORTS void warpPerspective(int src_type,
112112
const uchar * src_data, size_t src_step, int src_width, int src_height,
113113
uchar * dst_data, size_t dst_step, int dst_width, int dst_height,
114114
const double M[9], int interpolation, int borderType, const double borderValue[4]);

modules/imgproc/src/hal_replacement.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ inline int hal_ni_resize(int src_type, const uchar *src_data, size_t src_step, i
271271
*/
272272
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; }
273273
/**
274-
@brief hal_warpPerspectve
274+
@brief hal_warpPerspective
275275
@param src_type source and destination image type
276276
@param src_data source image data
277277
@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
287287
@param borderValue values to use for CV_HAL_BORDER_CONSTANT mode
288288
@sa cv::warpPerspective, cv::hal::warpPerspective
289289
*/
290-
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; }
290+
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; }
291291

292292
//! @cond IGNORED
293293
#define cv_hal_resize hal_ni_resize
294294
#define cv_hal_warpAffine hal_ni_warpAffine
295-
#define cv_hal_warpPerspective hal_ni_warpPerspectve
295+
#define cv_hal_warpPerspective hal_ni_warpPerspective
296296
//! @endcond
297297

298298
/**

modules/imgproc/src/imgwarp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2878,7 +2878,7 @@ class IPPWarpPerspectiveInvoker :
28782878

28792879
namespace hal {
28802880

2881-
void warpPerspectve(int src_type,
2881+
void warpPerspective(int src_type,
28822882
const uchar * src_data, size_t src_step, int src_width, int src_height,
28832883
uchar * dst_data, size_t dst_step, int dst_width, int dst_height,
28842884
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,
29892989
if( !(flags & WARP_INVERSE_MAP) )
29902990
invert(matM, matM);
29912991

2992-
hal::warpPerspectve(src.type(), src.data, src.step, src.cols, src.rows, dst.data, dst.step, dst.cols, dst.rows,
2992+
hal::warpPerspective(src.type(), src.data, src.step, src.cols, src.rows, dst.data, dst.step, dst.cols, dst.rows,
29932993
matM.ptr<double>(), interpolation, borderType, borderValue.val);
29942994
}
29952995

0 commit comments

Comments
 (0)