Skip to content

Commit 8c456b1

Browse files
committed
minor text fixes
1 parent 8f5194f commit 8c456b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peakfind2D/distanceFilter.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
for s = 1:npks
66

77
% Calculate proximity metric vector (each element is the squared
8-
% cartesian distance between the brightest pixels in the chosen blocks
8+
% Cartesian distance between the brightest pixels in the chosen blocks)
99
proxvec = (maxmat(:,1) - maxmat(s,1)).^2 + (maxmat(:,2) - maxmat(s,2)).^2;
1010
prind = find(proxvec < dist^2,1);
1111

12-
% Proximity elimination: if there are peaks very close by, the compare
12+
% Proximity elimination: if there are peaks very close by, then compare
1313
% the values of the two peaks and retain the biggest
1414
if prind(1) ~= s && imgmat(maxmat(s,1),maxmat(s,2)) > imgmat(maxmat(prind(1),1),maxmat(prind(1),2))
1515
maxmat(prind(1),:) = [0 0 0];

0 commit comments

Comments
 (0)