public class HOGDetector extends AbstractMultiScaleObjectDetector<FImage,Rectangle>
| Modifier and Type | Field and Description |
|---|---|
protected HOGClassifier |
classifier |
protected float |
scaleFactor |
maxSize, minSize, roi| Constructor and Description |
|---|
HOGDetector(HOGClassifier classifier) |
HOGDetector(HOGClassifier classifier,
float scaleFactor) |
| Modifier and Type | Method and Description |
|---|---|
List<Rectangle> |
detect(FImage image)
Detect objects in the given image and return representations of them.
|
protected void |
detectAtScale(int startX,
int stopX,
int startY,
int stopY,
float ystep,
int windowWidth,
int windowHeight,
List<Rectangle> results)
Perform detection at a single scale.
|
getMaximumDetectionSize, getMinimumDetectionSize, setMaximumDetectionSize, setMinimumDetectionSize, setROIprotected float scaleFactor
protected HOGClassifier classifier
public HOGDetector(HOGClassifier classifier, float scaleFactor)
public HOGDetector(HOGClassifier classifier)
public List<Rectangle> detect(FImage image)
ObjectDetector
If no objects are detected, null or an empty list may be
returned.
image - the image to detect the object in.null if none are found.protected void detectAtScale(int startX, int stopX, int startY, int stopY, float ystep, int windowWidth, int windowHeight, List<Rectangle> results)
startX - the starting x-ordinatestopX - the stopping x-ordinatestartY - the starting y-ordinatestopY - the stopping y-ordinateystep - the amount to stepwindowWidth - the window width at the current scalewindowHeight - the window height at the current scaleresults - the list to store detection results in