Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > C++

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-20-2009, 01:51 AM
yol yol is offline
Registered User
 
Join Date: Oct 2009
Posts: 2
Using Visual C++ to detect object and color?

Hi ppl,

Can I use Visual C++ to com out with a source code to detect object like circle triangular round or square or cube either in 2D or 3D?

Can I detect the color of the object also? Both is using a input from a stereo vison of a camera.

Thanks for your help..
Reply With Quote
  #2  
Old 10-20-2009, 09:43 AM
jonnin jonnin is offline
Senior Member
 
Join Date: Dec 2003
Posts: 3,008
You can do almost anything that can be done with c++. The major exception is its not scripted so you cannot embed the source in a web page for example (or similar script/portable applications) -- because you cannot expect the typical PC user to have a compiler installed, for one thing.


C++ itself does not have any graphics, you either have to make your own or use existing ones. There are plenty of great graphics libraries out there, with visual, you might use directx / direct3d etc or opengl.

Stereo vision is extremely complex, and C++ is a very rich, complex language. If you do not know the language, it can take many months to become skilled enough to express complex ideas in it. Stereo vision is of limited use, really, you can never really know an object is a cube. Just take a few objects from your dest to prove this: pick up a book, and look at its cover from an angle where you cannot see its "depth" (cannot see the sides). Is it a cube? A rectangle? A plane (zero depth?)? You cannot tell. Pick up a soda can, look at its bottom and you cannot see the sides, is it a sphere? Your brain tells you the answer by context (you recognize a soda can and the brain fills in its probable shape for you) but from the image alone, its not so simple. The farther apart your cameras are, the better your answer will be *to a point* but the harder it will be to correlate the images to make sense of them. THere is a happy medium where they are far enough apart to do both tasks, but the results are generally less than stellar and tend to only really work well in a very heavily controlled environment (always looking at the same sort of things from the same angle and distance etc).




Color on the other hand is very easy to get (from a programming standpoint only). There is no detection, you simply know the color of whatever pixel you are looking at. However, for an object from a camera with lighting and all that, you only know the percieved color and even that can be obscured by shadows and such --- but you can get a sense of its color and, with some smarts, detect shadows or excessive lighting (reflections, washout, etc). I don't know if you can ever get the true color of the object but you can get close enough. For example, if the sun is shining on a shiny, bright yellow cube, it may appear white in the video streams and therefore you will never see the yellow.

Last edited by jonnin; 10-20-2009 at 09:51 AM.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Moved.This object may be found here. raj74 ASP.NET 0 10-21-2002 03:54 AM
reassign static var Pete Java 1 09-21-2002 06:57 PM
How to compare two objects of Color? chhstock Java 4 06-14-2002 12:35 PM
How-to change color of the rows in DataGrid? AlexY .NET 5 03-07-2002 08:52 PM
color object implementation krallabandi Web 1 09-10-2001 12:31 PM


All times are GMT -4. The time now is 12:59 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.