Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: [cgal-discuss] Re: 3D meshing of multidomain segmented images with sharp features

Subject: CGAL users discussion list

List archive

Re: Re: [cgal-discuss] Re: 3D meshing of multidomain segmented images with sharp features


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: Re: [cgal-discuss] Re: 3D meshing of multidomain segmented images with sharp features
  • Date: Wed, 22 May 2013 15:03:24 +0200
  • Organization: GeometryFactory

Le mardi 21 mai 2013 16:25:01 David Bernstein a écrit :
> Hi Andreas, If I have an image created by
>
> CGAL::Image_3 image(_createImage(mXdim, mYdim, mZdim, data_vector_size,
> mVX, mVY, mVZ,
> word_size_bytes,
> word_kind,
> sgn));
>
> and then filled with data what would be the way to write it to an inr file?
> Sorry, I looked through the code and the online manuals but couldn't find
> an answer to this.

You have to call an undocumented function from <CGAL/ImageIO.h>:
int _writeImage(_image *im, const char *name);
that way:
_writeImage(image.image(), "myfile.inr");

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




Archive powered by MHonArc 2.6.18.

Top of Page