Much faster np approach
parent
006adb3112
commit
88e065fda0
6
main.py
6
main.py
|
@ -43,12 +43,8 @@ plt.show()
|
|||
plt.clf()
|
||||
|
||||
# Alle Helligkeitswerte der Lunge seperieren
|
||||
lungBrightness = []
|
||||
lungsArray1D = lungsArray.flatten()
|
||||
|
||||
for (ind, elem) in enumerate(lungsArray1D):
|
||||
if elem > 0:
|
||||
lungBrightness.append(thoraxArray1D[ind])
|
||||
lungBrightness = thoraxArray1D[lungsArray1D > 0]
|
||||
|
||||
# Histogram aller Helligkeitswerte in der Lunge
|
||||
plt.hist(lungBrightness, bins=100)
|
||||
|
|
Loading…
Reference in New Issue