|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiLocation.h>
Collaboration diagram for lti::rectLocation:

Public Member Functions | |
| rectLocation () | |
| rectLocation (const point &pos, const float &ang, const float &maxLength, const float &minLength) | |
| rectLocation (const tpoint< float > &pos, const float &ang, const float &maxLength, const float &minLength) | |
| rectLocation (const location &loc) | |
| rectLocation (const rectLocation &other) | |
| rectLocation & | copy (const rectLocation &other) |
| rectLocation & | castFrom (const location &other) |
| rectLocation & | operator= (const rectLocation &other) |
| bool | operator== (const rectLocation &p) const |
| bool | operator!= (const rectLocation &p) const |
| bool | operator< (const rectLocation &other) |
| bool | operator> (const rectLocation &other) |
| rectLocation & | scale (const float &factor) |
| rectLocation & | scale (const rectLocation &other, const float &factor) |
| rectLocation & | shift (const point &shft) |
| rectLocation & | shift (const tpoint< float > &shft) |
| rectLocation & | shift (const rectLocation &other, const point &shft) |
| rectLocation & | shift (const rectLocation &other, const tpoint< float > &shft) |
| rectLocation & | rotate (const float &factor) |
| rectLocation & | rotate (const rectLocation &other, const float &factor) |
| bool | contains (const point &p) const |
| bool | contains (const tpoint< float > &p) const |
| float | distanceSqr (const rectLocation &other) |
| float | distanceSqr (const rectLocation &other, tpoint< float > &pt, tpoint< float > &po) |
| float | getArea () const |
Public Attributes | |
| tpoint< float > | position |
| float | angle |
| float | maxLength |
| float | minLength |
The rectangular locations are represented by its position in an image or channel, an orientation, the length at the orientation direction (maxLenght), and the length at the perpendicular direction (minLength).
The difference to lti::location is that the regions are considered rectangular. Two lengths are needed, where the orientation angle is always given for the maxLength.
You can get rectangular locations with the lti::boundingBox functor, and used them to check if objects overlap or not.
|
|
default constructor
|
|
||||||||||||||||||||
|
Constructor.
|
|
||||||||||||||||||||
|
Constructor.
|
|
|
copy constructor from a normal location
|
|
|
copy constructor
|
|
|
copy the other location into this rectLocation. The radius of the location will be assumed as the maxLength and minLength. |
|
|
Check if the given point can be considered within the rectLocation.
|
|
|
Check if the given point can be considered within the rectLocation.
|
|
|
copy operator
|
|
||||||||||||||||
|
returns the square of the distance between the borders of two locations or zero if they overlap or if one of the locations lies inside the other one.
|
|
|
returns the square of the distance between the borders of two locations or zero if they overlap or if one of the locations lies inside the other one.
|
|
|
Get the area of this location (maxLength*minLength).
|
|
|
operator !=
|
|
|
Comparition operator. A rectLocation is smaller than another one if its area is smaller, or in case of equal areas, if the position is smaller, i.e. if it has smaller y-coordinate, or in case of equal y-position, if it has smaller x-coordinate. |
|
|
alias for copy operator
|
|
|
operator ==
|
|
|
Comparition operator. A rectLocation is greater than another one if its area is greater, or in case of equal radii, if the position is greater, i.e. if it has greater y-coordinate, or in case of equal y-position, if it has greater x-coordinate. |
|
||||||||||||
|
Add the given angle in radius to the angle of the other rectLocation and leave the result here.
|
|
|
Add the given angle in radius to the actual angle.
|
|
||||||||||||
|
Multiply the other rectLocation's lengths and position with the given factor and leave the result here.
|
|
|
Multiply the lengths and position with the given factor.
|
|
||||||||||||
|
Shift the other rectLocation by the given point and leave the result here.
|
|
||||||||||||
|
Shift the other rectLocation by the given point and leave the result here.
|
|
|
Shift the rectLocation by the given point.
|
|
|
Shift the rectLocation by the given point.
|
|
|
Angle in radius of the rectLocation. It is usually given for the image coordinates, i.e. for a left coordinate system, in which positive angles are given clock-wise. |
|
|
maximum length. The angle corresponds to the axis with the maxLength |
|
|
minimum length. Should be smaller than maximum length |
|
|
Position of the rectLocation.
|