Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: how to use Image_3::labellized_trilinear_interpolation() properly

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: how to use Image_3::labellized_trilinear_interpolation() properly


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: how to use Image_3::labellized_trilinear_interpolation() properly
  • Date: Thu, 11 Oct 2012 09:49:38 +0200
  • Organization: GeometryFactory

Le mercredi 10 octobre 2012 21:24:31 Hamid G a écrit :
> Thanks for your reply.
>
> I am using .inr file format to pass segmented images (which are in several
> .bmp files) to CGAL mesher.
> The goal is to mesh a block with a tiny sub-region inclusion with different
> meshing sizes.
>
> Were you able to reproduce the bug in mesh_3D_image.cpp with:
>
> int label = image.labellized_trilinear_interpolation(0., 0., 57., 0);

I have not even tried. It is certain that it will fail if the type of the
fourth parameter does not match exactly the word type of the image.

Remember that you are using non documented functions. Do not expect that it
does why you have imagined.

> Does the class/template provide any mechanism to deduce the type of image if
> we don't have prior information about the image file we are reading?

No. You should use the class template CGAL::Labeled_image_mesh_domain_3
instead of trying to use function of CGAL::Image_3 directly.

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