C
must be an object of class binary_function
with back insertion sequences as first and second parameter and double as return value.
More...
#include <correlation_tracking_tool.h>
Inheritance diagram for mimas::correlation_tracking_tool< T, C >:
Public Member Functions | |
void | pushPolyCoord (int xcoord, int ycoord) |
push a point of a polygon which specifies the tracking template | |
const std::list< Cartesian< int > > & | getPolyCoords (void) const |
returns the current list of the polygon template points | |
void | showPolyCoords (void) |
display the polygon points | |
void | clearPolyCoords (void) |
clears the polygon points (e.g. if you want to specify a new polygon) | |
void | sortPolyCoords (void) |
sort polygon points (useful when displaying/debugging) | |
void | createTemplate (image< T > &trackingImage) |
create the template from the polygon points that have been pushed | |
void | writeTemplateToFilePGM (char *fn) |
write the template to a PGM file (for debugging) | |
void | writeMaskedTemplateToFilePGM (char *fn) |
write the template mask to a PGM file (for debugging) | |
void | showPolygonOnImage (image< T > &someImage) |
display the polygon onto an image | |
void | showPolygonOnImage (image< T > &someImage, int greylevel) |
display the polyton onto an image using gray colour <greylevel>. | |
double | getTrackingCorr (void) |
return the last tracking correlation value | |
int | getTemplateArea (void) |
return the area of a template | |
void | saveParameters (const char *fileName) |
save parameters to an XML file | |
void | loadParameters (const char *fileName) |
load parameters from an XML file | |
Cartesian< int > | trackCorrelation (image< T > &trackingImage, Cartesian< int > &startCoord, Cartesian< int > &range, C &c) |
perform correlation on trackingImage with specified start coordinates and range | |
Cartesian< int > | trackCorrelation (image< T > &trackingImage, Cartesian< int > &startCoord, C &c) |
perform correlation on trackingImage with specified start coordinates. The tracking range is assumed pre-specified using the setTrackingRange() functions. | |
Cartesian< int > | trackCorrelation (image< T > &trackingImage, C &c) |
uses the startCoord from the initial image sent to the template, or the end tracking point from the last tracked image. | |
std::list< Cartesian< int > > | trackCorrelationList (image< T > &trackingImage, Cartesian< int > &startCoord, Cartesian< int > &range, C &c) |
track and return a list of the points of the final polygon after tracking. | |
void | setAutoUpdateTemplate (bool val) |
automatically update the template when correlation is to low? Default=false; | |
void | setAutoUpdateCorrVal (double val) |
lowest correlation before template is updated. | |
void | setTrackingRange (int range) |
tracking range. The single value specifies the ranges in the x and y direction | |
void | setTrackingRange (int xrange, int yrange) |
overloaded function to set x and y tracking range seperately | |
Cartesian< int > | getTrackingPoint (void) |
returns the co-ordinates of the main tracking point | |
Cartesian< int > | getTrackingDisplacement (void) |
returns the last tracking region displacement | |
correlation_tracking_tool (void) | |
constructor | |
virtual | ~correlation_tracking_tool (void) |
destructor | |
void | variableDiagnostics (void) |
stick debugging stuff here | |
Public Attributes | |
bool | debug |
Protected Attributes | |
int | numPolyPoints |
number of points on polygon | |
int * | xpoly |
int * | ypoly |
point on the polygon | |
std::list< Cartesian< int > > | polyCoords |
std::list< Cartesian< int > > | finalPolyCoords |
the polygon coordinates before and after execution of tracking procedure | |
image< T > | trackingTemplate |
the template | |
image< T > | trackingMask |
the rectangular mask used to store shape of template | |
int | templateRows |
int | templateCols |
rows and columns of the bounding box of the polygon template | |
Cartesian< int > | offsetForFirstCoord |
offset of first coordinate point from top left corner of bounding box of template |
C
must be an object of class binary_function
with back insertion sequences as first and second parameter and double as return value.
Definition at line 29 of file correlation_tracking_tool.h.
mimas::correlation_tracking_tool< T, C >::correlation_tracking_tool | ( | void | ) |
constructor
virtual mimas::correlation_tracking_tool< T, C >::~correlation_tracking_tool | ( | void | ) | [virtual] |
destructor
void mimas::correlation_tracking_tool< T, C >::pushPolyCoord | ( | int | xcoord, | |
int | ycoord | |||
) |
push a point of a polygon which specifies the tracking template
const std::list< Cartesian<int> >& mimas::correlation_tracking_tool< T, C >::getPolyCoords | ( | void | ) | const |
returns the current list of the polygon template points
void mimas::correlation_tracking_tool< T, C >::showPolyCoords | ( | void | ) |
display the polygon points
void mimas::correlation_tracking_tool< T, C >::clearPolyCoords | ( | void | ) |
clears the polygon points (e.g. if you want to specify a new polygon)
void mimas::correlation_tracking_tool< T, C >::sortPolyCoords | ( | void | ) |
sort polygon points (useful when displaying/debugging)
void mimas::correlation_tracking_tool< T, C >::createTemplate | ( | image< T > & | trackingImage | ) |
create the template from the polygon points that have been pushed
void mimas::correlation_tracking_tool< T, C >::writeTemplateToFilePGM | ( | char * | fn | ) |
write the template to a PGM file (for debugging)
void mimas::correlation_tracking_tool< T, C >::writeMaskedTemplateToFilePGM | ( | char * | fn | ) |
write the template mask to a PGM file (for debugging)
void mimas::correlation_tracking_tool< T, C >::showPolygonOnImage | ( | image< T > & | someImage | ) |
display the polygon onto an image
void mimas::correlation_tracking_tool< T, C >::showPolygonOnImage | ( | image< T > & | someImage, | |
int | greylevel | |||
) |
display the polyton onto an image using gray colour <greylevel>.
double mimas::correlation_tracking_tool< T, C >::getTrackingCorr | ( | void | ) |
return the last tracking correlation value
int mimas::correlation_tracking_tool< T, C >::getTemplateArea | ( | void | ) |
return the area of a template
void mimas::correlation_tracking_tool< T, C >::saveParameters | ( | const char * | fileName | ) |
save parameters to an XML file
void mimas::correlation_tracking_tool< T, C >::loadParameters | ( | const char * | fileName | ) |
load parameters from an XML file
Cartesian<int> mimas::correlation_tracking_tool< T, C >::trackCorrelation | ( | image< T > & | trackingImage, | |
Cartesian< int > & | startCoord, | |||
Cartesian< int > & | range, | |||
C & | c | |||
) |
perform correlation on trackingImage with specified start coordinates and range
Cartesian<int> mimas::correlation_tracking_tool< T, C >::trackCorrelation | ( | image< T > & | trackingImage, | |
Cartesian< int > & | startCoord, | |||
C & | c | |||
) |
perform correlation on trackingImage with specified start coordinates. The tracking range is assumed pre-specified using the setTrackingRange() functions.
Cartesian<int> mimas::correlation_tracking_tool< T, C >::trackCorrelation | ( | image< T > & | trackingImage, | |
C & | c | |||
) |
uses the startCoord from the initial image sent to the template, or the end tracking point from the last tracked image.
std::list< Cartesian<int> > mimas::correlation_tracking_tool< T, C >::trackCorrelationList | ( | image< T > & | trackingImage, | |
Cartesian< int > & | startCoord, | |||
Cartesian< int > & | range, | |||
C & | c | |||
) |
track and return a list of the points of the final polygon after tracking.
void mimas::correlation_tracking_tool< T, C >::setAutoUpdateTemplate | ( | bool | val | ) |
automatically update the template when correlation is to low? Default=false;
void mimas::correlation_tracking_tool< T, C >::setAutoUpdateCorrVal | ( | double | val | ) |
lowest correlation before template is updated.
void mimas::correlation_tracking_tool< T, C >::setTrackingRange | ( | int | range | ) |
tracking range. The single value specifies the ranges in the x and y direction
void mimas::correlation_tracking_tool< T, C >::setTrackingRange | ( | int | xrange, | |
int | yrange | |||
) |
overloaded function to set x and y tracking range seperately
Cartesian<int> mimas::correlation_tracking_tool< T, C >::getTrackingPoint | ( | void | ) |
returns the co-ordinates of the main tracking point
Cartesian<int> mimas::correlation_tracking_tool< T, C >::getTrackingDisplacement | ( | void | ) |
returns the last tracking region displacement
void mimas::correlation_tracking_tool< T, C >::variableDiagnostics | ( | void | ) |
stick debugging stuff here
int mimas::correlation_tracking_tool< T, C >::numPolyPoints [protected] |
int* mimas::correlation_tracking_tool< T, C >::xpoly [protected] |
Definition at line 33 of file correlation_tracking_tool.h.
int * mimas::correlation_tracking_tool< T, C >::ypoly [protected] |
std::list< Cartesian<int> > mimas::correlation_tracking_tool< T, C >::polyCoords [protected] |
Definition at line 34 of file correlation_tracking_tool.h.
std::list< Cartesian<int> > mimas::correlation_tracking_tool< T, C >::finalPolyCoords [protected] |
the polygon coordinates before and after execution of tracking procedure
Definition at line 34 of file correlation_tracking_tool.h.
image<T> mimas::correlation_tracking_tool< T, C >::trackingTemplate [protected] |
image<T> mimas::correlation_tracking_tool< T, C >::trackingMask [protected] |
the rectangular mask used to store shape of template
Definition at line 36 of file correlation_tracking_tool.h.
int mimas::correlation_tracking_tool< T, C >::templateRows [protected] |
Definition at line 37 of file correlation_tracking_tool.h.
int mimas::correlation_tracking_tool< T, C >::templateCols [protected] |
rows and columns of the bounding box of the polygon template
Definition at line 37 of file correlation_tracking_tool.h.
Cartesian<int> mimas::correlation_tracking_tool< T, C >::offsetForFirstCoord [protected] |
offset of first coordinate point from top left corner of bounding box of template
Definition at line 38 of file correlation_tracking_tool.h.
bool mimas::correlation_tracking_tool< T, C >::debug |
Definition at line 81 of file correlation_tracking_tool.h.