openCV学习之accumulateWeighted方法

    xiaoxiao2026-08-25  0

    官方文档解释如下。 用于目标跟踪中的背景更新,然而在是这个方法的时候出现了错误: OpenCV Error: Assertion failed (func != 0) in accumulateWeighted,.。。。 这是应为方法参数src,dst的depth是有限制的,

    src.depth() == CV_8U && dst.depth() == CV_32F src.depth() == CV_8U && dst.depth() == CV_64F src.depth() == CV_16U && dst.depth() == CV_32F src.depth() == CV_16U && dst.depth() == CV_64F src.depth() == CV_32F && dst.depth() == CV_32F src.depth() == CV_32F && dst.depth() == CV_64F src.depth() == CV_64F && dst.depth() == CV_64F

    需要在函数使用之前,先转换图片类型。

    转载请注明原文地址: https://ju.6miu.com/read-1311548.html
    最新回复(0)