[Mristudio-users] Fiber Data Reading
Xin Li
xli16 at jhmi.edu
Thu Mar 10 11:59:41 EST 2011
hello,
You can send me emails about the registration of the tutorials.
Xin
----- Original Message -----
From: David McCoy <dmccoy at temple.edu>
Date: Thursday, March 10, 2011 10:57 am
Subject: Re: [Mristudio-users] Fiber Data Reading
To: "DTI Studio, ROI Editor, DiffeoMap Questions/Support" <mristudio-users at mristudio.org>
> Hello All,
>
> Does anyone know who I need to get in contact with to register for
> the March
> workshop?
>
> On Thu, Mar 10, 2011 at 3:14 AM, David Prakash <davidprakash at gmail.com>wrote:
>
> > Dear all
> >
> > I am trying to read the fiber data file using my own java code.
> > In the header I am able to get the sFiberFileTag as "FiberDat".
> >
> > Assuming fiber is stored as follows after the 128 bytes header:
> > int nFiberLength; // fiber length
> > unsigned char cReserved;
> > RGB_TRIPLE rgbFiberColor; // R-G-B, 3 bytes totally
> > int nSelectFiberStartPoint;
> > int nSelectFiberEndPoint;
> > XYZ_TRIPLE xyzFiberCoordinate[nFiberLength]; //x-y-z
> >
> > Can I say that there are nFiberNr fibers?
> > For the first fiber data, I tried to read XYZ_TRIPLE data nFiberLength
> > times
> > but some how get EOF exception half way.
> >
> > I got a value of 704643132 for nFiberNr.
> > These are the values for the first fiber:
> >
> > nFiberLength: 922746880
> > cReserved: 1
> > RGB_TRIPLE.r: 221
> > RGB_TRIPLE.g: 138
> > RGB_TRIPLE.b: 9
> > nSelectFiberStartPoint: 0
> > nSelectFiberEndPoint: 922746880
> >
> > I got the EOF while reading the 721879 th XYZ_TRIPLE data. Should
> > there be 922746880 XYZ_TRIPLE data in the first fiber?
> >
> > Please advice.
> > --
> > Regards,
> > David
> > _______________________________________________
> > mristudio-users mailing list
> > mristudio-users at mristudio.org
> >
> > Unsubscribe, send a blank email to:
> > mristudio-users-unsubscribe at mristudio.org
> >
>
>
>
> --
> David B. McCoy
> Research Specialist - Olson Lab
> Department of Psychology
> Temple University - College of Liberal Arts
> dmccoy at temple.edu
> 215-204-1708
>
>
> Center for Cognitive Neuroscience
> Department of Psychology
> University of Pennsylvania
> dmccoy at psych.upenn.edu
> _______________________________________________
> mristudio-users mailing list
> mristudio-users at mristudio.org
>
> Unsubscribe, send a blank email to: mristudio-users-unsubscribe at mristudio.org
More information about the mristudio-users
mailing list