#include <sliding_window.h>
Public Member Functions | |
void | scanImage (cv::Mat &img, bool save_desc=false, int step_size=1) |
void | scanImage (cv::Mat &img, std::vector< std::pair< int, int > > &windows, bool save_desc=false, int step_size=1) |
void | scanImage (cv::Mat &img, std::pair< int, int > window_size, bool save_desc=false, int step_size=1) |
void | scanImage (cv::Mat &img, int window_width, int window_height, bool save_desc=false, int step_size=1) |
void | setWindowSizes (std::vector< std::pair< int, int > > windows) |
SlidingWindowDetector () | |
Public Attributes | |
std::vector< DescriptorType > | descriptors_ |
FeatureType | feature_ |
Protected Attributes | |
std::vector< std::pair< int, int > > | windows_ |
Definition at line 45 of file sliding_window.h.
cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::SlidingWindowDetector | ( | ) | [inline] |
Default constructor
Definition at line 51 of file sliding_window.h.
void cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::scanImage | ( | cv::Mat & | img, |
bool | save_desc = false , |
||
int | step_size = 1 |
||
) | [inline] |
Function wrapper to perform the sliding window task across a given image for an arbitrary number of window shapes and sizes, using the class set windows
img | The image to perform sliding windows over |
Definition at line 62 of file sliding_window.h.
void cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::scanImage | ( | cv::Mat & | img, |
std::vector< std::pair< int, int > > & | windows, | ||
bool | save_desc = false , |
||
int | step_size = 1 |
||
) | [inline] |
Function wrapper to perform the sliding window task across a given image for an arbitrary number of window shapes and sizes
img | The image to perform sliding windows over |
windows | A vector of integer pairs of window height and widths |
Definition at line 78 of file sliding_window.h.
void cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::scanImage | ( | cv::Mat & | img, |
std::pair< int, int > | window_size, | ||
bool | save_desc = false , |
||
int | step_size = 1 |
||
) | [inline] |
Wrapper function to use a pair instead of indepnednt height and width
img | The image to perform the scanning over |
window_size | A pair contianing the height and width |
Definition at line 93 of file sliding_window.h.
void cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::scanImage | ( | cv::Mat & | img, |
int | window_width, | ||
int | window_height, | ||
bool | save_desc = false , |
||
int | step_size = 1 |
||
) | [inline] |
Workhorse function of the class that extracts the specified windows across the image and sends them to the callback task
img | The image to perform sliding windows over |
window_width | Width of the sliding window to be used |
window_height | Height of the sliding window to be used |
Definition at line 107 of file sliding_window.h.
void cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::setWindowSizes | ( | std::vector< std::pair< int, int > > | windows | ) | [inline] |
Definition at line 128 of file sliding_window.h.
std::vector<DescriptorType> cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::descriptors_ |
Definition at line 138 of file sliding_window.h.
FeatureType cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::feature_ |
Definition at line 137 of file sliding_window.h.
std::vector<std::pair<int, int> > cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::windows_ [protected] |
Definition at line 134 of file sliding_window.h.