Skip to content
Snippets Groups Projects
Commit 843fe594 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

ESF2LSF: fixed negativity bug

parent f20928b0
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ function lsf_line = gtESF2LSF(img, varargin) ...@@ -109,7 +109,7 @@ function lsf_line = gtESF2LSF(img, varargin)
lsf(1:lsf_edge) = flip(lsf(lsf_edge+2:end)); lsf(1:lsf_edge) = flip(lsf(lsf_edge+2:end));
end end
end end
lsf(lsf < 0) = 0; % lsf(lsf < 0) = 0;
if (~conf.keep_oversampling) if (~conf.keep_oversampling)
lsf = reshape(lsf, conf.oversampling, conf.size); lsf = reshape(lsf, conf.oversampling, conf.size);
lsf = sum(lsf, 1); lsf = sum(lsf, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment