mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.1 KiB
71 lines
2.1 KiB
// This file is part of OpenCV project. |
|
// It is subject to the license terms in the LICENSE file found in the top-level directory |
|
// of this distribution and at http://opencv.org/license.html. |
|
|
|
#ifndef OPENCV_NDSRVP_IMGPROC_HPP |
|
#define OPENCV_NDSRVP_IMGPROC_HPP |
|
|
|
namespace cv { |
|
|
|
// ################ remap ################ |
|
|
|
void remap(InputArray _src, OutputArray _dst, |
|
InputArray _map1, InputArray _map2, |
|
int interpolation, int borderType, const Scalar& borderValue); |
|
|
|
namespace ndsrvp { |
|
|
|
enum InterpolationMasks { |
|
INTER_BITS = 5, |
|
INTER_BITS2 = INTER_BITS * 2, |
|
INTER_TAB_SIZE = 1 << INTER_BITS, |
|
INTER_TAB_SIZE2 = INTER_TAB_SIZE * INTER_TAB_SIZE |
|
}; |
|
|
|
// ################ integral ################ |
|
|
|
int integral(int depth, int sdepth, int sqdepth, |
|
const uchar* src, size_t _srcstep, |
|
uchar* sum, size_t _sumstep, |
|
uchar* sqsum, size_t, |
|
uchar* tilted, size_t, |
|
int width, int height, int cn); |
|
|
|
#undef cv_hal_integral |
|
#define cv_hal_integral (cv::ndsrvp::integral) |
|
|
|
// ################ warpAffine ################ |
|
|
|
int 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]); |
|
|
|
#undef cv_hal_warpAffine |
|
#define cv_hal_warpAffine (cv::ndsrvp::warpAffine) |
|
|
|
// ################ warpPerspective ################ |
|
|
|
int 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]); |
|
|
|
#undef cv_hal_warpPerspective |
|
#define cv_hal_warpPerspective (cv::ndsrvp::warpPerspective) |
|
|
|
// ################ threshold ################ |
|
|
|
int threshold(const uchar* src_data, size_t src_step, |
|
uchar* dst_data, size_t dst_step, |
|
int width, int height, int depth, int cn, |
|
double thresh, double maxValue, int thresholdType); |
|
|
|
#undef cv_hal_threshold |
|
#define cv_hal_threshold (cv::ndsrvp::threshold) |
|
|
|
} // namespace ndsrvp |
|
|
|
} // namespace cv |
|
|
|
#endif
|
|
|