AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
October 20, 2022 02:19PM
You can also get a list of the unique output values in a table
3dRank -prefix testrank -input myatlas_or_roi_dset.nii.gz
or
3dmerge -1rank -prefix testrankmerge myatlas_or_roi_dset.nii.gz

cat testrank.rankmap.1D
#Rank Map (361 unique values)
#Col. 0: Rank
#Col. 1: Input Dset Value
0 0
1 1
2 2
3 3
4 4
...
360 1180


You can also loop in a script across individual values in the range from min to max and count the number of voxels with 3dBrickStat.



Edited 1 time(s). Last edit at 10/20/2022 03:28PM by Daniel Glen.
Subject Author Posted

unique values in an (int) dataset

Colm Connolly October 20, 2022 11:24AM

Re: unique values in an (int) dataset

ptaylor October 20, 2022 12:49PM

Re: unique values in an (int) dataset

Daniel Glen October 20, 2022 02:19PM

Re: unique values in an (int) dataset

Colm Connolly October 26, 2022 09:05AM