Re: need a simple image builder



On Jun 18, 11:56 am, Martin Leese <ple...@xxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
JMR wrote:
I have 3d scanner ascci files with this structure:
The first two lines correspond to Width and Height of the needed image
the following records are the pixels in this format
i j X Y Z G
where i, j are the pixel indexes (from 1 to W and H respectively)
X,Y,Z are 3D coordinates
G is a gray value from 0 to 255

1278
938
1 1 -1.288 8.604 -2.640 89
1 2 -1.281 8.586 -2.634 89
1 3 -1.286 8.634 -2.649 89
...
What I would love is a very simple parser that converted this to a
grayscale image file (bmp, png, tif, ...)

Could anyone here help me? (I'm not a programmer :-( )

Images depict gray values on a regular
grid. Your X, Y, Z coordinates appear to
be random (or at least not regular). To
convert your cloud of points to an image
you will therefore need to perform some
sort of interpolation.

You say that you are not a programmer.
Maybe you should abandon this project and
do something else. Alternatively,
investigate software to process LIDAR data.
Your problem occurs in that field as well.

--
Regards,
Martin Leese
E-mail: ple...@xxxxxxxxxxxxxxxxxxxxxxxxxx
Web:http://members.tripod.com/martin_leese/- Hide quoted text -

- Show quoted text -

What does this data reperesent?

I would think it to be the measurement of 'depth', and some estimated
scalar value at that depth, looking into a scene from a regular
rectangular polygon window of sides W and H units. But the X, Y co-
ordinates do not look regularly spaced with window indices.

Regardless, you can render a pointset with the given XYZ co-ordinates,
and color them indexed on the scalar attribute. Search on how to
create a VRML object since you cannot program.


.



Relevant Pages