You can use
mri_binarize --i seg.mgz --match MatchID --binval MatchId --o mask.MatchID.mgz


On 4/7/2021 9:05 AM, miracle ozzoude wrote:

        External Email - Use Caution        

Hello Doug, 

Thanks for the reply. 

I've a parcellation of the gm and wm with different label ids corresponding to different colours. I did like to extract a non-binarised wm parcellation that retains the white matter label ids. 

mri_extract_label and mri_binarize don't keep the different colours. 

Is there a freesurfer command to achieve this?
Many thanks

On Tue, Apr 6, 2021 at 7:15 PM miracle ozzoude <miracooloz@gmail.com> wrote:
image1.png
image2.png
Hello Doug, 

Thanks for the reply. 

I've a parcellation of the gm and wm with different label ids (see screenshot 1). I did like to extract a non-binarised wm to look like screenshot 2. 

mri_extract_label and mri_binarize don't keep the different colours. 

Is there a freesurfer command to achieve this?


On Tue, Apr 6, 2021 at 2:07 PM miracle ozzoude <miracooloz@gmail.com> wrote:
Hello Doug, 

Thanks for the reply. 

I've a parcellation of the gm and wm with different label ids (see screenshot 1). I did like to extract a non-binarised wm to look like screenshot 2. 

mri_extract_label and mri_binarize don't keep the different colours. 

Is there a freesurfer command to achieve this?

Many thanks
image.png
image.png

On Tue, Apr 6, 2021 at 12:07 PM miracle ozzoude <miracooloz@gmail.com> wrote:
Hello Doug, 

Thanks for the reply. 

I've a parcellation of the gm and wm with different label ids (see screenshot 1). I did like to extract a non-binarised wm to look like screenshot 2. 

mri_extract_label and mri_binarize don't keep the different colours. 

Is there a freesurfer command to achieve this?
image.png
image.png


On Thu, Apr 1, 2021 at 2:00 PM miracle ozzoude <miracooloz@gmail.com> wrote:
Hello Experts,

I did like to extract wm whilst retaining the label ids. I tried mri_extract_labels but it didn't work. 

Any help would be appreciated.

Many thanks,
Paul

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer