Skip to content

Commit d1dd9e6

Browse files
committed
plots update (lighter blue)
1 parent 16b211d commit d1dd9e6

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
CORR_FISSURE_LABEL_DEFAULT_TS = "/share/data_rechenknecht03_2/students/kaftan/FissureSegmentation/fissure-segmentation/results/corresponding_points_ts/fissures/simple/labels.npz"
1818
CLASSES = {1: 'LOF', 2: 'ROF', 3: 'RHF'}
19-
CLASS_COLORS = ('r', matplotlib.cm.get_cmap('Set1').colors[2], 'b')
19+
CLASS_COLORS = ('r', matplotlib.cm.get_cmap('Set1').colors[2], 'dodgerblue')

keypoint_plots.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ def plot_keypoints(image, mode, patid, slice_num, slice_dim=1, spacing=1.5, crop
4040
ax.scatter(pts_slice[:, pts_index[0]], pts_slice[:, pts_index[1]], marker='+', s=150, c='orangered', linewidths=2)
4141
save_fig(fig, result_folder, f'{mode}_keypoints_{patid}_slice{slice_num}', pdf=False)
4242

43+
fig = plt.figure(figsize=textwidth_to_figsize(2, aspect=img_slice.shape[0] / img_slice.shape[1]))
44+
ax = fig.gca()
45+
ax.set_axis_off()
46+
ax.imshow(img_slice, cmap='gray')
47+
save_fig(fig, result_folder, f'{patid}_slice{slice_num}', pdf=False)
48+
4349

4450
def plot_all(patid='s0070'):
4551
ds = ImageDataset(IMG_DIR_TS)
@@ -127,6 +133,6 @@ def plot_enhancement(patid='s0070'):
127133

128134
if __name__ == '__main__':
129135
KP_MODES.remove('noisy')
130-
# plot_all()
131-
# plot_enhancement()
132-
plot_bad_example_enhancement()
136+
plot_all()
137+
# # plot_enhancement()
138+
# plot_bad_example_enhancement()

qualitative.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,5 @@ def comparative_figures(patid='s0070'):
159159

160160

161161
if __name__ == '__main__':
162-
# comparative_figures()
163162
kp_comparison_figure(ae=True)
163+
comparative_figures()

0 commit comments

Comments
 (0)