不完整的 OpenCV 文档
Incomplete OpenCV documentation
我正在尝试使用 HAL 函数与 OpenCV 执行二维卷积。
我知道我可以通过函数实例化一个 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 个参数。到目前为止,除了参数名称和类型之外,我还没有找到关于它们的任何文档。这远远不够。
在哪里可以获得更好的信息?
我能找到的关于 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; }
我正在尝试使用 HAL 函数与 OpenCV 执行二维卷积。
我知道我可以通过函数实例化一个 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 个参数。到目前为止,除了参数名称和类型之外,我还没有找到关于它们的任何文档。这远远不够。
在哪里可以获得更好的信息?
我能找到的关于 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; }