Jafar
|
Class CamShiftTracker [detects] and [matches] features over an image sequence. More...
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>
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 |
jafar::gfm_v2::CamShiftTracker::CamShiftTracker | ( | jafar::fdetect_v2::Detector< Feature > * | detector, |
size_t | ransac_required = 7 |
||
) | [inline] |
constructor with parameters
detector | interest features detector |
ransac_required | nbr of points required to perform ransac for homography computing |
Definition at line 31 of file CamShiftTracking.hpp.
void jafar::gfm_v2::CamShiftTracker::initTracking | ( | jafar::image::Image const & | model_image, |
unsigned int | id = geom::InterestPoint::NO_ID |
||
) | [inline] |
model_image | the first image of the sequence |
id | the 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] |
model_points | the first detection result |
id | the 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] |
image_next | The next image of the sequence |
prior_mask | The prior position of matched features. Set it to ones if no clue. |
id | The id for this detection result |
Definition at line 60 of file CamShiftTracking.hpp.
References JFR_ASSERT, and jafar::image::Image::size().
Generated on Wed Oct 15 2014 00:37:38 for Jafar by doxygen 1.7.6.1 |