Re: need a simple image builder



On Jun 19, 2:04 am, JMR <j...@xxxxxxxxxxxxxx> wrote:
Martin Leese escribió:





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 :-( )

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.

Very kind invitation. But no, I just can't abandon
As I said tha data are output of a 3d scanner.
In fact I was asking for the simplest thing.
I just wanted the image with grays as pixel values.

I can easily clean the text file and have just
W
H
g
g
g
g
g
g
...
and just write the file raw by raw. Thanks.

I guess could be able to write a program in VB after one or two days of
reading the FM, If I had to pay a computer engineer for such a terrible
task, I surely would have to abandon because heritage recording tasks
are not very proffitable. It would almost be like calling NASA for
mounting a LEGO toy for under 2 year old kids.- Hide quoted text -

- Show quoted text -

In that case, you can load raw pixel data using a program like
'ezDICOM'. Just remove all header information, keep only the pixels,
save back to a file. Then load the file as 'raw' format in the
software. It will ask for dimensions, and bytes per pixel.

.



Relevant Pages

  • Re: File formats
    ... When I use the TIFF format in the camera, ... Does that mean that the TIFF format is better, ... I have always thought that the RAW format is best... ... RAW files have the raw image data as taken off the sensor, at 12 bits per pixel. ...
    (rec.photo.digital.slr-systems)
  • Re: Shooting RAW vs RAW and JPG
    ... any digital camera will ever have. ... The problem is that it is fixed, and without the raw ... or pad it out with null bits to fit into the 16-bit format. ... is 12 bits per pixel from the sensor. ...
    (rec.photo.digital)
  • Re: How Do I Know What Bits per Pixel my Panasonic Lumix DMC-FZ8 Has
    ... I use SilkyPix to read the raw files but it does not tell me the bit depth ... It is a 7M pixel camera. ... When it is converted to another format it gets changed ...
    (rec.photo.digital)
  • Re: How Do I Know What Bits per Pixel my Panasonic Lumix DMC-FZ8 Has
    ... if you can put one raw image file up on ... Each pixel is one color only, ... image format is using a group of pixels to determine ...
    (rec.photo.digital)
  • Re: Question about shooting in RAW mode..
    ... am i correct in assuming that RAW is essentially a digital negative, the 'bare bones' of an image, different to a jpeg where the camera adds it's own image processing? ... 3- Each output pixel is based on the pixel and color content around it in adjacent pixels, so there is mixing and loss. ... Lost dynamic is lost. ...
    (rec.photo.digital.slr-systems)