Skip to content
Permalink
Browse files

fixed bug in blur-/convolutionOperator, transposed and non-transposed…

… version were switched
  • Loading branch information...
LarsHaalck committed Feb 5, 2018
1 parent 2a2cdf2 commit 1bc972e09ec8bae4041e78c8dfcd1e02a416aad0
Showing with 4 additions and 4 deletions.
  1. +2 −2 operators/blurOperator.m
  2. +2 −2 operators/convolutionOperator.m
@@ -45,10 +45,10 @@

function result = mtimes(obj,vector)
if (obj.transposed)
result = ifftn(fftn( reshape(vector,obj.inputDimension) ) .* obj.fftFilter);
result = ifftn(fftn( reshape(vector,obj.inputDimension) ) .* obj.fftFilterC);
result = result(:);
else
result = ifftn(fftn( reshape(vector,obj.inputDimension) ) .* obj.fftFilterC);
result = ifftn(fftn( reshape(vector,obj.inputDimension) ) .* obj.fftFilter);
result = result(:);
end

@@ -28,10 +28,10 @@

function result = mtimes(obj,vector)
if (obj.transposed)
result = ifftn(fftn(reshape(vector,obj.inputDimension), obj.inputDimension) .* obj.fftFilter);
result = ifftn(fftn(reshape(vector,obj.inputDimension), obj.inputDimension) .* obj.fftFilterC);
result = result(:);
else
result = ifftn(fftn(reshape(vector,obj.inputDimension), obj.inputDimension) .* obj.fftFilterC);
result = ifftn(fftn(reshape(vector,obj.inputDimension), obj.inputDimension) .* obj.fftFilter);
result = result(:);
end

0 comments on commit 1bc972e

Please sign in to comment.
You can’t perform that action at this time.