External Email. Use Caution.
the way that pops to mind is to use matlab
a = MRIread('aparc.250+2mm.nii.gz');
u = unique(a.vol(:));
length(u) will give you the number of unique segmentation number
(including 0)
On 5/22/19 5:54 PM, Winkelbeiner, Stephanie A wrote:
>
> External Email - Use Caution
>
> Hi Freesurfers,
>
> I'm struggling to find out if the number of parcels during a process
> of transformations from annot -> nii.gz has changed.
>
> I extended the parcels from 500.annot 2mm into the WM with
> mri_aparc2aseg \
> --s s001 \
> --annot 500.aparc \
> --wmparc-dmax 2 \
> --labelwm \
> --hypo-as-wm \
> --o mri/aparc.250+2mm.nii.gz
> and coregistered the resulting file to the DWI image using bbregister
> and mri_vol2vol.
>
> Using afni's probilistic tractography pipeline, I end up with more
> parcels than I thought I had.
>
> Is there a way to check the number of parcels after extension into the
> WM (mri_aparc2aseg)?
>
> I would be extremely grateful for some insight!
> Thanks,
> Stephanie
>
> The information contained in this electronic e-mail transmission and
> any attachments are intended only for the use of the individual or
> entity to whom or to which it is addressed, and may contain
> information that is privileged, confidential and exempt from
> disclosure under applicable law. If the reader of this communication
> is not the intended recipient, or the employee or agent responsible
> for delivering this communication to the intended recipient, you are
> hereby notified that any dissemination, distribution, copying or
> disclosure of this communication and any attachment is strictly
> prohibited. If you have received this transmission in error, please
> notify the sender immediately by telephone and electronic mail, and
> delete the original communication and any attachment from any
> computer, server or other electronic recording or storage device or
> medium. Receipt by anyone other than the intended recipient is not a
> waiver of any attorney-client, physician-patient or other privilege.
>
> _______________________________________________
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
>
https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.nmr.mgh.harvard.edu_mailman_listinfo_freesurfer&d=DwIF-g&c=vq5m7Kktb9l80A_wDJ5D-g&r=ycrYUdKGMCyTnsIy5TvOdBwS8HE5ZtmVMesLULEN8xE&m=RaDwlZ71jy3ZsqKlsgfhrWtAuQJViJdfmX0xMPNwEGE&s=s6zGVk54CyW1DV87o1w49SAz37WPNprkXgXRLytPUEA&e=
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.nmr.mgh.harvard.edu_mailman_listinfo_freesurfer&d=DwIF-g&c=vq5m7Kktb9l80A_wDJ5D-g&r=ycrYUdKGMCyTnsIy5TvOdBwS8HE5ZtmVMesLULEN8xE&m=RaDwlZ71jy3ZsqKlsgfhrWtAuQJViJdfmX0xMPNwEGE&s=s6zGVk54CyW1DV87o1w49SAz37WPNprkXgXRLytPUEA&e=