[MINC-users] volume data structure

Jason Lerch jason at bic.mni.mcgill.ca
Tue Oct 23 10:31:14 EDT 2007


If you are working with minc2 see here:

http://en.wikibooks.org/wiki/MINC/Tutorials/Programming05

Jason

Firas Aschkar wrote:
> greetings,
> I want to create and allocate custom buffers for specific non-subsequent 
> slices of a minc volume. However, it is not clear to me how the *volume 
> data* is store in memory, i.e. given a 3D volume:
>
>     Volume data1;
>     float v1 = data1->array.data[1][1][1];
>     flaot v2 = *( data1->array.data + (1 * data1->array.sizes[0]) + (1 *
>     data1->array.sizes[1]) + 1 );
>
> They produce different values given that :
>
>     static char *default_dim_names[3] =
>         {
>             MIzspace, MIxspace, MIyspace
>         };
>
> thks,
> firas
> _______________________________________________
> 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