OpenCV  4.1.0
Open Source Computer Vision
Macros | Functions
features2d/src/hal_replacement.hpp File Reference
#include "opencv2/core/hal/interface.h"
#include "custom_hal.hpp"

Macros

#define CALL_HAL(name, fun,...)
 
#define CALL_HAL_RET(name, fun, retval,...)
 
#define cv_hal_FAST   hal_ni_FAST
 
#define cv_hal_FAST_dense   hal_ni_FAST_dense
 
#define cv_hal_FAST_NMS   hal_ni_FAST_NMS
 

Functions

int hal_ni_FAST (const uchar *src_data, size_t src_step, int width, int height, uchar *keypoints_data, size_t *keypoints_count, int threshold, bool nonmax_suppression, inttype)
 Detects corners using the FAST algorithm.
 
int hal_ni_FAST_dense (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height, cv::FastFeatureDetector::DetectorType type)
 Detects corners using the FAST algorithm, returns mask.
 
int hal_ni_FAST_NMS (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int width, int height)
 Non-maximum suppression for FAST_9_16.
 

Macro Definition Documentation

#define CALL_HAL (   name,
  fun,
  ... 
)
Value:
{ \
int res = __CV_EXPAND(fun(__VA_ARGS__)); \
if (res == CV_HAL_ERROR_OK) \
return; \
else if (res != CV_HAL_ERROR_NOT_IMPLEMENTED) \
("HAL implementation " CVAUX_STR(name) " ==> " CVAUX_STR(fun) " returned %d (0x%08x)", res, res)); \
}
#define CALL_HAL_RET (   name,
  fun,
  retval,
  ... 
)
Value:
int res = __CV_EXPAND(fun(__VA_ARGS__, &retval)); \
if (res == CV_HAL_ERROR_OK) \
return retval; \
else if (res != CV_HAL_ERROR_NOT_IMPLEMENTED) \
("HAL implementation " CVAUX_STR(name) " ==> " CVAUX_STR(fun) " returned %d (0x%08x)", res, res));
#define cv_hal_FAST   hal_ni_FAST
#define cv_hal_FAST_dense   hal_ni_FAST_dense
#define cv_hal_FAST_NMS   hal_ni_FAST_NMS