Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
I think by highlighting the individual EdgePoint and Corner Point pixels it
makes the problem much more clear (corners are too close to each other and
FindQuadrileteralCorners() doesn't like it).
Original comment by mkort...@gmail.com
on 10 Oct 2010 at 10:38
Attachments:
In case my above comment wasn't clear, the following highlighting code was used:
foreach (IntPoint point in edgePoints)
{
g.DrawRectangle(greenPen, point.X, point.Y, 1, 1);
}
foreach (IntPoint point in corners)
{
g.DrawRectangle(redPen, point.X, point.Y, 1, 1);
}
Original comment by mkort...@gmail.com
on 10 Oct 2010 at 10:42
Okay after looking at PointsCloud.cs it is clear that the line 381 is setting
too high a distortion limit:
double distortionLimit = 0.1 * ( cloudSize.X + cloudSize.Y ) / 2;
If I set distortionLimit to a lower value, detection works fine.
If I do:
double distortionLimit = 0.06 * ( cloudSize.X + cloudSize.Y ) / 2;
Then I get the attached pictures.
Is it not possible to overload this function with a custom distortionLimit
parameter?
This is actually an excellent discovery for me because it also eliminates a
problem with smaller health bars getting too close to each other and being
recorded as a trapezoid.
Original comment by mkort...@gmail.com
on 10 Oct 2010 at 11:24
Attachments:
Original comment by andrew.k...@gmail.com
on 7 Jan 2011 at 3:01
1) Fixing the issue of detecting flat rectangles with high aspect ratio between
adjacent sides.
2) Adding PointsCloud.QuadrilateralRelativeDistortionLimit static property, so
user could tweak distortion limit if he understands what he does.
The original issue described in the ticket is fixed by the first change, so
there is no need for using QuadrilateralRelativeDistortionLimit. However this
property was still added to give more control to users.
Committed in revision 1368. Will be released in version 2.1.5.
Original comment by andrew.k...@gmail.com
on 7 Jan 2011 at 4:09
Original comment by andrew.k...@gmail.com
on 12 Jan 2011 at 11:43
Original issue reported on code.google.com by
mkort...@gmail.com
on 10 Oct 2010 at 9:31Attachments: