Skip to content

brainweb "index" values do not match #18

@KrisThielemans

Description

@KrisThielemans

the imported label image has different values than expected, leading to aroundFat, dura and marrow being empty

>>> import sirf.STIR
>>> im=sirf.STIR.ImageData('brainweb_labels.nii')
>>> arr=im.as_array()
>>> numpy.unique(arr)
array([  0.,  16.,  32.,  48.,  64.,  80.,  96., 112., 128., 145., 161., 177.], dtype=float32)
>>> import brainweb
>>> brainweb.Act.aroundFat
144
>>> brainweb.Act.dura
160
>>> brainweb.Act.marrow
176

It seems safer to use the 8bit valued images, in which case we wouldn't have this problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions