Mercurial > hg > octave-image
changeset 666:6a6fd68f0aae
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 | c095f8c31237 |
children | 8b7cd6e22704 |
files | inst/fftconv2.m |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/inst/fftconv2.m +++ b/inst/fftconv2.m @@ -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)