Public Member Functions | Private Member Functions | Private Attributes
labust::blueview::BVImageProcessor Class Reference

#include <ImageProcessing.hpp>

List of all members.

Public Member Functions

 BVImageProcessor ()
TrackedFeature getTracklet ()
bool isTracking ()
bool processROI (TrackerROI &roi)
void setPosition (const SonarHead &cnt)
void setTarget (const SonarHead &cnt)
 ~BVImageProcessor ()

Private Member Functions

void _update (const SonarHead &head)
cv::Mat adjust (cv::Mat &original)
bool associate (boost::shared_ptr< std::vector< TrackedFeature > > features)
std::pair< double, double > deg2meter (double difflat, double difflon, double lat)
cv::Mat histthresh (const cv::Mat &img, float min, float max, uchar max_val)
boost::shared_ptr< std::vector
< TrackedFeature > > 
label (cv::Mat &binary)
void llz2xy (const SonarHead &head, TrackedFeature &tracklet)
std::pair< double, double > meter2deg (double x, double y, double lat)
void meter2pixel (TrackerROI &roi, TrackedFeature &tracklet)
void pixel2meter (TrackerROI &roi, TrackedFeature &tracklet)
cv::Mat threshold (cv::Mat &adjusted)
void xy2llz (const SonarHead &head, TrackedFeature &tracklet)

Private Attributes

bool foundVehicle
bool hasTarget
bool hasVehicle
cv::Mat R
double resolution
double roi_len
cv::Mat roiImg
cv::Point roiOffset
TrackedFeature target
TrackedFeature tracklet

Detailed Description

The class incorporates the image processing for the NURC BlueView tracking system.

Definition at line 46 of file ImageProcessing.hpp.


Constructor & Destructor Documentation

Generic constructor.

Definition at line 46 of file ImageProcessing.cpp.

Generic destructor.

Definition at line 53 of file ImageProcessing.cpp.


Member Function Documentation

void BVImageProcessor::_update ( const SonarHead head) [private]

This method updates the rotation matrix NED->XYZ conversion

Definition at line 443 of file ImageProcessing.cpp.

cv::Mat BVImageProcessor::adjust ( cv::Mat &  original) [private]

This method does the prefiltering

Definition at line 146 of file ImageProcessing.cpp.

bool BVImageProcessor::associate ( boost::shared_ptr< std::vector< TrackedFeature > >  features) [private]

Associate detections with one or more targets

Parameters:
featuresFeatures found in the image

Definition at line 246 of file ImageProcessing.cpp.

std::pair< double, double > BVImageProcessor::deg2meter ( double  difflat,
double  difflon,
double  lat 
) [private]

Degree to meter conversion.

Parameters:
difflatNorth distance in degree
difflonEast distance in degree
latLatitude position in decimal degrees
Returns:
Returns pair of lat,lon degrees

These conversion where taken of Wikipedia :) http://en.wikipedia.org/wiki/Geographic_coordinate_system#Cartesian_coordinates

Definition at line 497 of file ImageProcessing.cpp.

Return the info about the tracked feature

Definition at line 87 of file ImageProcessing.hpp.

cv::Mat BVImageProcessor::histthresh ( const cv::Mat &  img,
float  min,
float  max,
uchar  max_val 
) [private]

Hysteresis threshold

Parameters:
imgImage to be processed
minMinimum threshold
maxMaximum threshold
max_valValue to assign

Definition at line 166 of file ImageProcessing.cpp.

Checks if the tracker has found the vehicle

Definition at line 82 of file ImageProcessing.hpp.

boost::shared_ptr< std::vector< TrackedFeature > > BVImageProcessor::label ( cv::Mat &  binary) [private]

This method does the analysis

Definition at line 215 of file ImageProcessing.cpp.

void BVImageProcessor::llz2xy ( const SonarHead head,
TrackedFeature tracklet 
) [private]

This method converts the estimated world lat-lon-z feature coordinates to the in x-y coordianates in the sonar head.

Parameters:
headThe sonar head information
trackletThe tracked feature information

Definition at line 335 of file ImageProcessing.cpp.

std::pair< double, double > BVImageProcessor::meter2deg ( double  x,
double  y,
double  lat 
) [private]

Meters to degree conversion.

Parameters:
xNorth distance in meters
yEast distance in meters
latLatitude position in decimal degrees
Returns:
Returns pair of lat,lon degrees

These conversion where taken of Wikipedia :) http://en.wikipedia.org/wiki/Geographic_coordinate_system#Cartesian_coordinates

Definition at line 483 of file ImageProcessing.cpp.

void BVImageProcessor::meter2pixel ( TrackerROI roi,
TrackedFeature tracklet 
) [inline, private]

Caluclate the pixel position based on ROI information and sonar head X-Y position

Definition at line 415 of file ImageProcessing.cpp.

void BVImageProcessor::pixel2meter ( TrackerROI roi,
TrackedFeature tracklet 
) [inline, private]

Caluclate the pixel position back to sonar head X-Y position

Definition at line 430 of file ImageProcessing.cpp.

Main method for processing an ROI. Currently no automatic detection is supported. You need to set the initial vehicle position.

Parameters:
roiThe ROI object.

Definition at line 56 of file ImageProcessing.cpp.

Set manually the inital vehicle contact.

Parameters:
cntConntact information in the SonarHead structure

Definition at line 297 of file ImageProcessing.cpp.

void BVImageProcessor::setTarget ( const SonarHead cnt)

Set manually the inital vehicle contact.

Parameters:
cntConntact information in the SonarHead structure

Definition at line 316 of file ImageProcessing.cpp.

cv::Mat BVImageProcessor::threshold ( cv::Mat &  adjusted) [private]

This method does the thresholding

Definition at line 156 of file ImageProcessing.cpp.

void BVImageProcessor::xy2llz ( const SonarHead head,
TrackedFeature tracklet 
) [private]

This method converts the features x-y coordinates in the sonar head to the world lat-lon-z.

Parameters:
headThe sonar head information
trackletThe tracked feature information

Definition at line 389 of file ImageProcessing.cpp.


Member Data Documentation

Flag to indicate processing found the vehicle

Definition at line 202 of file ImageProcessing.hpp.

Target found indicator.

Definition at line 206 of file ImageProcessing.hpp.

Flag to indicate vehicle set point

Definition at line 198 of file ImageProcessing.hpp.

Rotation matrix NED->XYZ

Definition at line 194 of file ImageProcessing.hpp.

Meter resolution

Definition at line 190 of file ImageProcessing.hpp.

Size of the region of interest

Definition at line 186 of file ImageProcessing.hpp.

Internal roi

Definition at line 178 of file ImageProcessing.hpp.

Internal roi offset

Definition at line 182 of file ImageProcessing.hpp.

Target feature information

Definition at line 174 of file ImageProcessing.hpp.

Tracked feature information

Definition at line 170 of file ImageProcessing.hpp.


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


target_detector
Author(s): Gyula Nagy
autogenerated on Fri Feb 7 2014 11:36:05