Re: need a simple image builder
- From: "Pixel.to.life" <pixel.to.life@xxxxxxxxx>
- Date: Thu, 21 Jun 2007 08:20:34 -0000
On Jun 21, 1:10 am, Juho Pitkänen <juho.pitka...@xxxxxx> 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 :-( )
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.
There is a plain ascii format of pgm, see the example inhttp://netpbm.sourceforge.net/doc/pgm.html
The gray values can be given also one in a line, so the above is almost
in the plain pgm format. Only problem is that your values are in
column-major order instead of row-major but that can be handled by
rotate and mirror in an image viewing software. At least XnView on linux
had no problems with a one column plain pgm, so probably the Windows
version will work as well.- Hide quoted text -
- Show quoted text -
Good suggestion, Juho.
.
- References:
- need a simple image builder
- From: JMR
- Re: need a simple image builder
- From: Martin Leese
- Re: need a simple image builder
- From: JMR
- Re: need a simple image builder
- From: Juho Pitkänen
- need a simple image builder
- Prev by Date: Re: need a simple image builder
- Next by Date: Re: Image Libraries for Linux
- Previous by thread: Re: need a simple image builder
- Next by thread: How to visualize Optical Flow with MATLAB
- Index(es):
Relevant Pages
|