Public Member Functions | Public Attributes | Protected Attributes
cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType > Class Template Reference

#include <sliding_window.h>

List of all members.

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_

Detailed Description

template<class FeatureType, class DescriptorType>
class cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >

Definition at line 45 of file sliding_window.h.


Constructor & Destructor Documentation

template<class FeatureType, class DescriptorType>
cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::SlidingWindowDetector ( ) [inline]

Default constructor

Definition at line 51 of file sliding_window.h.


Member Function Documentation

template<class FeatureType, class DescriptorType>
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

Parameters:
imgThe image to perform sliding windows over

Definition at line 62 of file sliding_window.h.

template<class FeatureType, class DescriptorType>
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

Parameters:
imgThe image to perform sliding windows over
windowsA vector of integer pairs of window height and widths

Definition at line 78 of file sliding_window.h.

template<class FeatureType, class DescriptorType>
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

Parameters:
imgThe image to perform the scanning over
window_sizeA pair contianing the height and width

Definition at line 93 of file sliding_window.h.

template<class FeatureType, class DescriptorType>
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

Parameters:
imgThe image to perform sliding windows over
window_widthWidth of the sliding window to be used
window_heightHeight of the sliding window to be used

Definition at line 107 of file sliding_window.h.

template<class FeatureType, class DescriptorType>
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.


Member Data Documentation

template<class FeatureType, class DescriptorType>
std::vector<DescriptorType> cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::descriptors_

Definition at line 138 of file sliding_window.h.

template<class FeatureType, class DescriptorType>
FeatureType cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::feature_

Definition at line 137 of file sliding_window.h.

template<class FeatureType, class DescriptorType>
std::vector<std::pair<int, int> > cpl_visual_features::SlidingWindowDetector< FeatureType, DescriptorType >::windows_ [protected]

Definition at line 134 of file sliding_window.h.


The documentation for this class was generated from the following file:


cpl_visual_features
Author(s): Tucker Hermans
autogenerated on Wed Nov 27 2013 11:52:36