Subject:
|
Re: Digital Camera with LEGO
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 2 Feb 2000 02:13:39 GMT
|
Viewed:
|
1569 times
|
| |
| |
> 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
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
|
|
Message is in Reply To:
| | Re: Digital Camera with LEGO
|
| (...) 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 (...) (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
|
|
|
Active threads in Robotics
|
|
|
|