Skip to content
Snippets Groups Projects
Commit c4072237 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

added dilation to plotting

parent 23713285
No related branches found
No related tags found
No related merge requests found
......@@ -126,19 +126,22 @@ import matplotlib.pyplot as plt
fpath = "/home/alan/Documents/dev/skeletons/data/2021_11_01_01_Raf_00/2021_11_01_01_Raf_00/d1134002.h5"
riv = remoteImageViewer(fpath)
# pos = riv.get_tc(0)
out, img = riv.get_labeled_trap(93, list(range(0, 30)))
out = out.astype(float)
out, img = riv.get_labeled_trap(9, list(range(0, 30)))
out_bak = out
out = dilation(out).astype(float)
out[out == 0] = np.nan
plt.imshow(
np.concatenate(np.array_split(img, 6, axis=1)), interpolation=None, cmap="Greys_r"
np.concatenate(np.array_split(img, 6, axis=1)),
interpolation=None,
cmap="Greys_r",
)
plt.imshow(
np.concatenate(np.array_split(out, 6, axis=1)), cmap="Set1", interpolation=None
np.concatenate(np.array_split(out, 6, axis=1)),
cmap="Set1",
interpolation=None,
)
plt.show()
plt.imshow()
concat = lambda a: np.concatenate([x for x in a])
add = lambda a: np.sum(a, axis=0)
# plt.imshow(add(roll(tmp[0], 10), np.roll(roll(tmp[1], 11), 6, axis=0)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment