Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] surface extraction

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] surface extraction


Chronological Thread 
  • From: elhassan Abdou <>
  • To:
  • Subject: Re: [cgal-discuss] surface extraction
  • Date: Sun, 4 Dec 2011 23:41:06 +0100

Hi

What is the expected of computing 2D mesh for MRI volume of size 128x128x72 with spacing 0.58x0.58x2 on mac machine with 2GBRAM and processor  2.4 GHz duo core.

Best Regards
Elhassan
On Nov 23, 2011, at 4:39 PM, Laurent Rineau (GeometryFactory) wrote:

Le mercredi 23 novembre 2011 13:12:39 elhassan Abdou a écrit :
Dear All

I am a newbie in CGAL. I read the 3D surface mesh generation. I want the
Surface_3  to read from 3D array not from Gray_level_image. Can anyone help
me with this.

Here is the use of undocumented functions, if 'data_pointer' is the pointer to
your array:

 CGAL::Image_3 image(_createImage(dimx, dimy, dimz, 1,
                                  spacing_x, spacing_y, spacing_y,
                                  1, WK_FIXED, SGN_UNSIGNED));
 ImageIO_free(image.data());
 image.set_data(dat_pointer);


The last three parameters "1, WK_FIXED, SGN_UNSIGNED" mean "unsigned char".
Have a look at <CGAL/ImageIO.h> and src/CGALImageIO/ImageIO.cpp for the ugly
details.

_createImage+ImageIO_free is not efficient. You can have a look at those
functions, and copy/paste the code you need, to avoid the
allocation/deallocation of a buffer of size dimx×dimy× dimz.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory           http://www.geometryfactory.com/
Release Manager of the CGAL Project       http://www.cgal.org/


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss


Elhassan Abdou
Computational Science master student
Uppsala



  • Re: [cgal-discuss] surface extraction, elhassan Abdou, 12/04/2011

Archive powered by MHonArc 2.6.16.

Top of Page