Skip to content
Snippets Groups Projects
Commit 32ecb7c7 authored by ac's avatar ac
Browse files

imPreprocess bug fix

parent 9d4ae29d
Branches
No related tags found
No related merge requests found
......@@ -23,11 +23,17 @@ else
bTubes = false;
end
if any(radii<0)
radii = abs(radii);
bBright = true;
else
bBright = false;
end
sigma = AX .* radii;
cudaTarget = getCudaTarget();
imf = HIP.LoG(im,sigma,cudaTarget);
if any(radii<0)
if bBright
% bright !
imf(imf>0) = 0;
imf = abs(imf);
......@@ -40,8 +46,8 @@ if bTubes
imf = fibermetric(imf);
end
imf = imf .* imregionalmax(imfm);
imOut = imfm;
imf = imf .* imregionalmax(imf);
4;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment