To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 32
31  |  33
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: 
2275 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:
  Re: How do you convert light sensor data to bmp image
 
Alex: Thank you for your suggestion. I was able to find a Windows95 site which described a way to utilize the PGM program. The site basically provides the files needed to call up a UNIX window on my PC. From the UNIX window, I can then utilize the (...) (25 years ago, 24-Mar-99, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  How do you convert light sensor data to bmp image
 
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 (...) (26 years ago, 20-Mar-99, to lugnet.robotics.rcx.nqc)

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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR