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

Rupert Brooks rupe.brooks at gmail.com
Tue Oct 16 09:49:50 EDT 2007


For anyone that googles this later, i will just point out that
mincextract takes input in dimension order.  So its not

-start xpixel,ypixel,zpixel

they have to be in the dimension order that appears in your file,
which in my case was

-start zpixel,ypixel,xpixel.

Just trying to save the next person the puzzlement :-)
Rupert

On 10/16/07, Rupert Brooks <rupe.brooks at gmail.com> wrote:
> Works like a charm,
>
> thanks
> Rupert
>
> On 10/16/07, D. Louis Collins <louis.collins at mcgill.ca> wrote:
> > 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
> >
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> >
>
>
> --
> --------------------------------------------------------------
> Rupert Brooks
> McGill Centre for Intelligent Machines (www.cim.mcgill.ca)
> Ph.D Student, Electrical and Computer Engineering
> http://www.cyberus.ca/~rbrooks
>


-- 
--------------------------------------------------------------
Rupert Brooks
McGill Centre for Intelligent Machines (www.cim.mcgill.ca)
Ph.D Student, Electrical and Computer Engineering
http://www.cyberus.ca/~rbrooks


More information about the MINC-users mailing list