Mercurial > forge
changeset 11219:2427efc9c2fc octave-forge
fftconv2: mentioned being broken when using 2 vectors for the convultion of 1 matrix
author | carandraug |
---|---|
date | Thu, 08 Nov 2012 16:12:00 +0000 |
parents | 5e36bb3c4688 |
children | f071ba771468 |
files | main/image/inst/fftconv2.m |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main/image/inst/fftconv2.m Thu Nov 08 15:54:10 2012 +0000 +++ b/main/image/inst/fftconv2.m Thu Nov 08 16:12:00 2012 +0000 @@ -33,6 +33,8 @@ ## @end deftypefn function X = fftconv2(varargin) + ## FIXME seems to not work when using a vector for the convolution in the row + ## direction and another in the column direction (fftconv2 (v1, v2, m) if (nargin < 2) print_usage; endif @@ -104,6 +106,7 @@ %!assert(norm(fftconv2(b,a,'valid')-conv2(b,a,'valid')), 0, 1e6*eps) %!# usage: fftconv2(v1, v2, a[, shape]) +%!##FIXME this usage seems to be broken... %!shared x,y,a %! x = 1:4; y = 4:-1:1; a = repmat(1:10, 5); %!assert(norm(fftconv2(x,y,a)-conv2(x,y,a)), 0, 1e6*eps)