We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1654cc1 commit 2f315e1Copy full SHA for 2f315e1
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