next up previous contents index
Next: Using sensors and actuators Up: Defining sensors and actuators Previous: make-static-projected-PNM-colour-sensor image-file procedure

make-static-projected-PNM-intensity-sensor image-file procedure

 

Makes an input device that senses light intensity. The PPM image in image-file is projected onto a unit square. The sensor has a constant stimulus which is taken from the image. Reading the sensor returns an intensity value between 0.0 (black) and 1.0 (white).



Erik Rauch
Sat May 8 16:42:57 EDT 1999