Re: Problem with camera

Anders Lyhagen <[email protected]>
Newsgroups gmane.comp.cybernetics.webot.contest
Message-ID <[email protected]>
It might be that the camera window for Judoka0 is covered on your  
screen (probably by the camera window for Judoka1). With some graphic  
cards, this seems to matter!

/Anders Lyhagen
2004-01-19 kl. 22.20 skrev David Weber:

> 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/
>
>
>


 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/pU_rlB/TM
---------------------------------------------------------------------~->

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.