Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Header File to Read RGB value of pixel

Status
Not open for further replies.

ashutoshgupta

Programmer
Jan 15, 2004
1
US
Hi friends i want to read images which are taken by CCD camera at the rate of 30frame/sec . These images are saved in BMP format. i want to record the location of RED pixel in an array and after that want to storing there depth in another array ,depth is calculated using simple math. plottion these 3 arrays which contains X, Y and Z position of pixels of all images with respect to particular reference will generate 3-D image .I am using C++
 
I can't quite understand what you're trying to say but it
seems like you are talking about depth-testing. I don't know if you've ever heard of the OpenGL 3-D graphics library but I would bet it is the answer to what you want to do. It does it's own depth-testing.
 
Howdy,

I agree with ol Leroy. Sounds like you are doing something similar to terrain mapping. I would go with the OpenGL GLUT libraries. They contain functions needed to open and extract data from bmp files. If you already have the graphic portion worked out, that is cool. You could just use the functions to load the data. I have been doing a deal of OpenGL work lately, so if that is the way you decide to go, I could post some example stuff if you like.

Good Luck,
onrdbandit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top