Skip to content
Snippets Groups Projects
Commit 4cf0b3ce authored by Niklas Bohn's avatar Niklas Bohn
Browse files

Fixed bug in assignment of segmentation labels array.

parent dd2d2c6e
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ def compute_labels(data, binning=0.1, disable_progressbars=False):
"""
n_bins = int((data.max() - data.min()) / binning)
bin_edges = np.histogram_bin_edges(data, bins=n_bins)
labels = np.zeros((data.shape()), dtype=int)
labels = np.zeros(data.shape, dtype=int)
for ii in tqdm(range(data.shape[0]), disable=disable_progressbars):
for jj in range(data.shape[1]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment