SCI Seg3D Mailing List

Text archives Help


[Seg3D] Re: Re: Accessing NRRD data as multiresolution array


Chronological Thread 
  • From: Ramón Casero Cañas <ramon.casero@comlab.ox.ac.uk>
  • To: seg3d@sci.utah.edu
  • Subject: [Seg3D] Re: Re: Accessing NRRD data as multiresolution array
  • Date: Mon, 26 Oct 2009 22:29:26 +0000

Michael Callahan wrote:
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.

Hi Michael,

Thanks very much for the advice.

I looked into VolumeOps::index_to_offset() (I hadn't realised it was in the .h file, because it's implicitly inline), but in the end I think it was easier to first use VolumeOps::nrrd_set_value_unmasked(), because you can just give it the point indices obtained from NrrdVolume::world_to_index().

So now I can segment the spline contour, although with gaps between the spline sampling points. I'm working on connecting those, and will send the result when it's working.

Best regards,

Ramon.

--
Ramón Casero Cañas, DPhil

Computational Biology, Computing Laboratory
University of Oxford
Wolfson Building, Parks Rd
Oxford OX1 3QD

tlf     +44 (0) 1865 610807
web     http://web.comlab.ox.ac.uk/people/Ramon.CaseroCanas
photos  http://www.flickr.com/photos/rcasero/



Archive powered by MHonArc 2.6.16.

Top of page