Detector class for AGAST corner point detector (5_8). More...
#include <agast_2d.h>
Public Types | |
typedef boost::shared_ptr < const AgastDetector5_8 > | ConstPtr |
typedef boost::shared_ptr < AgastDetector5_8 > | Ptr |
Public Member Functions | |
AgastDetector5_8 (const size_t width, const size_t height, const double threshold, const double bmax=255) | |
Constructor. | |
int | computeCornerScore (const unsigned char *im) const |
Computes corner score. | |
int | computeCornerScore (const float *im) const |
Computes corner score. | |
void | detect (const unsigned char *im, std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > &corners_all) const |
Detects points of interest (i.e., keypoints) in the given image. | |
void | detect (const float *im, std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > &corners_all) const |
Detects points of interest (i.e., keypoints) in the given image. | |
~AgastDetector5_8 () | |
Destructor. | |
Protected Member Functions | |
void | initPattern () |
Initializes the sample pattern. | |
Private Attributes | |
int_fast16_t | s_offset0_ |
int_fast16_t | s_offset1_ |
int_fast16_t | s_offset2_ |
int_fast16_t | s_offset3_ |
int_fast16_t | s_offset4_ |
int_fast16_t | s_offset5_ |
int_fast16_t | s_offset6_ |
int_fast16_t | s_offset7_ |
Static Private Attributes | |
static const int | border_width_ = 1 |
Border width. |
Detector class for AGAST corner point detector (5_8).
Adapted from the C++ implementation of Elmar Mair (http://www6.in.tum.de/Main/ResearchAgast).
Definition at line 348 of file agast_2d.h.
typedef boost::shared_ptr<const AgastDetector5_8> pcl::keypoints::agast::AgastDetector5_8::ConstPtr |
Reimplemented from pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 352 of file agast_2d.h.
typedef boost::shared_ptr<AgastDetector5_8> pcl::keypoints::agast::AgastDetector5_8::Ptr |
Reimplemented from pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 351 of file agast_2d.h.
pcl::keypoints::agast::AgastDetector5_8::AgastDetector5_8 | ( | const size_t | width, |
const size_t | height, | ||
const double | threshold, | ||
const double | bmax = 255 |
||
) | [inline] |
Constructor.
[in] | width | the width of the image to process |
[in] | height | the height of the image to process |
[in] | threshold | the corner detection threshold |
[in] | bmax | the max image value (default: 255) |
Definition at line 360 of file agast_2d.h.
Destructor.
Definition at line 370 of file agast_2d.h.
int pcl::keypoints::agast::AgastDetector5_8::computeCornerScore | ( | const unsigned char * | im | ) | const [virtual] |
Computes corner score.
im |
Implements pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 9426 of file agast_2d.cpp.
int pcl::keypoints::agast::AgastDetector5_8::computeCornerScore | ( | const float * | im | ) | const [virtual] |
Computes corner score.
im |
Implements pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 9442 of file agast_2d.cpp.
void pcl::keypoints::agast::AgastDetector5_8::detect | ( | const unsigned char * | im, |
std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > & | corners_all | ||
) | const [virtual] |
Detects points of interest (i.e., keypoints) in the given image.
[in] | im | the image to detect keypoints in |
[out] | corners_all | the resultant set of keypoints detected |
Implements pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 9392 of file agast_2d.cpp.
void pcl::keypoints::agast::AgastDetector5_8::detect | ( | const float * | im, |
std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > & | corners_all | ||
) | const [virtual] |
Detects points of interest (i.e., keypoints) in the given image.
[in] | im | the image to detect keypoints in |
[out] | corners_all | the resultant set of keypoints detected |
Implements pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 9409 of file agast_2d.cpp.
void pcl::keypoints::agast::AgastDetector5_8::initPattern | ( | ) | [protected, virtual] |
Initializes the sample pattern.
Implements pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 9378 of file agast_2d.cpp.
const int pcl::keypoints::agast::AgastDetector5_8::border_width_ = 1 [static, private] |
Border width.
Definition at line 405 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector5_8::s_offset0_ [private] |
Definition at line 408 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector5_8::s_offset1_ [private] |
Definition at line 409 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector5_8::s_offset2_ [private] |
Definition at line 410 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector5_8::s_offset3_ [private] |
Definition at line 411 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector5_8::s_offset4_ [private] |
Definition at line 412 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector5_8::s_offset5_ [private] |
Definition at line 413 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector5_8::s_offset6_ [private] |
Definition at line 414 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector5_8::s_offset7_ [private] |
Definition at line 415 of file agast_2d.h.