[Mristudio-users] Fiber Data Reading

David McCoy dmccoy at temple.edu
Thu Mar 10 10:54:23 EST 2011


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
> http://lists.mristudio.org/mailman/listinfo/
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mristudio.org/pipermail/mristudio-users/attachments/20110310/048df1d8/attachment.html 


More information about the mristudio-users mailing list