GIDForums  

Go Back   GIDForums > Computer Programming Forums > OpenGL Programming
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 02-Dec-2007, 22:48
ce2007 ce2007 is offline
New Member
 
Join Date: Dec 2007
Posts: 1
ce2007 is on a distinguished road

Opengl program help


Hello all,

I have an image with white background and a single blackdot on it. I was wondering if there is any function to read the pixels of an image to find the blackdots position by calculating the centroid of the black dot.

I am new to opengl and c++ programming, i would appreciate if anyone can help me with identifying the blackdot.

Thanks for your time
  #2  
Old 10-Dec-2007, 01:45
whitepenguin whitepenguin is offline
New Member
 
Join Date: Dec 2007
Posts: 9
whitepenguin is on a distinguished road

Re: Opengl program help


Check out glReadPixel !
Put that word on Google and see

One more things if u have an "image" then dont need OpenGl funtion. Loop through the image check if its Color is 0,0,0 then that is the black dot
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two-Tier data dissemination code installation problem nidhibansal1984 Computer Software Forum - Linux 6 16-Sep-2007 11:13
Text-Based Roulette Game mfm1983 C++ Forum 5 29-Nov-2006 13:20
BOOKEEPING program, HELP!! yabud C Programming Language 10 17-Nov-2006 04:48
Pipeline freeze simulation darklightred C++ Forum 6 27-Jul-2006 20:37
How to read particular memory location ? realnapster C Programming Language 10 10-May-2006 10:11

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:14.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.