Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Accessing Pixel Values of RAW 8 image

$
0
0
Hi all, Im using XIMEA camera and I am capturing RAW 8 images using OpenCV 3.1.0. Therefore my images are in gray scale. Ive read a lot in forums about how to access pixel values. When I use the following code it will give me 3 different values (R,G and B) but I dont understand why this is happening since my images are in gray scale so I should get only one value per pixel. image.at(i,j) So I used other suggestions such as the following code but what I see is a very very strange output! image.at< unsigned char > (i,j) I would be grateful if you guys can help me regarding this problem. I want to see all my pixel values of gray image. What type should I use? Thanks!

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>