Detector class for AGAST corner point detector (7_12s). More...
#include <agast_2d.h>
Public Types | |
typedef boost::shared_ptr < const AgastDetector7_12s > | ConstPtr |
typedef boost::shared_ptr < AgastDetector7_12s > | Ptr |
Public Member Functions | |
AgastDetector7_12s (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. | |
~AgastDetector7_12s () | |
Destructor. | |
Protected Member Functions | |
void | initPattern () |
Initializes the sample pattern. | |
Private Attributes | |
int_fast16_t | s_offset0_ |
int_fast16_t | s_offset10_ |
int_fast16_t | s_offset11_ |
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_ |
int_fast16_t | s_offset8_ |
int_fast16_t | s_offset9_ |
Static Private Attributes | |
static const int | border_width_ = 2 |
Border width. |
Detector class for AGAST corner point detector (7_12s).
Adapted from the C++ implementation of Elmar Mair (http://www6.in.tum.de/Main/ResearchAgast).
Definition at line 266 of file agast_2d.h.
typedef boost::shared_ptr<const AgastDetector7_12s> pcl::keypoints::agast::AgastDetector7_12s::ConstPtr |
Reimplemented from pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 270 of file agast_2d.h.
typedef boost::shared_ptr<AgastDetector7_12s> pcl::keypoints::agast::AgastDetector7_12s::Ptr |
Reimplemented from pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 269 of file agast_2d.h.
pcl::keypoints::agast::AgastDetector7_12s::AgastDetector7_12s | ( | 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 278 of file agast_2d.h.
Destructor.
Definition at line 288 of file agast_2d.h.
int pcl::keypoints::agast::AgastDetector7_12s::computeCornerScore | ( | const unsigned char * | im | ) | const [virtual] |
Computes corner score.
im |
Implements pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 8182 of file agast_2d.cpp.
int pcl::keypoints::agast::AgastDetector7_12s::computeCornerScore | ( | const float * | im | ) | const [virtual] |
Computes corner score.
im |
Implements pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 8202 of file agast_2d.cpp.
void pcl::keypoints::agast::AgastDetector7_12s::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 8140 of file agast_2d.cpp.
void pcl::keypoints::agast::AgastDetector7_12s::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 8161 of file agast_2d.cpp.
void pcl::keypoints::agast::AgastDetector7_12s::initPattern | ( | ) | [protected, virtual] |
Initializes the sample pattern.
Implements pcl::keypoints::agast::AbstractAgastDetector.
Definition at line 8122 of file agast_2d.cpp.
const int pcl::keypoints::agast::AgastDetector7_12s::border_width_ = 2 [static, private] |
Border width.
Definition at line 323 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset0_ [private] |
Definition at line 326 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset10_ [private] |
Definition at line 336 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset11_ [private] |
Definition at line 337 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset1_ [private] |
Definition at line 327 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset2_ [private] |
Definition at line 328 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset3_ [private] |
Definition at line 329 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset4_ [private] |
Definition at line 330 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset5_ [private] |
Definition at line 331 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset6_ [private] |
Definition at line 332 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset7_ [private] |
Definition at line 333 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset8_ [private] |
Definition at line 334 of file agast_2d.h.
int_fast16_t pcl::keypoints::agast::AgastDetector7_12s::s_offset9_ [private] |
Definition at line 335 of file agast_2d.h.