[MINC-users] Volume IO examples?

Jason Lerch minc-users@bic.mni.mcgill.ca
Mon, 2 Feb 2004 16:00:12 -0500


Hi James,

this example might be what you are looking for:

http://www.bic.mni.mcgill.ca/software/MDP/HTML/VOLUME_IO_prog_ref.html/ 
volume-source-code-example.html

Cheers,

Jason

On Feb 2, 2004, at 3:27 PM, James Dessart wrote:

> I'm using the MINC functions to load information from a dataset, but  
> I'd like to simply use the volume IO interface to load up the volume  
> in a straightforward manner.  input_volume seems to imply that that  
> would be a possibility, but how do I copy the values into a buffer of  
> unsigned shorts afterwards?
>
> In other words, I want a straightforward solution to get a minc file  
> on disk into a buffer of my choosing, as unsigned shorts.  Are there  
> any pieces of example code that might show me this?
>
> I know MINC is a very flexible format, but some of that flexibility is  
> not very useful when you know you're dealing with a volume, and all  
> you want are the voxel values, in a particular order, in a buffer. :)
>
> Thanks,
> James
>
> _______________________________________________
> MINC-users@bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users