Commit e355c173 authored by j.schaeper's avatar j.schaeper
Browse files

fix bug in phaserec_holotie.m: use (1,1) instead of (0,0) to access first entry in matrix

parent 353e246c
......@@ -154,10 +154,10 @@ laplaceKernel = -fftfreqNormSq([ny, nx]);
switch (settings.reg_type)
case 'none'
% avoid division by 0
laplaceKernel(0,0) = 1;
laplaceKernel(1,1) = 1;
invLaplaceFilt = 1 ./ laplaceKernel;
% set zero frequency (singularity) to 0
invLaplaceFilt(0,0) = 0;
invLaplaceFilt(1,1) = 0;
case 'mba'
invLaplaceFilt = -1 ./ (-laplaceKernel + settings.reg_alpha);
case 'tikhonov'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment