We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d5d2a0a + 2f315e1 commit 7c9c1c9Copy full SHA for 7c9c1c9
1 file changed
src/highdicom/legacy/sop.py
@@ -68,6 +68,14 @@ def _convert_legacy_to_enhanced(
68
'No data sets of single-frame legacy images provided.'
69
) from e
70
71
+ if not all(
72
+ ds.PhotometricInterpretation == 'MONOCHROME2' for ds in sf_datasets
73
+ ):
74
+ raise ValueError(
75
+ "Legacy datasets must have a photometric interpretation of "
76
+ "'MONOCHROME2'."
77
+ )
78
+
79
if mf_dataset is None:
80
mf_dataset = Dataset()
81
0 commit comments