Skip to content
Snippets Groups Projects
Commit 1a3f4a4e authored by Wolfgang Ludwig's avatar Wolfgang Ludwig
Browse files

NaN gives errors in gtSegmentDiffractionBlobs (single Threshold)

parent 859d6613
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ function [img, med_value, info] = gtReadAndThreshold(ndx, parameters, thr_single
if (isfield(seg, 'background_subtract') && (seg.background_subtract == true))
%subtract the median of the background
%taken from gtFullStatCondor - thanks Peter!
nullbb = NaN(seg.bbox(4), seg.bbox(3));
nullbb = zeros(seg.bbox(4), seg.bbox(3));
imn = gtPlaceSubImage2(nullbb, im_full, seg.bbox(1), seg.bbox(2));
% can use a sub set of pixel to calculate the median, it's faster
......
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