Text archives Help
- From: Michael Callahan <callahan@sci.utah.edu>
- To: seg3d@sci.utah.edu
- Subject: [Seg3D] Re: Accessing NRRD data as multiresolution array
- Date: Sun, 25 Oct 2009 21:49:25 -0600
index_to_offset in VolumeOps.h sort of does this except that the
interface is different (vector<int>). I recommend you write your own
small function to do the same thing with the interface you want.
Michael
On Mon, 2009-10-26 at 00:09 +0000, Ramón Casero wrote:
>
Hi all,
>
>
Looking at the teem library documentation and some Seg3D code, it seems
>
that data contained in an Nrrd object is access as a contiguous array, e.g.
>
>
(unsigned char*)data
>
>
Is there any "good" way to access the data with a multidimensional array,
>
>
data[ix][iy][iz]
>
>
? Basically, having the coordinates of a point, I would like to set to true
>
the voxel that contains it.
>
>
I have seen there's an nrrdWrap function, but I think it's just to put a
>
contiguous array into an Nrrd object.
>
>
Best regards,
>
>
Ramon.
Archive powered by MHonArc 2.6.16.