Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. please help me

please help me

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
11 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    umai
    wrote on last edited by
    #1

    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?

    L M CPalliniC R G 5 Replies Last reply
    0
    • U umai

      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?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      umai wrote:

      please help me

      Is it urgent?

      led mike

      U 1 Reply Last reply
      0
      • U umai

        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?

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        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:

        U 1 Reply Last reply
        0
        • U umai

          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?

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          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

          In testa che avete, signor di Ceprano?

          1 Reply Last reply
          0
          • U umai

            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?

            R Offline
            R Offline
            rp_suman
            wrote on last edited by
            #5

            Hi, Do you mean "intersection point of 2 lines"? If so, find equation of both lines, at the point of intersection both equations are same. If not, Explain the problem more clear. Best Regards, Suman

            -- "Programming is an art that fights back!"

            1 Reply Last reply
            0
            • U umai

              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?

              G Offline
              G Offline
              ganesa moorthy
              wrote on last edited by
              #6

              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

              U 1 Reply Last reply
              0
              • G ganesa moorthy

                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

                U Offline
                U Offline
                umai
                wrote on last edited by
                #7

                let say, there is a track....my mobile root 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?

                1 Reply Last reply
                0
                • M Mark Salsbery

                  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:

                  U Offline
                  U Offline
                  umai
                  wrote on last edited by
                  #8

                  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

                  M CPalliniC 2 Replies Last reply
                  0
                  • L led mike

                    umai wrote:

                    please help me

                    Is it urgent?

                    led mike

                    U Offline
                    U Offline
                    umai
                    wrote on last edited by
                    #9

                    yups...quite urgent...

                    1 Reply Last reply
                    0
                    • U umai

                      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

                      M Offline
                      M Offline
                      Mark Salsbery
                      wrote on last edited by
                      #10

                      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:

                      1 Reply Last reply
                      0
                      • U umai

                        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

                        CPalliniC Offline
                        CPalliniC Offline
                        CPallini
                        wrote on last edited by
                        #11

                        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

                        In testa che avete, signor di Ceprano?

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups