|
Rect | CreateROI (int x, int y, int roi_h, int roi_w, int edge_width, int height, int width) |
|
bool | IsEqual (const rect &r1, const rect &r2) const |
|
bool | IsOverlap (const rect &r, const rect &t) const |
|
|
feat | binaryThre |
|
double | invPerimeterThre |
|
float | minAreaRatio |
|
float | maxAreaRatio |
|
Classifier * | classifier |
|
feat | scaleMin |
|
feat | scaleMax |
|
feat | scaleStep |
|
int | slideStep |
|
int | evidence |
|
int | modelHeight |
|
int | modelWidth |
|
Pool< rect > | temp |
|
Pool< int > | roots |
|
UnionFind * | unionFind |
|
Rect BKGCutDetector::CreateROI |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
roi_h, |
|
|
int |
roi_w, |
|
|
int |
edge_width, |
|
|
int |
height, |
|
|
int |
width |
|
) |
| |
|
protected |
Given a rectangle and the size of the original image, expand the rectangle by edge_width.
- Parameters
-
x | the x coordinates of the upper-left corner. |
y | the y coordinates of the upper-left corner. |
roi_h | the height of the rectangle. |
roi_w | the width of the rectangle. |
edge_width | how many pixels you want to expand? |
height,width | the size of the original image. |
- Returns
- Rect.
bool BKGCutDetector::Detect |
( |
const cv::Mat & |
img, |
|
|
const IntegralImage * |
intImage, |
|
|
const Rect & |
subRegion, |
|
|
const cv::Mat & |
bkg = defaultBackground |
|
) |
| |
|
virtual |
Detect, return the resutl in a vector. Notice that sometimes we only want to detect in a subregion of the original image, in such case we have to give the origin parameter, which is the coordinates of the upper-left corner in the original image.
- Parameters
-
img | the image |
intImage | the integral image |
subRegion | the subRegion we want to detect |
bkg | background |
- Returns
- true if everything is fine.
Reimplemented from ImageDetector.
The documentation for this class was generated from the following files: