#include <polarline.h>
Öffentliche Methoden | |
| polarLine () | |
| polarLine (double r1, double t1) | |
| void | normalize () |
| void | fromCart (int w, int h, CvPoint p1, CvPoint p2) |
| void | draw (IplImage *img, double color=255) |
| int | find_p1_p2 (mypoint &p1, mypoint &p2, float radius) |
Öffentliche Attribute | |
| double | r |
| double | theta |
angles are in radians, ie. 0 <= theta < 2*M_PI angle of 0 points into positive x axis direction, ie. right angle of M_PI/2 results in positive y axis [direction depends on display method...] centers of imgs are taken as 0 of polar coordinate system
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
Findet Schnittpunkte p1, p2 des Kreises gegeben durch radius (Mittelpunkt == (0, 0)) mit der Geraden geg. durch r, theta in Polardarstellung. Liefert -1 if keine Schnittpunkte, else 0. |
|
||||||||||||||||||||
|
Converts line given in cartesian coordiantes and where positive y-axis points downwards of an image with dimensions w, h into a line in the polar coordinate system centered at w/2 h/2 where positive y-axis points upwards |
|
|
stellt sicher, daß r>=0 |
|
|
r == Abstand zwischen dem Punkt der Gerade, der dem Koordinatenursprung am nächsten kommt, zum Koordinatenursprung theta == Winkel der Geraden relativ zur positiven x-Achse |
|
|
r == Abstand zwischen dem Punkt der Gerade, der dem Koordinatenursprung am nächsten kommt, zum Koordinatenursprung theta == Winkel der Geraden relativ zur positiven x-Achse |
1.3.2