Subject:
|
Re: How do you convert light sensor data to bmp image
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Mon, 22 Mar 1999 16:57:16 GMT
|
Viewed:
|
2396 times
|
| |
| |
You might find netpbm to be helpful. It contains tools to convert the PBM
(monochrome), PGM (grayscale) and PPM (color) formats into just about
anything. P?M are file format for images which is easy to generate. In its
simplest form PGM (what you'd most likely use for this project) looks like
this:
P2 <width> <height> 255 <values>
So a 2x2 checkboard would look like:
P2 2 2 255 0 255 255 0
These tools are common on Unix systems, but there are also various ports
floating around for Windows-based systems. I wouldn't be surprised if
GUI-based graphics programs (like Thumbs-Plus) could read these images as
well.
alex
Patrick McLean <familyunit@prodigy.net> wrote in message
news:F8wv5w.F0@lugnet.com...
> Hi:
>
> I would like to build a lego scanner using a single light sensor. I have
> found a number of sites which explain how to build them, however, I could
> use some assistance with how to convert the data collected into an actual
> image map. I understand how to obtain the data from the RCX, but would
> appreciate helpful hits on a freeware program or c-code source to actually
> read each integer value to formula the resultant picture.
>
> Any suggestions?
>
> Patrick McLean
>
>
>
|
|
Message has 1 Reply:
Message is in Reply To:
6 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|