To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 10440
10439  |  10441
Subject: 
Re: Digital Camera with LEGO
Newsgroups: 
lugnet.robotics
Date: 
Wed, 2 Feb 2000 01:41:22 GMT
Viewed: 
1611 times
  
In lugnet.robotics, MeTzBoi3104@aol.com writes:
Using the datalog information to create a bitmap is a good idea, but the
question is how would you transfer the data from the RCX to the computer.
Even then how would the bitmap be created??

nqc -datalog will download it.  Then you'll need a program which can take that
list of numbers and make an image file.  A text PGM image is probably the
easiest thing to make.  They just look like

P2
123 456
255
...

That would be a 123x456 grayscale image.  The P2 and 255 don't change (for your
purposes).  After that just put one text number for each pixel, starting with
the upper left and moving across and then down.  For example:

P2
2 2
255
0 255
255 0

is a 2x2 image that looks kind of like a white '/'.  You should be able to load
PGM images into something like paintshop pro.

--Ben



Message has 1 Reply:
  Re: Digital Camera with LEGO
 
(...) that (...) your (...) with (...) load (...) Ben, Thank you *very* much - this is very easy! Too cool! Thanks for the reply. It was very easy to generate the PGM file from a text file. You've saved me a lot of grief! Iain (25 years ago, 2-Feb-00, to lugnet.robotics)

Message is in Reply To:
  Re: Digital Camera with LEGO
 
Using the datalog information to create a bitmap is a good idea, but the question is how would you transfer the data from the RCX to the computer. Even then how would the bitmap be created?? (25 years ago, 2-Feb-00, to lugnet.robotics)

4 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
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
6 hours ago
Custom Search

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