Datasets:
Commit
·
279b335
1
Parent(s):
26d95df
update
Browse files- Landmarks-fig.zip +2 -2
- get_dataset.py +11 -6
Landmarks-fig.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:784b7f7a95bdcde927b1df172ae7a792334544271f4826542856c826b07b8523
|
3 |
+
size 1309837392
|
get_dataset.py
CHANGED
@@ -224,18 +224,23 @@ def plot_slice_with_landmarks(nii_path: str, json_path: str, fig_path: str = Non
|
|
224 |
facecolors="#18A727",
|
225 |
edgecolors="black",
|
226 |
marker="o",
|
227 |
-
s=
|
228 |
-
linewidth=1,
|
229 |
)
|
230 |
for i, (x, y) in enumerate(zip(x_coords, y_coords), 1):
|
231 |
plt.annotate(
|
232 |
-
f"{i}",
|
|
|
|
|
|
|
|
|
|
|
233 |
)
|
234 |
|
235 |
# Configure plot appearance
|
236 |
-
plt.
|
237 |
-
plt.
|
238 |
-
plt.
|
239 |
|
240 |
# Save or display the plot
|
241 |
if fig_path:
|
|
|
224 |
facecolors="#18A727",
|
225 |
edgecolors="black",
|
226 |
marker="o",
|
227 |
+
s=80,
|
228 |
+
linewidth=1.5,
|
229 |
)
|
230 |
for i, (x, y) in enumerate(zip(x_coords, y_coords), 1):
|
231 |
plt.annotate(
|
232 |
+
f"$\\mathbf{{{i}}}$",
|
233 |
+
(x, y),
|
234 |
+
xytext=(2, 2),
|
235 |
+
textcoords="offset points",
|
236 |
+
color="#FE9100",
|
237 |
+
fontsize=14,
|
238 |
)
|
239 |
|
240 |
# Configure plot appearance
|
241 |
+
plt.xlabel("Anterior →", fontsize=14)
|
242 |
+
plt.ylabel("Superior →", fontsize=14)
|
243 |
+
plt.margins(0)
|
244 |
|
245 |
# Save or display the plot
|
246 |
if fig_path:
|