Loading a .bmp sequence from directory as a LabelMap

Windy
Wed, 17 Aug 2022 10:27:24 +0000
Support

Operating system: Windows 10 Education
Slicer version: 5.0.2

Expected behavior:
I have a set of segmented slices in a directory. It has 2 classes (0 and 255). The image format is .bmp. I want to load them as a segmentation.

Actual behavior:
I was following the official docs. However, when I load as a volume and select LabelMap it gives the following error.

UpdateFromSeries: Unsupported number of components: 1 != 3

vtkMRMLVolumeArchetypeStorageNode::ReadDataInternal: Cannot read file as a volume of type LabelMapVolume [fullName = D:/roi_1_resampled/labelled/masks/dilate_roi_1_resampled_0476.bmp]: FileFormatError. Number of files listed in the node = 0. File reader says it was able to read 816 files. File reader used the archetype file name of D:/roi_1_resampled/labelled/masks/dilate_roi_1_resampled_0476.bmp [reader 0th file name = D:/roi_1_resampled/labelled/masks/dilate_roi_1_resampled_0476.bmp].


vtkMRMLStorageNode::ReadData: Failed to read node dilate_roi_1_resampled_0476_2 (vtkMRMLLabelMapVolumeNode1) from filename='D:/roi_1_resampled/labelled/masks/dilate_roi_1_resampled_0476.bmp'

9 posts - 3 participants