Skip to content

Commit 4030454

Browse files
authored
fix RGB image grouping function (#56)
1 parent 3b6b5af commit 4030454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function groupMonochromeInstances(metadataArray) {
164164

165165
if (microscopyImage.SamplesPerPixel !== 1 &&
166166
(microscopyImage.PhotometricInterpretation === 'RGB' ||
167-
microscopyImage.PhotometricInterpretation === 'YBR_*')) {
167+
microscopyImage.PhotometricInterpretation.includes('YBR'))) {
168168
//this is a color channel
169169
const pathIdentifier = microscopyImage.OpticalPathSequence[0].OpticalPathIdentifier
170170
const colorImage = colorImages.find(colorImage => {

0 commit comments

Comments
 (0)