LTI-Lib latest version v1.9 - last update 24 Nov 2005
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

lti::location Class Reference

The location class specifies a small region in an image or channel. More...

#include <ltiLocation.h>

Collaboration diagram for lti::location:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 location ()
 location (const point &pos, const float &ang, const float &rad)
 location (const tpoint< float > &pos, const float &ang, const float &rad)
 location (const location &other)
locationcopy (const location &other)
locationoperator= (const location &other)
bool operator== (const location &p) const
bool operator!= (const location &p) const
bool operator< (const location &other)
bool operator> (const location &other)
locationscale (const float &factor)
locationscale (const location &other, const float &factor)
locationshift (const point &shft)
locationshift (const tpoint< float > &shft)
locationshift (const location &other, const point &shft)
locationshift (const location &other, const tpoint< float > &shft)
locationrotate (const float &factor)
locationrotate (const location &other, const float &factor)
bool contains (const point &p) const
bool contains (const tpoint< float > &p) const
float distance (const location &other)

Public Attributes

tpoint< float > position
float angle
float radius

Detailed Description

The location class specifies a small region in an image or channel.

It is mainly used in the extraction of local features. There are some functors to extract the important or salient locations in an image, for example lti::axLocalRegions.

The locations are represented by its position in an image or channel, an orientation and a radius.


Constructor & Destructor Documentation

lti::location::location  ) 
 

default constructor

lti::location::location const point pos,
const float &  ang,
const float &  rad
 

Constructor.

Parameters:
pos position of the middle point of the location
ang angle of the location (in radians)
rad radius or size of the location

lti::location::location const tpoint< float > &  pos,
const float &  ang,
const float &  rad
 

Constructor.

Parameters:
pos position of the middle point of the location
ang angle of the location (in radians)
rad radius or size of the location

lti::location::location const location other  ) 
 

copy constructor


Member Function Documentation

bool lti::location::contains const tpoint< float > &  p  )  const
 

Check if the given point can be considered within the location, i.e.

if ||p-position|| < radius

bool lti::location::contains const point p  )  const
 

Check if the given point can be considered within the location, i.e.

if ||p-position|| < radius

location& lti::location::copy const location other  ) 
 

copy operator

float lti::location::distance const location other  ) 
 

returns the distance between the borders of two locations or zero if they overlap or if one of the locations lies inside the other one.

bool lti::location::operator!= const location p  )  const
 

operator !=

bool lti::location::operator< const location other  ) 
 

Comparition operator.

A location is smaller than another one if its radius is smaller, or in case of equal radii, 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.

location& lti::location::operator= const location other  ) 
 

alias for copy operator

bool lti::location::operator== const location p  )  const
 

operator ==

bool lti::location::operator> const location other  ) 
 

Comparition operator.

A location is greater than another one if its radius 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.

location& lti::location::rotate const location other,
const float &  factor
 

Add the given angle in radius to the angle of the other location and leave the result here.

location& lti::location::rotate const float &  factor  ) 
 

Add the given angle in radius to the actual angle.

location& lti::location::scale const location other,
const float &  factor
 

Multiply the other location's radius and position with the given factor and leave the result here.

location& lti::location::scale const float &  factor  ) 
 

Multiply the radius and position with the given factor.

location& lti::location::shift const location other,
const tpoint< float > &  shft
 

Shift the other location by the given point and leave the result here.

location& lti::location::shift const location other,
const point shft
 

Shift the other location by the given point and leave the result here.

location& lti::location::shift const tpoint< float > &  shft  ) 
 

Shift the location by the given point.

location& lti::location::shift const point shft  ) 
 

Shift the location by the given point.


Member Data Documentation

float lti::location::angle
 

Angle in radius of the location.

It is usually given for the image coordinates, i.e. for a left coordinate system, in which positive angles are given clock-wise.

tpoint<float> lti::location::position
 

Position of the location.

float lti::location::radius
 

Radius or size of the location.


The documentation for this class was generated from the following file:
Generated on Thu Nov 24 16:44:34 2005 for LTI-Lib by Doxygen 1.4.4