[MINC-users] getting a specific voxel value from a minc file

D. Louis Collins louis.collins at mcgill.ca
Tue Oct 16 09:06:21 EDT 2007


Rupert,

register (and Display) load in data as bytes.  if your original data  
was short, then the value will be truncated to the discrete range of  
a byte.

If you want a specific value, try:

	mincextract -start 10,20,30 -count 1,1,1 volume.mnc

By default, it will spit out the value of the voxel as a double.    
check the options for other possibilities.

-Louis

On Oct 16, 2007, at 8:49 AM, Rupert Brooks wrote:

> Hi,
>
> I really hope im not missing something too obvious here.. but im  
> stuck.
>
> In the process of checking some data importing, im trying to retrieve
> the actual value of a specific voxel in a minc file.  I am using
> register - i enter a specific world coordinate or voxel coordinate in
> the appropriate fields and read off the value stored there from the
> field below (beside the "Filter" button)
>
> According to my understanding, to do what i want, i should set the
> filter to "Nearest".
>
> Unfortunately the reported value seems off - it seems to be always
> filtered. In fact, no matter what i set the filter to, the value is
> the same.  The minc volume was created by hand, and contains only
> integer values.  Register is reporting values that are non integer.
>
> I'm using  the build of register from  here.
> http://packages.bic.mni.mcgill.ca/cygwin/
>
> So, my questions are - am i using the tool wrong?  Is there another,
> easier way to do this (A command line solution would be ideal)?  If i
> rebuild a newer version of register - no small project because i am on
> Windows - will this problem go away?
>
> Thanks
> Rupert B.
> -- 
> --------------------------------------------------------------
> Rupert Brooks
> McGill Centre for Intelligent Machines (www.cim.mcgill.ca)
> Ph.D Student, Electrical and Computer Engineering
> http://www.cyberus.ca/~rbrooks
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users



More information about the MINC-users mailing list