我正在尝试使用HAL函数与OpenCV进行2D卷积。
我知道我可以通过使用函数实例化Filter2D对象来执行此操作
cv::hal::Filter2D::create(uchar *kernel_data, size_t kernel_step, int kernel_type, int kernel_width, int kernel_height, int max_width, int max_height, int stype, int dtype, int borderType, double delta, int anchor_x, int anchor_y, bool isSubmatrix, bool isInplace);
然后使用功能
cv::hal::Filter2D::apply(...);
create
函数有15个参数。到目前为止,除了参数名称和类型之外,我还没有找到关于它们的任何文档。这远远不够。
我在哪里可以获得更好的信息?
答案 0 :(得分:0)
我能够找到的关于hall::filter2d
的唯一文档是here。这不是确切的Filter2D
,但我认为参数简短的说明可能会对您有所帮助。
/**
@brief hal_filterInit
@param context double pointer to user-defined context
@param kernel_data pointer to kernel data
@param kernel_step kernel step
@param kernel_type kernel type (CV_8U, ...)
@param kernel_width kernel width
@param kernel_height kernel height
@param max_width max possible image width, can be used to allocate working buffers
@param max_height max possible image height
@param src_type source image type
@param dst_type destination image type
@param borderType border processing mode (CV_HAL_BORDER_REFLECT, ...)
@param delta added to pixel values
@param anchor_x relative X position of center point within the kernel
@param anchor_y relative Y position of center point within the kernel
@param allowSubmatrix indicates whether the submatrices will be allowed as source image
@param allowInplace indicates whether the inplace operation will be possible
@sa cv::filter2D, cv::hal::Filter2D
*/
inline int hal_ni_filterInit(cvhalFilter2D **context, uchar *kernel_data, size_t kernel_step, int kernel_type, int kernel_width, int kernel_height, int max_width, int max_height, int src_type, int dst_type, int borderType, double delta, int anchor_x, int anchor_y, bool allowSubmatrix, bool allowInplace) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }