Skip to content

Commit fbc9729

Browse files
committed
Adjusted bilinear histogram rendering image space for consistency
1 parent db5edb8 commit fbc9729

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

funcs/getDcorrLocalMax.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
[A,ind] = max(d);
5050
elseif ind == 1
5151
break;
52-
elseif (A - min(d(ind:end))) >= 0.001
52+
elseif (A - min(d(ind:end))) >= 0.0005
5353
break;
5454
else
5555
d(end) = [];

funcs/smlmHist.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
% FOV should be in same units as data and pps
1212
%
1313
% Outputs:
14-
% im Rescaled value
14+
% im Bilinear histogram rendered image
1515
%
1616
% ---------------------------------------
1717
% Adrien Descloux - adrien.descloux@epfl.ch,
@@ -39,9 +39,9 @@
3939
pps = FOVx/Nx;
4040
FOVy = pps*Ny;
4141

42-
% map data in image space
43-
data(:,1) = linmap(data(:,1),0,FOVx,1,Nx);
44-
data(:,2) = linmap(data(:,2),0,FOVy,1,Ny);
42+
% map data in Matlab image space
43+
data(:,1) = linmap(data(:,1),0,FOVx,0.5,Nx+0.5);
44+
data(:,2) = linmap(data(:,2),0,FOVy,0.5,Ny+0.5);
4545
% filter data out of the range [0, FOV]
4646
x0 = floor(data(:,1)); y0 = floor(data(:,2));
4747
map = x0 < Nx & x0 > 0 & y0 < Ny & y0 > 0;

0 commit comments

Comments
 (0)