Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] VTK support

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] VTK support


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] VTK support
  • Date: Thu, 9 Sep 2010 11:05:28 +0200
  • Organization: GeometryFactory

On Wednesday 08 September 2010 21:46:12 Dominik Szczerba wrote:
> Thank you for the response.
> I need to load my own image buffer available in memory as an array of
> unsigned chars and sized NI*NJ*NK. I can not want to use the INR
> format. I tried to study the image::read function, but it is quite
> complicated. I would be most grateful if you could point me to a
> relevant code section.

Hi Dominik,

As far as I understand, you do not really need VTK support.

Anyway, have a look at the implementation of the following function:

bool Image_3::read_vtk_image_data(vtkImageData* vtk_image)

in src/CGALimageIO/Image_3.cpp in CGAL. You will find out how to construct a
CGAL::Image_3 from an array of char and meta-data. I can give you hints if
you
cannot easily reverse-engineer that code.

--
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.16.

Top of Page