Re: need a simple image builder



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: please@xxxxxxxxxxxxxxxxxxxxxxxxxx
Web: http://members.tripod.com/martin_leese/
.



Relevant Pages

  • Re: MFC CPicture, CBitmap and CDC programming question
    ... load the source image into a dib section (CreateDIBSection) in a memory dc ... then directly manipulate the pixels using ... > my interface is to use a BMP image of a universal remote control. ... > programmer, not a UI or graphics programmer. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: need a simple image builder
    ... The first two lines correspond to Width and Height of the needed image ... the following records are the pixels in this format ... When you convert the data to an image file, ...
    (sci.image.processing)
  • Re: Writing bulletproof code
    ... >> efficiency. ... > And you call yourself a games programmer? ... > setting pixels on the screen. ... Who cares if that Laura is a pixel out? ...
    (comp.programming)
  • RE: HOW to display raw YUV data -----(problem still )???
    ... > The pixels of each line and lines in one frame is known for me. ... That being said, "converting" from one YUV format to another is very easy, ... alpha channel--we'll just skip over it. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: why 1680x1050 ?
    ... Quite a few of the earlier HD plasma screens have a ... a 16:9 panel which has a native format (a ... as "pixels" to begin with, so the panel format is mostly ... somewhat of a better match to PC standard formats (if ...
    (comp.sys.ibm.pc.hardware.video)