Abstract detector class for AGAST corner point detectors. More...
#include <pcl/keypoints/agast_2d.h>
|
|
AbstractAgastDetector (const std::size_t width, const std::size_t height, const double threshold, const double bmax) |
|
Constructor. More...
|
virtual |
~AbstractAgastDetector ()=default |
|
Destructor. More...
|
void |
detectKeypoints (const std::vector< unsigned char > &intensity_data, pcl::PointCloud< pcl::PointUV > &output) const |
|
Detects corner points. More...
|
void |
detectKeypoints (const std::vector< float > &intensity_data, pcl::PointCloud< pcl::PointUV > &output) const |
|
Detects corner points. More...
|
void |
applyNonMaxSuppression (const std::vector< unsigned char > &intensity_data, const pcl::PointCloud< pcl::PointUV > &input, pcl::PointCloud< pcl::PointUV > &output) |
|
Applies non-max-suppression. More...
|
void |
applyNonMaxSuppression (const std::vector< float > &intensity_data, const pcl::PointCloud< pcl::PointUV > &input, pcl::PointCloud< pcl::PointUV > &output) |
|
Applies non-max-suppression. More...
|
virtual int |
computeCornerScore (const unsigned char *im) const =0 |
|
Computes corner score. More...
|
virtual int |
computeCornerScore (const float *im) const =0 |
|
Computes corner score. More...
|
void |
setThreshold (const double threshold) |
|
Sets the threshold for corner detection. More...
|
double |
getThreshold () |
|
Get the threshold for corner detection, as set by the user. More...
|
void |
setMaxKeypoints (const unsigned int nr_max_keypoints) |
|
Sets the maximum number of keypoints to return. More...
|
unsigned int |
getMaxKeypoints () |
|
Get the maximum number of keypoints to return, as set by the user. More...
|
virtual void |
detect (const unsigned char *im, std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > &corners_all) const =0 |
|
Detects points of interest (i.e., keypoints) in the given image. More...
|
virtual void |
detect (const float *im, std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > &) const =0 |
|
Detects points of interest (i.e., keypoints) in the given image. More...
|
Abstract detector class for AGAST corner point detectors.
Adapted from the C++ implementation of Elmar Mair (http://www6.in.tum.de/Main/ResearchAgast).
-
Author
-
Stefan Holzer
Definition at line 64 of file agast_2d.h.
ConstPtr
Ptr
AbstractAgastDetector()
pcl::keypoints::agast::AbstractAgastDetector::AbstractAgastDetector |
( |
const std::size_t |
width, |
|
|
const std::size_t |
height, |
|
|
const double |
threshold, |
|
|
const double |
bmax |
|
) |
|
|
|
inline |
Constructor.
-
Parameters
-
[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 76 of file agast_2d.h.
~AbstractAgastDetector()
virtual pcl::keypoints::agast::AbstractAgastDetector::~AbstractAgastDetector |
( |
|
) |
|
|
virtualdefault |
applyNonMaxSuppression() [1/3]
Non-max-suppression helper method.
-
Parameters
-
[in] |
input |
the keypoint positions |
[in] |
scores |
the keypoint scores computed on the image data |
[out] |
output |
the resultant keypoints after non-max-suppression |
applyNonMaxSuppression() [2/3]
Applies non-max-suppression.
-
Parameters
-
[in] |
intensity_data |
the image data |
[in] |
input |
the keypoint positions |
[out] |
output |
the resultant keypoints after non-max-suppression |
applyNonMaxSuppression() [3/3]
Applies non-max-suppression.
-
Parameters
-
[in] |
intensity_data |
the image data |
[in] |
input |
the keypoint positions |
[out] |
output |
the resultant keypoints after non-max-suppression |
computeCornerScore() [1/2]
virtual int pcl::keypoints::agast::AbstractAgastDetector::computeCornerScore |
( |
const float * |
im |
) |
const |
|
pure virtual |
computeCornerScore() [2/2]
virtual int pcl::keypoints::agast::AbstractAgastDetector::computeCornerScore |
( |
const unsigned char * |
im |
) |
const |
|
pure virtual |
computeCornerScores() [1/2]
void pcl::keypoints::agast::AbstractAgastDetector::computeCornerScores |
( |
const float * |
im, |
|
|
const std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > & |
corners_all, |
|
|
std::vector< ScoreIndex > & |
scores |
|
) |
|
const |
|
protected |
Computes corner scores for the specified points.
-
Parameters
-
computeCornerScores() [2/2]
void pcl::keypoints::agast::AbstractAgastDetector::computeCornerScores |
( |
const unsigned char * |
im, |
|
|
const std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > & |
corners_all, |
|
|
std::vector< ScoreIndex > & |
scores |
|
) |
|
const |
|
protected |
Computes corner scores for the specified points.
-
Parameters
-
detect() [1/2]
virtual void pcl::keypoints::agast::AbstractAgastDetector::detect |
( |
const float * |
im, |
|
|
std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > & |
|
|
) |
|
const |
|
pure virtual |
detect() [2/2]
virtual void pcl::keypoints::agast::AbstractAgastDetector::detect |
( |
const unsigned char * |
im, |
|
|
std::vector< pcl::PointUV, Eigen::aligned_allocator< pcl::PointUV > > & |
corners_all |
|
) |
|
const |
|
pure virtual |
detectKeypoints() [1/2]
void pcl::keypoints::agast::AbstractAgastDetector::detectKeypoints |
( |
const std::vector< float > & |
intensity_data, |
|
|
pcl::PointCloud< pcl::PointUV > & |
output |
|
) |
|
const |
Detects corner points.
-
Parameters
-
detectKeypoints() [2/2]
void pcl::keypoints::agast::AbstractAgastDetector::detectKeypoints |
( |
const std::vector< unsigned char > & |
intensity_data, |
|
|
pcl::PointCloud< pcl::PointUV > & |
output |
|
) |
|
const |
Detects corner points.
-
Parameters
-
getMaxKeypoints()
unsigned int pcl::keypoints::agast::AbstractAgastDetector::getMaxKeypoints |
( |
|
) |
|
|
inline |
Get the maximum number of keypoints to return, as set by the user.
Definition at line 166 of file agast_2d.h.
getThreshold()
double pcl::keypoints::agast::AbstractAgastDetector::getThreshold |
( |
|
) |
|
|
inline |
Get the threshold for corner detection, as set by the user.
Definition at line 149 of file agast_2d.h.
initPattern()
virtual void pcl::keypoints::agast::AbstractAgastDetector::initPattern |
( |
|
) |
|
|
protectedpure virtual |
setMaxKeypoints()
void pcl::keypoints::agast::AbstractAgastDetector::setMaxKeypoints |
( |
const unsigned int |
nr_max_keypoints |
) |
|
|
inline |
Sets the maximum number of keypoints to return.
The estimated keypoints are sorted by their internal score.
-
Parameters
-
[in] |
nr_max_keypoints |
set the maximum number of keypoints to return |
Definition at line 159 of file agast_2d.h.
setThreshold()
void pcl::keypoints::agast::AbstractAgastDetector::setThreshold |
( |
const double |
threshold |
) |
|
|
inline |
Sets the threshold for corner detection.
-
Parameters
-
[in] |
threshold |
the threshold used for corner detection. |
Definition at line 142 of file agast_2d.h.
bmax_
double pcl::keypoints::agast::AbstractAgastDetector::bmax_ |
|
protected |
height_
std::size_t pcl::keypoints::agast::AbstractAgastDetector::height_ |
|
protected |
Height of the image to process.
Definition at line 246 of file agast_2d.h.
nr_max_keypoints_
unsigned int pcl::keypoints::agast::AbstractAgastDetector::nr_max_keypoints_ |
|
protected |
The maximum number of keypoints to return.
Definition at line 252 of file agast_2d.h.
threshold_
double pcl::keypoints::agast::AbstractAgastDetector::threshold_ |
|
protected |
Threshold for corner detection.
Definition at line 249 of file agast_2d.h.
width_
std::size_t pcl::keypoints::agast::AbstractAgastDetector::width_ |
|
protected |
Width of the image to process.
Definition at line 244 of file agast_2d.h.
The documentation for this class was generated from the following file: