Hello Dx users

Here a question about colors and dx.

I want to convert a tiff image to plane asci with a x y an z columns (it
is a gray value image, so only z is needed)

I use ReadImage to import the data.

I have a written a ExportAsci module that works correctly with plane DX
data, such as generated with eg. data=Contstruct([0 0],[10 10],[1
1],0.), eg with a positions component and a data component depending on
positions.

It fails, however, with the imported tiff image data, since its
structure is more complicated; a positions components, a connections
component, a colormap component, a colors component refering to the
colormap and depending on the positions

I suppose I need to change the colors component to data with 'Rename',
but apparantly the reference to the colormap is not understood by my
module. But since it is a gray value image anyway, I can remove the
reference.

The questions are:

1)
What should I do to strip all the rings and bells such that the data has
the same structure as generated by Construct ?

2)
Or alternatively, How can I export plane asci from the data, without all
the dx stuff (e.g., only the x-position, y-position and z-value).


Any help appreciated.
Thanks !

Regards

Eelco

Reply via email to