Skip to content

Commit

Permalink
fix bug introduced with 9e524e2
Browse files Browse the repository at this point in the history
  • Loading branch information
epnev committed Aug 22, 2019
1 parent a02d0dd commit 49b7884
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion register_ROIs.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
options_mc.correct_bidir = false;
if align_flag
options_mc.upd_template = false;
options_mc.boundary = 'zero';
options_mc.boundary = 'copy';
[~,global_shift] = normcorre(template2,options_mc,template1);
%global_shift(1).diff = 0*global_shift(1).diff;

Expand Down
8 changes: 4 additions & 4 deletions utilities/determine_search_location.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@
else
d33 = min((max_size/2)^2,max((min_size/2)^2,D(3,3)));
ind_t = sqrt((cor*V(:,1)).^2/d11 + (cor*V(:,2)).^2/d22 + (cor*V(:,3)).^2/d33)<=dist; % search indeces for each component
end
end
ind_temp = sparse(idx,1,ind_t,d,1);
IND(:,i) = logical(ind_temp);
case 'dilate'
A_temp = imdilate(reshape(full(A(:,i)), [d1,d2,d3]), expandCore);
ind_t = A_temp(:)>0;
IND(:,i) = A_temp(:)>0;
end
ind_temp = sparse(idx,1,ind_t,d,1);
IND(:,i) = logical(ind_temp);
end
end

Expand Down

0 comments on commit 49b7884

Please sign in to comment.