出处:
1:cvFilter2D() 函数为opencv中c语言函数
2:filter2D()函数为opencv中c++函数
3:imfilter()函数为matlab版本函数
计算结果的异同:
2(c++)与3(matlab)该两种语言的计算结果是一样的;
1(c语言)与2,3的计算结果是不一样的。
==============================以下为cvcvFilter2D( )与MATLAB中imfilter()结果的对比==========================================
opencv中cvFilter2D( ) 函数与MATLAB中imfilter()函数计算出的结果是不一样的。
首先对于MATLAB中的函数 imfilter( )
function b = imfilter(varargin)
%IMFILTER N-D filtering of multidimensional images.
% B = IMFILTER(A,H) filters the multidimensional array A with the
% multidimensional filter H. A can be logical or it can be a
% nonsparse numeric array of any class and dimension. The result,
% B, has the same size and class as A.
%
% Each element of the output, B, is computed using double-precision
%