Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Meshing isosurfaces defined as gray levels in 3D images not possible for large images?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Meshing isosurfaces defined as gray levels in 3D images not possible for large images?


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Meshing isosurfaces defined as gray levels in 3D images not possible for large images?
  • Date: Fri, 10 Jun 2016 14:14:42 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:g5Gl4REUluTD+la1Wuthd51GYnF86YWxBRYc798ds5kLTJ75rsywAkXT6L1XgUPTWs2DsrQf27uQ7P+rBTZIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/nhqbtpNaPOU1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv/h7TL7icq8kYbtdBTUgeyBptYy4/SXEGACA739ZXmQNmQdTGCDE6gv7V9H/qHjUrO14jWO+NNDsQLYoEQ6j6apiVVeoowguE3kW/WbSh9BqnYxSqw6mvQ0+icaAZIiILvd4YuXHfNUXTHdpVclYU2pGGIzqPNhHNPYIIesN99q1nFAJtxbrWVih
  • Organization: GeometryFactory

Le Monday 06 June 2016 20:49:17 Joan Hensen a écrit :
> Hey guys,
>
> I'm using the example Surface_mesher/mesh_a_3d_gray_image.cpp in order to
> triangulate some 3D images.
>
> Apparently, there are problems when the images get to large. I have
> generated a test image and tried to apply 'mesh_a_3d_gray_image' on it:
>
> ./mesh_a_3d_gray_image
> zlib error: data/test.inr: requested length does not fit in int
> _readImage: error: invalid data encountered in 'data/test.inr'
>
> The image has a size of 2009 x 2009 x 400 voxel.
>
> I have uploaded all data that you need to reproduce the error:
> https://www.dropbox.com/s/ki5vfqivj1qnsxs/data.zip?dl=0
>
> Can you help me? I assume that more people would like to triangulate large
> images :-).

Hi,

This bug is know and already fixed in the Git branch will be used to
published
the upcoming bug-fix version CGAL-4.8.1.

The pull-request was:

https://github.com/CGAL/cgal/pull/997

and the patch is limited to only one file:

https://github.com/CGAL/cgal/pull/997/files

You can download the new version of the file here:


https://raw.githubusercontent.com/lrineau/cgal/7bea6910ab6b5ecc1cf27226655c5aa1d3e7a658/CGAL_ImageIO/include/CGAL/ImageIO_impl.h


You will have to recompile the CGAL_ImageIO library once you have patched the
file.

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