Skip to content
Snippets Groups Projects

Boz fix3

Merged Loïc Le Guyader requested to merge boz-fix3 into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -346,9 +346,9 @@ def find_rois(data_mean, threshold):
rois: dictionnary of rois
"""
# compute vertical and horizontal projection
pX = data_mean.sum(axis=0)
pX = data_mean.mean(axis=0)
pX = pX[:256] # half the ladder since there is a gap in the middle
pY = data_mean.sum(axis=1)
pY = data_mean.mean(axis=1)
# along X
lowX = int(np.argmax(pX[:64] > threshold)) # 1st occurrence returned
Loading