Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to format my images in order to use 3D Surface Mesh Generation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to format my images in order to use 3D Surface Mesh Generation


Chronological Thread 
  • From: Xiaoxiong Xing <>
  • To:
  • Subject: Re: [cgal-discuss] How to format my images in order to use 3D Surface Mesh Generation
  • Date: Mon, 21 Apr 2014 18:43:52 -0600

Hello Giles,

I wrote a simple converter to convert my a set of tif files to a inr file. The code is available at https://bitbucket.org/shapeare/tif2inr/src.

It first extracts the pixel data from all tif files and then write the header of the resulting inr file as text, and finallly write the pixel data to this inr file in binary format. I followed the specification of the inr format which can be found at http://serdis.dis.ulpgc.es/~krissian/InrView1/IOformat.html.

I am gonna check if the converter really works.

Sincerely,
Xiaoxiong




2014-04-21 11:26 GMT-06:00 Giles Bathgate <>:
Xiaoxiong,

I think the term 'Image' in the context of .inr grey level image really refers to volumetric data consisting of voxels, whereas as far as I know tif images are only in 2D. I don't know what you have in terms of input images, but if you have perhaps a set of images representing 2D slices of some 3D volumetric data, then perhaps you could combine all these into a grey level image.

I am not really sure how to do this, and request that the CGAL developers might provide some further assistance.

Regards,
Giles

On 21 April 2014 17:50, Xiaoxiong Xing <> wrote:
Thank you, Giles,

Actually, the images I have are .tif 8 bit images. Do you mean I can use createInrimage to create .inr images from them?

Sincerely,
Xiaoxiong





Archive powered by MHonArc 2.6.18.

Top of Page