Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Member Functions | Private Attributes
jafar::gfm_v2::CamShiftTracker Class Reference

Class CamShiftTracker [detects] and [matches] features over an image sequence. More...


Detailed Description

Class CamShiftTracker [detects] and [matches] features over an image sequence.

It uses camshift algorithm to track a given model image or interest features.

Definition at line 16 of file CamShiftTracking.hpp.

#include <CamShiftTracking.hpp>

Inheritance diagram for jafar::gfm_v2::CamShiftTracker:
Inheritance graph
[legend]

List of all members.

Public Types

typedef
fdetect_v2::InterestFeature
< fdetect_v2::FloatDescriptor
Feature
typedef Feature::DescriptorType Descriptor
typedef
fdetect_v2::DetectionResult
< Feature
DR
typedef gfm_v2::MatchingResult
< Feature
MR
typedef
gfm_v2::MatchSourceInfo
< Feature
MatchSourceInfo
typedef
gfm_v2::DescriptorsBasedMatcher
< Feature
DescriptorsBasedMatcher

Public Member Functions

 CamShiftTracker (jafar::fdetect_v2::Detector< Feature > *detector, size_t ransac_required=7)
 constructor with parameters
void initTracking (jafar::image::Image const &model_image, unsigned int id=geom::InterestPoint::NO_ID)
void initTracking (DR &model_points, unsigned int id=geom::InterestPoint::NO_ID)
ublas::matrix< float > nextImage (jafar::image::Image const &image_next, jafar::image::Image const &prior_mask, cv::RotatedRect *init_region=NULL, unsigned int id=geom::InterestPoint::NO_ID)
ublas::matrix< float > nextImage (DR &observed_points, jafar::image::Image const &prior_mask, cv::RotatedRect *init_region=NULL, unsigned int id=geom::InterestPoint::NO_ID)
MR result ()
 mtaching result populated each time you call nextImage

Private Member Functions

bool is_valid_homography (const ublas::matrix< float > &h, double det_threshold)

Private Attributes

size_t m_ransac_required
 ransac required
MR m_result
 intermediate matching result

Constructor & Destructor Documentation

jafar::gfm_v2::CamShiftTracker::CamShiftTracker ( jafar::fdetect_v2::Detector< Feature > *  detector,
size_t  ransac_required = 7 
) [inline]

constructor with parameters

Parameters:
detectorinterest features detector
ransac_requirednbr of points required to perform ransac for homography computing

Definition at line 31 of file CamShiftTracking.hpp.


Member Function Documentation

void jafar::gfm_v2::CamShiftTracker::initTracking ( jafar::image::Image const &  model_image,
unsigned int  id = geom::InterestPoint::NO_ID 
) [inline]
Parameters:
model_imagethe first image of the sequence
idthe id for initial detection result

Reimplemented from jafar::gfm_v2::EngineTracking< fdetect_v2::InterestFeature< fdetect_v2::FloatDescriptor > >.

Definition at line 38 of file CamShiftTracking.hpp.

Referenced by initTracking().

void jafar::gfm_v2::CamShiftTracker::initTracking ( DR model_points,
unsigned int  id = geom::InterestPoint::NO_ID 
) [inline]
Parameters:
model_pointsthe first detection result
idthe id for initial detection result

Definition at line 47 of file CamShiftTracking.hpp.

References initTracking().

ublas::matrix<float> jafar::gfm_v2::CamShiftTracker::nextImage ( jafar::image::Image const &  image_next,
jafar::image::Image const &  prior_mask,
cv::RotatedRect *  init_region = NULL,
unsigned int  id = geom::InterestPoint::NO_ID 
) [inline]
Parameters:
image_nextThe next image of the sequence
prior_maskThe prior position of matched features. Set it to ones if no clue.
idThe id for this detection result
Returns:
the matching between the next image and the previous image (either initialized with initTracking or given by a previous call to this function)

Definition at line 60 of file CamShiftTracking.hpp.

References JFR_ASSERT, and jafar::image::Image::size().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:38 for Jafar by doxygen 1.7.6.1
LAAS-CNRS