ImageD  v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
D_Geo_Point_2D Class Reference

The D_Geo_Point_2D class represents a 2D point and offers usefulls methods for standard tasks for 2D points and lines. More...

#include <d_geo_point_2d.h>

Public Member Functions

 D_Geo_Point_2D ()
 
 D_Geo_Point_2D (double angle_rad)
 
 D_Geo_Point_2D (double x, double y)
 
 D_Geo_Point_2D (double u, double v, double w)
 
 D_Geo_Point_2D (D_Geo_Line_2D L)
 
 D_Geo_Point_2D (D_Geo_Line_2D L1, D_Geo_Line_2D L2)
 
void set_point (D_Geo_Point_2D P)
 
void set_angle_unifrom (double angle_rad)
 
void set_angle_normal_unifrom (double angle_rad)
 
double u ()
 
double v ()
 
double w ()
 
double x ()
 
double y ()
 
Mat Mat_homo ()
 
Mat Mat_inhomo ()
 
Point CV_Point ()
 
Point2f CV_Point2f ()
 
Point2d CV_Point2d ()
 
bool equal (D_Geo_Point_2D P)
 
D_Geo_Point_2D negate ()
 
D_Geo_Point_2D scale (double factor)
 
D_Geo_Point_2D unifrom ()
 
D_Geo_Point_2D add_inhomo (D_Geo_Point_2D P)
 
D_Geo_Point_2D dif_inhomo (D_Geo_Point_2D P)
 
double mult_scalar_inhomo (D_Geo_Point_2D P)
 
double mult_scalar_homo (D_Geo_Point_2D P)
 
D_Geo_Line_2D mult_cross_homo (D_Geo_Point_2D P)
 
bool vanishing (double delta=0)
 
double length ()
 
double angle ()
 
double angle (D_Geo_Point_2D P)
 
D_Geo_Line_2D connection (D_Geo_Point_2D P)
 
double distance (D_Geo_Point_2D P)
 
bool in_rect (size_t t, size_t b, size_t l, size_t r)
 
bool in_rect (size_t t, size_t b, size_t l, size_t r, double *min_dist, double *max_dist)
 
bool in_rect (Rect *rect)
 
bool in_rect (Mat *img)
 

Detailed Description

The D_Geo_Point_2D class represents a 2D point and offers usefulls methods for standard tasks for 2D points and lines.

Supports homogenious coodinates. Calculation is done homogenious/inhomogenious, whichever is easier. From user perspektive, this is irelevant and handled internally.

Constructor & Destructor Documentation

◆ D_Geo_Point_2D() [1/6]

D_Geo_Point_2D::D_Geo_Point_2D ( )

◆ D_Geo_Point_2D() [2/6]

D_Geo_Point_2D::D_Geo_Point_2D ( double  angle_rad)

◆ D_Geo_Point_2D() [3/6]

D_Geo_Point_2D::D_Geo_Point_2D ( double  x,
double  y 
)

◆ D_Geo_Point_2D() [4/6]

D_Geo_Point_2D::D_Geo_Point_2D ( double  u,
double  v,
double  w 
)

◆ D_Geo_Point_2D() [5/6]

D_Geo_Point_2D::D_Geo_Point_2D ( D_Geo_Line_2D  L)

◆ D_Geo_Point_2D() [6/6]

D_Geo_Point_2D::D_Geo_Point_2D ( D_Geo_Line_2D  L1,
D_Geo_Line_2D  L2 
)

Member Function Documentation

◆ add_inhomo()

D_Geo_Point_2D D_Geo_Point_2D::add_inhomo ( D_Geo_Point_2D  P)

◆ angle() [1/2]

double D_Geo_Point_2D::angle ( )

◆ angle() [2/2]

double D_Geo_Point_2D::angle ( D_Geo_Point_2D  P)

◆ connection()

D_Geo_Line_2D D_Geo_Point_2D::connection ( D_Geo_Point_2D  P)

◆ CV_Point()

Point D_Geo_Point_2D::CV_Point ( )
inline

◆ CV_Point2d()

Point2d D_Geo_Point_2D::CV_Point2d ( )
inline

◆ CV_Point2f()

Point2f D_Geo_Point_2D::CV_Point2f ( )
inline

◆ dif_inhomo()

D_Geo_Point_2D D_Geo_Point_2D::dif_inhomo ( D_Geo_Point_2D  P)

◆ distance()

double D_Geo_Point_2D::distance ( D_Geo_Point_2D  P)

◆ equal()

bool D_Geo_Point_2D::equal ( D_Geo_Point_2D  P)

◆ in_rect() [1/4]

bool D_Geo_Point_2D::in_rect ( Mat img)

◆ in_rect() [2/4]

bool D_Geo_Point_2D::in_rect ( Rect rect)

◆ in_rect() [3/4]

bool D_Geo_Point_2D::in_rect ( size_t  t,
size_t  b,
size_t  l,
size_t  r 
)

◆ in_rect() [4/4]

bool D_Geo_Point_2D::in_rect ( size_t  t,
size_t  b,
size_t  l,
size_t  r,
double *  min_dist,
double *  max_dist 
)

◆ length()

double D_Geo_Point_2D::length ( )

◆ Mat_homo()

Mat D_Geo_Point_2D::Mat_homo ( )

◆ Mat_inhomo()

Mat D_Geo_Point_2D::Mat_inhomo ( )

◆ mult_cross_homo()

D_Geo_Line_2D D_Geo_Point_2D::mult_cross_homo ( D_Geo_Point_2D  P)

◆ mult_scalar_homo()

double D_Geo_Point_2D::mult_scalar_homo ( D_Geo_Point_2D  P)

◆ mult_scalar_inhomo()

double D_Geo_Point_2D::mult_scalar_inhomo ( D_Geo_Point_2D  P)

◆ negate()

D_Geo_Point_2D D_Geo_Point_2D::negate ( )

◆ scale()

D_Geo_Point_2D D_Geo_Point_2D::scale ( double  factor)

◆ set_angle_normal_unifrom()

void D_Geo_Point_2D::set_angle_normal_unifrom ( double  angle_rad)

◆ set_angle_unifrom()

void D_Geo_Point_2D::set_angle_unifrom ( double  angle_rad)

◆ set_point()

void D_Geo_Point_2D::set_point ( D_Geo_Point_2D  P)

◆ u()

double D_Geo_Point_2D::u ( )
inline

◆ unifrom()

D_Geo_Point_2D D_Geo_Point_2D::unifrom ( )

◆ v()

double D_Geo_Point_2D::v ( )
inline

◆ vanishing()

bool D_Geo_Point_2D::vanishing ( double  delta = 0)

◆ w()

double D_Geo_Point_2D::w ( )
inline

◆ x()

double D_Geo_Point_2D::x ( )
inline

◆ y()

double D_Geo_Point_2D::y ( )
inline

The documentation for this class was generated from the following files: