Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sjromuel
Masterarbeit
Commits
dad6bec6
Commit
dad6bec6
authored
Nov 23, 2020
by
sjromuel
Browse files
d
parent
5505b5b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
RobinNet/mrunetpred_gts.py
View file @
dad6bec6
...
...
@@ -179,6 +179,7 @@ def main():
if
npys3d
:
y_pred3d
=
np
.
flip
(
y_pred3d
)
#np.save(img_savepath + "P" + str(TP_num).zfill(2) + "_pred3D", y_pred3d)
np
.
save
(
"data/npy_thresh/"
+
"P"
+
str
(
TP_num
).
zfill
(
2
)
+
"_mr_ctunetpred.gipl"
,
y_pred3d
)
print
(
"ypred shape: "
,
np
.
shape
(
y_pred3d
))
...
...
RobinNet/tryOut.py
View file @
dad6bec6
...
...
@@ -10,11 +10,11 @@ from scipy import ndimage
from
datetime
import
datetime
img
=
np
.
load
(
"data/npy_thresh/P01_
mr_ctunetpred
.gipl.npy"
)
img
=
np
.
load
(
"data/npy_thresh/P01_
250_thresh
.gipl.npy"
)
print
(
np
.
shape
(
img
))
plt
.
imshow
(
img
[
10
,:,
:],
cmap
=
plt
.
cm
.
bone
)
plt
.
show
()
for
i
in
range
(
np
.
shape
(
img
)[
0
]):
plt
.
imshow
(
img
[
i
,:,
:],
cmap
=
plt
.
cm
.
bone
)
plt
.
show
()
'''mr_img = np.load("data/npy/P03_mr_T1.gipl.npy")
ct_img = np.load("data/npy/P03_mr_ctseg_gt.gipl.npy")
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment