[MINC-users] mivarget (beginner's question)

Robert VINCENT minc-users@bic.mni.mcgill.ca
Wed, 3 Dec 2003 15:17:52 -0500


Simon,

As far as I am aware, mivarget() will not use the direction cosines in any
way.  The start[] array is specified in voxel coordinates.  The function
will perform only rudimentary data type conversions on the data, it does
not do any voxel/real scaling.

If you need to do any complex transformations on the data, you want to use
miicv_get() or volume_io.

	-bert

On Wed, 3 Dec 2003, Simon DROUIN wrote:

> Hi All,
>
> Does someone know if what we get in data after calling the following line
> of code is affected in any way by the direction cosines in the file:
>
> mivarget( minc_file_id, image_var_id, start, sizes, NC_BYTE, MI_UNSIGNED, (void*) data )
>
> where data is a pointer to an unsigned char
> where minc_file_id is the id of the opened minc file.
> where image_var_id is the id of the image variable.
> knowing the variable data type for image is unsigned char.
>
> If so, How do I get raw pixel values from a minc file (without using
> volume_io)?
>
> Thanks in advance.
>
> Simon Drouin
>
> _______________________________________________
> MINC-users@bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>