Skip to content

Commit 9e524e2

Browse files
authored
Update determine_search_location.m
explore full FOV when using `dilate` method for computing search location #100 thanks to @wenxuanliang
1 parent f2eb9cb commit 9e524e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utilities/determine_search_location.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
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
9696
end
9797
case 'dilate'
98-
A_temp = imdilate(reshape(full(A(idx,i)),siz_p),expandCore);
98+
A_temp = imdilate(reshape(full(A(:,i)), [d1,d2,d3]), expandCore);
9999
ind_t = A_temp(:)>0;
100100
end
101101
ind_temp = sparse(idx,1,ind_t,d,1);
@@ -104,4 +104,4 @@
104104
end
105105

106106

107-
end
107+
end

0 commit comments

Comments
 (0)