please help me
-
-
hhmm....how to find the center point of 2 lines using the visual c++. i need to find the center point of a track...actually,i'm using the video instead of static image. i have already got the binary image and stuck at this stage. please help me anyone?
-
hhmm....how to find the center point of 2 lines using the visual c++. i need to find the center point of a track...actually,i'm using the video instead of static image. i have already got the binary image and stuck at this stage. please help me anyone?
umai wrote:
how to find the center point of 2 lines
What two lines? What is the center point of two lines? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
hhmm....how to find the center point of 2 lines using the visual c++. i need to find the center point of a track...actually,i'm using the video instead of static image. i have already got the binary image and stuck at this stage. please help me anyone?
Have you troubles with (1)
C++
language? (2) Analytic geometry? (3) Windows programming? (4) Bitmaps (5) All of the above stuff? :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
hhmm....how to find the center point of 2 lines using the visual c++. i need to find the center point of a track...actually,i'm using the video instead of static image. i have already got the binary image and stuck at this stage. please help me anyone?
-
hhmm....how to find the center point of 2 lines using the visual c++. i need to find the center point of a track...actually,i'm using the video instead of static image. i have already got the binary image and stuck at this stage. please help me anyone?
Very simple! ;P But you have to explain the scenario clearly...I have done same the thing you have puzzled. Explain it again! :)
Thanks a lot
-
Very simple! ;P But you have to explain the scenario clearly...I have done same the thing you have puzzled. Explain it again! :)
Thanks a lot
-
umai wrote:
how to find the center point of 2 lines
What two lines? What is the center point of two lines? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
let say, there is a track....my mobile robot need to move along the track...the track is about 3 cm width...the reference for the mobile robot is the center point of the track...how can i get the center point? im using the edge detection method but still cannot find the center point
-
let say, there is a track....my mobile robot need to move along the track...the track is about 3 cm width...the reference for the mobile robot is the center point of the track...how can i get the center point? im using the edge detection method but still cannot find the center point
The midpoint between two points (x1,y1) and (x2,y2) could be found something like (xMid, yMid) = ((x1 + x2) / 2, (y1 + y2) / 2) I imagine for those two points, you'll need points on your detected lines that are perpendicular to the robot...or something like that. You'll need to do a little math :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
let say, there is a track....my mobile robot need to move along the track...the track is about 3 cm width...the reference for the mobile robot is the center point of the track...how can i get the center point? im using the edge detection method but still cannot find the center point
Assuming the track delimiting lines parallel, at every point (of one of the two lines) you have to find the perpendicular line and choose on it the point that is halfway the two lines of the track. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke