1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3 <html><head><title>Python: module telemetry.internal.image_processing.cv_util</title> 4 <meta charset="utf-8"> 5 </head><body bgcolor="#f0f0f8"> 6 7 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8 <tr bgcolor="#7799ee"> 9 <td valign=bottom> <br> 10 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.image_processing.html"><font color="#ffffff">image_processing</font></a>.cv_util</strong></big></big></font></td 11 ><td align=right valign=bottom 12 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/image_processing/cv_util.py">telemetry/internal/image_processing/cv_util.py</a></font></td></tr></table> 13 <p><tt>This module provides implementations of common computer Vision operations.</tt></p> 14 <p> 15 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 16 <tr bgcolor="#aa55cc"> 17 <td colspan=3 valign=bottom> <br> 18 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 19 20 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 21 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.internal.util.external_modules.html">telemetry.internal.util.external_modules</a><br> 22 </td><td width="25%" valign=top><a href="numpy.html">numpy</a><br> 23 </td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 24 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 25 <tr bgcolor="#eeaa77"> 26 <td colspan=3 valign=bottom> <br> 27 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> 28 29 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> 30 <td width="100%"><dl><dt><a name="-AreLinesOrthogonal"><strong>AreLinesOrthogonal</strong></a>(line1, line2, tolerance)</dt><dd><tt>Returns true if lines are within tolerance radians of being orthogonal.</tt></dd></dl> 31 <dl><dt><a name="-ExtendLines"><strong>ExtendLines</strong></a>(lines, length)</dt><dd><tt>Extends lines in an array to a given length, maintaining the center<br> 32 point. Does not necessarily maintain point order.</tt></dd></dl> 33 <dl><dt><a name="-FindLineIntersection"><strong>FindLineIntersection</strong></a>(line1, line2)</dt><dd><tt>If the line segments intersect, returns True and their intersection.<br> 34 Otherwise, returns False and the intersection of the line segments if they<br> 35 were to be extended.</tt></dd></dl> 36 <dl><dt><a name="-IsPointApproxOnLine"><strong>IsPointApproxOnLine</strong></a>(point, line, tolerance<font color="#909090">=1</font>)</dt><dd><tt>Approximates distance between point and line for small distances using<br> 37 the determinant and checks whether it's within the tolerance. Tolerance is<br> 38 an approximate distance in pixels, precision decreases with distance.</tt></dd></dl> 39 <dl><dt><a name="-SqDistance"><strong>SqDistance</strong></a>(point1, point2)</dt><dd><tt>Computes the square of the distance between two points.</tt></dd></dl> 40 <dl><dt><a name="-SqDistances"><strong>SqDistances</strong></a>(points1, points2)</dt><dd><tt>Computes the square of the distance between two sets of points, or a<br> 41 set of points and a point.</tt></dd></dl> 42 </td></tr></table><p> 43 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 44 <tr bgcolor="#55aa55"> 45 <td colspan=3 valign=bottom> <br> 46 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> 47 48 <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> 49 <td width="100%"><strong>division</strong> = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)</td></tr></table> 50 </body></html>