2020-11-14 07:15:38 -0600 | received badge | ● Popular Question (source) |
2020-10-28 01:02:01 -0600 | received badge | ● Notable Question (source) |
2020-10-28 01:02:01 -0600 | received badge | ● Popular Question (source) |
2017-08-25 13:58:09 -0600 | received badge | ● Student (source) |
2016-04-28 01:55:22 -0600 | commented question | Clicking on a point in an image finds the closest contour points I don't have c++ environment to check, but based on the logic and provide picture it is sufficient. I didn't see if you discovered contour points used to draw the contour and what parameter regulates the number of them. Let me know if I missed it. Tx. |
2016-04-28 01:52:21 -0600 | received badge | ● Scholar (source) |
2016-04-26 02:17:36 -0600 | received badge | ● Enthusiast |
2016-04-24 14:55:38 -0600 | commented answer | Clicking on a point in an image finds the closest contour points |
2016-04-22 13:02:24 -0600 | commented question | Clicking on a point in an image finds the closest contour points @LorenaGdL I added my current code. The language used is not important. I need some concrete steps.Tx. |
2016-04-22 12:52:33 -0600 | commented question | Clicking on a point in an image finds the closest contour points @LorenaGdL I tried something (still learning). I will post some code soon. I could find all the inside and outside contour points of all boundary lines. I don't want all of contours, only one the closest. Another problem is that I would like to reduce the thickness to only 1 pixel so both inside and outside boundaries should meet. If somebody helps me he/she can be paid for this. |
2016-04-21 00:24:35 -0600 | received badge | ● Editor (source) |
2016-04-21 00:24:07 -0600 | asked a question | Clicking on a point in an image finds the closest contour points Update: As suggested. I added my current code that detects all boundaries of each shape (not desired) with another problem that these boundary lines can be a few pixels wide and form inside and outside countour to be recognized Let say I click on a point inside wanted3 shape/contour (see second image). I would use C#.net OpenCV 2 and/or 3 One Note. The lines denoting shapes can be one or more pixel wide. I would like the recognized points to lay exactly in the middle of that line, so when I do another recognition of surrounding shape I will get an exact point for that shared line recognized in 2 contours I want the closest contour recognized, that encompasses the pressed point with a mouse left click within it. There can however be a larger encompassing contour (not shown here; think of it as a county encompassing cities/places), and I just want the closest one recognized. Whan I press inside wanted2 shape I want South-East border to have exactly the same discoverer contour points as wanted3 no matter how thick the bordering line is (so some calculation of where the middle point is necessaryl Thanks Rad (more) |
2016-01-19 02:43:57 -0600 | asked a question | OpenCV/Emgu.CV: Finding contour point coordinates of a filled polygon using C#.net I started from EMGU Example (Emgu.CV v2.4.10.1939): http://www.emgu.com/wiki/index.php/Co... Instead of comparing previous video frame and the next one I am dealing with a screen capture of the primary screen at time1 and another screen capture at time2. Second screen capture brings a minimal difference, especially in one part of the captured image and that is: an outline (closed polygon of n vertices). I applied ThresholdBinary method and this code: Contour<point> currentContour = contours.ApproxPoly(contours.Perimeter * 0.05, storage); to get the shape of the difference (which for me is a white polygon) I then cropped that polygon to avoid processing unnecessary parts of the image. the attached images on the right I tried to depict what I want and don't want based on processing left input image. I want to find x,y coordinates (in pixels) of all intersections of vertices of the polygon for the cropped image. When I would later redraw the polygon I would expect to as close match as possible to this input polygon. I would like to have a reasonable number of straight lines detected so the final shape faithfully resembles input shape on the left. |