Public Member Functions | Private Attributes
featureTrackerNode Class Reference

Manages the optical flow procedure. More...

#include <flow.hpp>

List of all members.

Public Member Functions

void act_on_image ()
void attemptTracking ()
int calculateFeatureMotion (unsigned int idx, double &mx, double &my)
 brief Calculates the average motion of all features successfully tracked from the previous frame.
void detectNewFeatures ()
void features_loop (const ros::TimerEvent &event)
 featureTrackerNode (ros::NodeHandle &nh, trackerData startupData)
void handle_camera (const sensor_msgs::ImageConstPtr &msg_ptr, const sensor_msgs::CameraInfoConstPtr &info_msg)
void handle_delay ()
void handle_very_new ()
void matchWithExistingTracks ()
void prepareForTermination ()
void process_info (const sensor_msgs::CameraInfoConstPtr &info_msg)
int publish_tracks (ros::Publisher *pub_message, unsigned int latestIndex)
void publishRoutine ()
void serverCallback (thermalvis::flowConfig &config, uint32_t level)
void timed_loop (const ros::TimerEvent &event)
void trimDisplayTrackVectors ()
void trimFeatureTrackVector ()
void updateDistanceConstraint ()

Private Attributes

vector< unsigned int > activeTrackIndices
vector< cv::Point2f > allRecoveredPoints
double averageTrackLength
cv::Mat blownImage
cv::Mat blurredImage
double blurSigma
unsigned int bufferIndices [2]
image_transport::CameraSubscriber camera_sub
unsigned int capturedFrameCount
trackerData configData
int currentIndex
cv_bridge::CvImagePtr cv_ptr
unsigned int cycleCount
bool cycleFlag
sensor_msgs::CameraInfo debug_camera_info
image_transport::CameraPublisher debug_pub
char debug_pub_name [256]
bool debugInitialized
cv::Ptr< cv::DescriptorExtractor > descriptorExtractor
int discardedNewFeatures
cv::Mat displayImage
cv::Mat displayImage2
vector< featureTrackdisplayTracks
cv::Mat dispMat
int distanceConstraint
ros::Time dodgeTime
cv::Mat drawImage
cv::Mat drawImage2
cv::Mat drawImage_resized
double elapsedTime
dynamic_reconfigure::Server
< thermalvis::flowConfig >
::CallbackType 
f
double factor
ofstream featureMotionStream
ros::Timer features_timer
double featuresVelocity
vector< featureTrackfeatureTrackVector
unsigned int frameCount
bool freezeNextOutput
vector< cv::Point2f > globalFinishingPoints
vector< cv::Point2f > globalStartingPoints
cv::Mat grayImage
cv::Mat grayImageBuffer [2]
cv::Mat H12
bool handleDelays
unsigned int historicalIndices []
cv::Mat homogDescriptors [2]
vector< cv::KeyPoint > homogPoints [2]
cv::Ptr< cv::FeatureDetector > homographyDetector
cv::Ptr< cv::DescriptorExtractor > homographyExtractor
image_transport::Subscriber image_sub
ros::Time image_time
ros::Subscriber info_sub
ros::Time info_time
bool infoProcessed
bool infoSent
image_transport::ImageTransportit
cv::Ptr< cv::FeatureDetector > keypointDetector [MAX_DETECTORS]
cv::Size ksize
long int lastAllocatedTrackIndex
ros::Time lastCycleFrameTime
cv::Mat lastImage
int lostTrackCount
vector< unsigned int > lostTrackIndices
bool lowPointsWarning
cv::Mat mappedImage
vector< cv::Point2f > matchedFeatures
vector< cv::Point2f > matchedPoints
double minResponse
sensor_msgs::Image msg_debug
cv::Mat newImage
int newlyDetectedFeatures
int newlyRecoveredFeatures
vector< cv::Point2f > newlySensedFeatures
char nodeName [256]
cv::Mat normalizedMat
unsigned int numHistoryFrames
cv::Mat olderImage
cv::Mat olderImages [MAX_HISTORY_FRAMES]
unsigned int olderIndices [MAX_HISTORY_FRAMES]
ros::Time olderTimes [MAX_HISTORY_FRAMES]
string optical_frame
ros::Time original_time
int peakTracks
vector< cv::Point2f > preservedRecoveredPoints
ros::Time previous_time
int previousIndex
unsigned int previousTrackedPointsPeak
ros::NodeHandle private_node_handle
image_transport::CameraPublisher pub_debug
unsigned int readyFrame
cv::Mat realImage
int referenceFrame
dynamic_reconfigure::Server
< thermalvis::flowConfig > 
server
struct timeval cycle_timer
test_timer 
skip_timer
unsigned int skippedFrameCount
double skipTime
cv::Mat subscribedImage
int successfullyTrackedFeatures
double testTime
ros::Timer timer
ofstream trackCountStream
ros::Publisher tracks_pub
char tracks_pub_name [256]
bool undergoingDelay
vector< cv::Point2f > unmatchedPoints

Detailed Description

Manages the optical flow procedure.

Definition at line 149 of file flow.hpp.


Constructor & Destructor Documentation

Definition at line 1943 of file flow.cpp.


Member Function Documentation

Definition at line 424 of file flow.cpp.

Definition at line 568 of file flow.cpp.

int featureTrackerNode::calculateFeatureMotion ( unsigned int  idx,
double &  mx,
double &  my 
)

brief Calculates the average motion of all features successfully tracked from the previous frame.

Definition at line 1563 of file flow.cpp.

Definition at line 1153 of file flow.cpp.

Definition at line 1380 of file flow.cpp.

void featureTrackerNode::handle_camera ( const sensor_msgs::ImageConstPtr &  msg_ptr,
const sensor_msgs::CameraInfoConstPtr &  info_msg 
)

Definition at line 270 of file flow.cpp.

Definition at line 1896 of file flow.cpp.

Definition at line 1759 of file flow.cpp.

Definition at line 924 of file flow.cpp.

Definition at line 1754 of file flow.cpp.

void featureTrackerNode::process_info ( const sensor_msgs::CameraInfoConstPtr &  info_msg)

Definition at line 336 of file flow.cpp.

int featureTrackerNode::publish_tracks ( ros::Publisher pub_message,
unsigned int  latestIndex 
)

Definition at line 178 of file flow.cpp.

Definition at line 782 of file flow.cpp.

void featureTrackerNode::serverCallback ( thermalvis::flowConfig &  config,
uint32_t  level 
)

Definition at line 2139 of file flow.cpp.

Definition at line 2109 of file flow.cpp.

Definition at line 555 of file flow.cpp.

Definition at line 526 of file flow.cpp.

Definition at line 725 of file flow.cpp.


Member Data Documentation

vector<unsigned int> featureTrackerNode::activeTrackIndices [private]

Definition at line 178 of file flow.hpp.

vector<cv::Point2f> featureTrackerNode::allRecoveredPoints [private]

Definition at line 278 of file flow.hpp.

Definition at line 300 of file flow.hpp.

cv::Mat featureTrackerNode::blownImage [private]

Definition at line 214 of file flow.hpp.

Definition at line 256 of file flow.hpp.

Definition at line 174 of file flow.hpp.

unsigned int featureTrackerNode::bufferIndices[2] [private]

Definition at line 245 of file flow.hpp.

Definition at line 206 of file flow.hpp.

Definition at line 158 of file flow.hpp.

Definition at line 199 of file flow.hpp.

Definition at line 285 of file flow.hpp.

Definition at line 212 of file flow.hpp.

unsigned int featureTrackerNode::cycleCount [private]

Definition at line 154 of file flow.hpp.

Definition at line 155 of file flow.hpp.

sensor_msgs::CameraInfo featureTrackerNode::debug_camera_info [private]

Definition at line 201 of file flow.hpp.

Definition at line 204 of file flow.hpp.

Definition at line 237 of file flow.hpp.

Definition at line 165 of file flow.hpp.

cv::Ptr<cv::DescriptorExtractor> featureTrackerNode::descriptorExtractor [private]

Definition at line 265 of file flow.hpp.

Definition at line 181 of file flow.hpp.

Definition at line 243 of file flow.hpp.

Definition at line 214 of file flow.hpp.

Definition at line 259 of file flow.hpp.

cv::Mat featureTrackerNode::dispMat [private]

Definition at line 189 of file flow.hpp.

Definition at line 287 of file flow.hpp.

Definition at line 284 of file flow.hpp.

cv::Mat featureTrackerNode::drawImage [private]

Definition at line 243 of file flow.hpp.

cv::Mat featureTrackerNode::drawImage2 [private]

Definition at line 214 of file flow.hpp.

Definition at line 243 of file flow.hpp.

Definition at line 228 of file flow.hpp.

dynamic_reconfigure::Server<thermalvis::flowConfig>::CallbackType featureTrackerNode::f [private]

Definition at line 298 of file flow.hpp.

double featureTrackerNode::factor [private]

Definition at line 195 of file flow.hpp.

Definition at line 163 of file flow.hpp.

Definition at line 197 of file flow.hpp.

Definition at line 252 of file flow.hpp.

Definition at line 291 of file flow.hpp.

unsigned int featureTrackerNode::frameCount [private]

Definition at line 230 of file flow.hpp.

Definition at line 293 of file flow.hpp.

vector<cv::Point2f> featureTrackerNode::globalFinishingPoints [private]

Definition at line 276 of file flow.hpp.

vector<cv::Point2f> featureTrackerNode::globalStartingPoints [private]

Definition at line 276 of file flow.hpp.

cv::Mat featureTrackerNode::grayImage [private]

Definition at line 215 of file flow.hpp.

Definition at line 246 of file flow.hpp.

cv::Mat featureTrackerNode::H12 [private]

Definition at line 193 of file flow.hpp.

Definition at line 187 of file flow.hpp.

unsigned int featureTrackerNode::historicalIndices[] [private]

Definition at line 176 of file flow.hpp.

Definition at line 268 of file flow.hpp.

vector<cv::KeyPoint> featureTrackerNode::homogPoints[2] [private]

Definition at line 264 of file flow.hpp.

cv::Ptr<cv::FeatureDetector> featureTrackerNode::homographyDetector [private]

Definition at line 262 of file flow.hpp.

cv::Ptr<cv::DescriptorExtractor> featureTrackerNode::homographyExtractor [private]

Definition at line 266 of file flow.hpp.

Definition at line 208 of file flow.hpp.

Definition at line 284 of file flow.hpp.

Definition at line 207 of file flow.hpp.

Definition at line 284 of file flow.hpp.

Definition at line 191 of file flow.hpp.

Definition at line 191 of file flow.hpp.

Definition at line 152 of file flow.hpp.

cv::Ptr<cv::FeatureDetector> featureTrackerNode::keypointDetector[MAX_DETECTORS] [private]

Definition at line 261 of file flow.hpp.

cv::Size featureTrackerNode::ksize [private]

Definition at line 173 of file flow.hpp.

Definition at line 160 of file flow.hpp.

Definition at line 156 of file flow.hpp.

cv::Mat featureTrackerNode::lastImage [private]

Definition at line 215 of file flow.hpp.

Definition at line 273 of file flow.hpp.

vector<unsigned int> featureTrackerNode::lostTrackIndices [private]

Definition at line 183 of file flow.hpp.

Definition at line 171 of file flow.hpp.

Definition at line 215 of file flow.hpp.

vector<cv::Point2f> featureTrackerNode::matchedFeatures [private]

Definition at line 282 of file flow.hpp.

vector<cv::Point2f> featureTrackerNode::matchedPoints [private]

Definition at line 278 of file flow.hpp.

Definition at line 195 of file flow.hpp.

sensor_msgs::Image featureTrackerNode::msg_debug [private]

Definition at line 235 of file flow.hpp.

cv::Mat featureTrackerNode::newImage [private]

Definition at line 215 of file flow.hpp.

Definition at line 167 of file flow.hpp.

Definition at line 272 of file flow.hpp.

vector<cv::Point2f> featureTrackerNode::newlySensedFeatures [private]

Definition at line 281 of file flow.hpp.

char featureTrackerNode::nodeName[256] [private]

Definition at line 241 of file flow.hpp.

Definition at line 214 of file flow.hpp.

unsigned int featureTrackerNode::numHistoryFrames [private]

Definition at line 248 of file flow.hpp.

cv::Mat featureTrackerNode::olderImage [private]

Definition at line 215 of file flow.hpp.

Definition at line 251 of file flow.hpp.

Definition at line 249 of file flow.hpp.

Definition at line 250 of file flow.hpp.

Definition at line 169 of file flow.hpp.

Definition at line 284 of file flow.hpp.

Definition at line 289 of file flow.hpp.

vector<cv::Point2f> featureTrackerNode::preservedRecoveredPoints [private]

Definition at line 278 of file flow.hpp.

Definition at line 284 of file flow.hpp.

Definition at line 285 of file flow.hpp.

Definition at line 210 of file flow.hpp.

Definition at line 239 of file flow.hpp.

Definition at line 234 of file flow.hpp.

unsigned int featureTrackerNode::readyFrame [private]

Definition at line 231 of file flow.hpp.

cv::Mat featureTrackerNode::realImage [private]

Definition at line 215 of file flow.hpp.

Definition at line 184 of file flow.hpp.

dynamic_reconfigure::Server<thermalvis::flowConfig> featureTrackerNode::server [private]

Definition at line 297 of file flow.hpp.

struct timeval cycle_timer test_timer featureTrackerNode::skip_timer [private]

Definition at line 227 of file flow.hpp.

unsigned int featureTrackerNode::skippedFrameCount [private]

Definition at line 158 of file flow.hpp.

double featureTrackerNode::skipTime [private]

Definition at line 228 of file flow.hpp.

Definition at line 214 of file flow.hpp.

Definition at line 180 of file flow.hpp.

double featureTrackerNode::testTime [private]

Definition at line 228 of file flow.hpp.

Definition at line 197 of file flow.hpp.

Definition at line 163 of file flow.hpp.

Definition at line 203 of file flow.hpp.

Definition at line 238 of file flow.hpp.

Definition at line 186 of file flow.hpp.

vector<cv::Point2f> featureTrackerNode::unmatchedPoints [private]

Definition at line 278 of file flow.hpp.


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


thermalvis
Author(s): Stephen Vidas
autogenerated on Sun Jan 5 2014 11:38:45