[#10059] Atlas labels are not integer type

Please log in

State: more information
Open
Date:
2022-03-26 22:57
Priority: more information
3
Submitted By:
Dianne Patterson (dpat)
Assigned To: more information
Nobody (None)
Hardware: 
None
Product: 
None
Operating System: 
None
Component: 
None
Version: 
None
Severity: 
None
Summary: more information
Atlas labels are not integer type

Detailed description

The label values are close to whole integers, but not quite there. You can easily set this by using integer as your output type:
e.g.,

fslmaths ArterialAtlas.nii ArterialAtlasInt.nii -odt int

fslmaths ArterialAtlas_level2.nii ArterialAtlas_level2_Int.nii -odt int

Response

Message

Date: 2022-03-27 18:15
Sender: Dianne Patterson

Thanks for the quick response.
-Dianne


Date: 2022-03-27 14:58
Sender: CHIN LIU

Hello Dr Dianne,

We saved images by nibabel in python. This might occur due to the floating precision in different software that you use to open them.  We like to save all the prob map. and other images in floating point, for future user's convenience.

As for labels images, we can provide images in integers format. Thanks for providing a approach here. 

Best,

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
MessageHello Dr Dianne,

We saved images by nibabel in python. The might occur due to the floating precision in different software that you use to open them.  We like to save all the prob map. and other images in floating point, for future user's convenience.

As for labels images, we can provide images in integers format. Thanks for providing a approach here. 

Best,
2022-03-27 19:45hubert_iu
New Message2022-03-27 18:15dpat
New Message2022-03-27 14:58hubert_iu