Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
opencv 中是否有一个选项可以导出 x 和 y in 的第一个推导?
编辑mhnm 可能与 cvSobel?但是我必须如何设置 kernelSize?
问候
查看opencv 中的getDerivKernels函数。您需要将一个空的 Mat 传递给它以获取输出。
此矩阵的默认类型是 CV_32F,因此请确保您提供相同类型的 Mat 或将 ktype 更改为与您传递的输出矩阵的类型相同。
可以使用同一函数中的 ksize 选项更改内核的大小。