Problem with camera

"David Weber" <[email protected]>
Newsgroups gmane.comp.cybernetics.webot.contest
Message-ID <010001c3ded2$1ccc37f0$6d7ba8c0@aksamit>
hi all

i've got a problem with the RGB values i get from the camera
and i don't see the problem ...

----------------------------------------------------------------------------
---

        int camera = robot_get_device("camera");

        camera_enable(camera,64);

        int[] image = camera_get_image(camera);

            for (int z =0 ; z < image.length; z++) { // z is the same as (x
+ y * width)

            int pixel = image[z];

            int r = (pixel>>16)&0xFF;
            int g = (pixel>>8)&0xFF;
            int b = pixel&0xFF;
        }

----------------------------------------------------------------------------
---

i tried it in various time steps and it always gets the same values ...
most of those rgb - values are black and some of them are kind of green or
blue

any ideas ?

greetz david



 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/webots-contest/

To unsubscribe from this group, send an email to:
 [email protected]

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.