Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can get the pixel values of my tracking object as it moves around in my webcam frame. My goal is to take a sample of those pixel values and get the X and Y coordinates for each pixel values. I have no clue how to do it? I am using Opencv and c++, is there a way i can do that transformation? Thanks
Posted
Updated 5-Sep-14 14:07pm
v2
Comments
The_Inventor 5-Sep-14 22:37pm    
The best approach is to break down the tasks needed to get to the result that you want, just like anything else. However, this sound like a mouse capture project like the Scribble example that comes in the VS samples. So if you look at that example and can adapt it to your hardware setup, then it should be a piece of cake.

1 solution

Yes. You must now the "package format" (->google how to unpack) and so the size of the frame and the size of one pixel.

Most of the time the data is packed in pixels, which are arranged in horizontal manner. At the end of that "line" may be seom fill pixels called "padding".

More details -> better answer ;-)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900