Skip to content

Commit 49b7884

Browse files
committed
fix bug introduced with 9e524e2
1 parent a02d0dd commit 49b7884

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

register_ROIs.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
options_mc.correct_bidir = false;
5959
if align_flag
6060
options_mc.upd_template = false;
61-
options_mc.boundary = 'zero';
61+
options_mc.boundary = 'copy';
6262
[~,global_shift] = normcorre(template2,options_mc,template1);
6363
%global_shift(1).diff = 0*global_shift(1).diff;
6464

utilities/determine_search_location.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@
9393
else
9494
d33 = min((max_size/2)^2,max((min_size/2)^2,D(3,3)));
9595
ind_t = sqrt((cor*V(:,1)).^2/d11 + (cor*V(:,2)).^2/d22 + (cor*V(:,3)).^2/d33)<=dist; % search indeces for each component
96-
end
96+
end
97+
ind_temp = sparse(idx,1,ind_t,d,1);
98+
IND(:,i) = logical(ind_temp);
9799
case 'dilate'
98100
A_temp = imdilate(reshape(full(A(:,i)), [d1,d2,d3]), expandCore);
99-
ind_t = A_temp(:)>0;
101+
IND(:,i) = A_temp(:)>0;
100102
end
101-
ind_temp = sparse(idx,1,ind_t,d,1);
102-
IND(:,i) = logical(ind_temp);
103103
end
104104
end
105105

0 commit comments

Comments
 (0)