mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 21:23:31 +08:00
add HAL for threshold
This commit is contained in:
parent
11ddb9332c
commit
c95bc0c7fd
@ -647,6 +647,21 @@ inline int hal_ni_adaptiveThreshold(const uchar* src_data, size_t src_step, ucha
|
|||||||
#define cv_hal_adaptiveThreshold hal_ni_adaptiveThreshold
|
#define cv_hal_adaptiveThreshold hal_ni_adaptiveThreshold
|
||||||
//! @endcond
|
//! @endcond
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief Calculates fixed-level threshold to each array element
|
||||||
|
@param src_data,src_step Source image
|
||||||
|
@param dst_data,dst_step Destination image
|
||||||
|
@param width,height Source image dimensions
|
||||||
|
@param thresh Threshold value
|
||||||
|
@param maxValue Value assigned to the pixels for which the condition is satisfied
|
||||||
|
@param thresholdType Thresholding type
|
||||||
|
*/
|
||||||
|
inline int hal_ni_thresholdBin8u(const uchar* src_data, size_t src_step, uchar* dst_data, size_t dst_step, int width, int height, double thresh, double maxValue, int thresholdType) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
|
||||||
|
|
||||||
|
//! @cond IGNORED
|
||||||
|
#define cv_hal_thresholdBin8u hal_ni_thresholdBin8u
|
||||||
|
//! @endcond
|
||||||
|
|
||||||
//! @}
|
//! @}
|
||||||
|
|
||||||
#if defined __GNUC__
|
#if defined __GNUC__
|
||||||
|
@ -141,6 +141,9 @@ thresh_8u( const Mat& _src, Mat& _dst, uchar thresh, uchar maxval, int type )
|
|||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
CALL_HAL(thresholdBin, cv_hal_thresholdBin8u, _src.data, src_step, _dst.data, dst_step, roi.width, roi.height,
|
||||||
|
thresh, maxval, type);
|
||||||
|
|
||||||
#if defined(HAVE_IPP)
|
#if defined(HAVE_IPP)
|
||||||
CV_IPP_CHECK()
|
CV_IPP_CHECK()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user