OpenCV  3.0.0-rc1
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
cv::xobjdetect::ICFDetector Class Reference

Integral Channel Features from [32] . More...

#include "xobjdetect.hpp"

Public Member Functions

 ICFDetector ()
 
void detect (const Mat &image, std::vector< Rect > &objects, float scaleFactor, Size minSize, Size maxSize, float threshold, int slidingStep, std::vector< float > &values)
 Detect objects on image. More...
 
void detect (const Mat &img, std::vector< Rect > &objects, float minScaleFactor, float maxScaleFactor, float factorStep, float threshold, int slidingStep, std::vector< float > &values)
 Detect objects on image. More...
 
void read (const FileNode &node)
 Write ICFDetector to FileNode. More...
 
void train (const std::vector< String > &pos_filenames, const std::vector< String > &bg_filenames, ICFDetectorParams params=ICFDetectorParams())
 Train detector. More...
 
void write (FileStorage &fs) const
 Write detector to FileStorage. More...
 

Detailed Description

Integral Channel Features from [32] .

Constructor & Destructor Documentation

cv::xobjdetect::ICFDetector::ICFDetector ( )
inline

Member Function Documentation

void cv::xobjdetect::ICFDetector::detect ( const Mat image,
std::vector< Rect > &  objects,
float  scaleFactor,
Size  minSize,
Size  maxSize,
float  threshold,
int  slidingStep,
std::vector< float > &  values 
)

Detect objects on image.

Parameters
imageimage for detection
objectsoutput array of bounding boxes
scaleFactorscale between layers in detection pyramid
minSizemin size of objects in pixels
maxSizemax size of objects in pixels
threshold
slidingStepsliding window step
valuesoutput vector with values of positive samples
void cv::xobjdetect::ICFDetector::detect ( const Mat img,
std::vector< Rect > &  objects,
float  minScaleFactor,
float  maxScaleFactor,
float  factorStep,
float  threshold,
int  slidingStep,
std::vector< float > &  values 
)

Detect objects on image.

Parameters
imgimage for detection
objectsoutput array of bounding boxes
minScaleFactormin factor by which the image will be resized
maxScaleFactormax factor by which the image will be resized
factorStepscaling factor is incremented each pyramid layer according to this parameter
threshold
slidingStepsliding window step
valuesoutput vector with values of positive samples
void cv::xobjdetect::ICFDetector::read ( const FileNode node)

Write ICFDetector to FileNode.

Parameters
nodeFileNode for reading
void cv::xobjdetect::ICFDetector::train ( const std::vector< String > &  pos_filenames,
const std::vector< String > &  bg_filenames,
ICFDetectorParams  params = ICFDetectorParams() 
)

Train detector.

Parameters
pos_filenamespath to folder with images of objects (wildcards like /my/path/*.png are allowed)
bg_filenamespath to folder with background images
paramsparameters for detector training
void cv::xobjdetect::ICFDetector::write ( FileStorage fs) const

Write detector to FileStorage.

Parameters
fsFileStorage for output

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