IMAGE - The image on which to perform the detectionDETECTED_OBJECT - the type of object representing a detection.public abstract class AbstractMultiScaleObjectDetector<IMAGE extends Image<?,IMAGE>,DETECTED_OBJECT> extends Object implements MultiScaleObjectDetector<IMAGE,DETECTED_OBJECT>
MultiScaleObjectDetector.| Modifier and Type | Field and Description |
|---|---|
protected int |
maxSize |
protected int |
minSize |
protected Rectangle |
roi |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMultiScaleObjectDetector()
Construct with the initial minimum and maximum size set to zero.
|
protected |
AbstractMultiScaleObjectDetector(int minSize,
int maxSize)
Construct with the given initial minimum and maximum detection sizes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaximumDetectionSize()
(Optional operation).
|
int |
getMinimumDetectionSize()
(Optional operation).
|
void |
setMaximumDetectionSize(int size)
(Optional operation).
|
void |
setMinimumDetectionSize(int size)
(Optional operation).
|
void |
setROI(Rectangle roi)
(Optional operation).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetectprotected AbstractMultiScaleObjectDetector()
protected AbstractMultiScaleObjectDetector(int minSize, int maxSize)
minSize - minimum sizemaxSize - maximum sizepublic void setROI(Rectangle roi)
ObjectDetector
Set the region of interest within the image to search for objects.
Setting to null means to search the whole image.
setROI in interface ObjectDetector<IMAGE extends Image<?,IMAGE>,DETECTED_OBJECT>roi - the region of interestpublic void setMinimumDetectionSize(int size)
MultiScaleObjectDetectorSet the minimum detection size.
setMinimumDetectionSize in interface MultiScaleObjectDetector<IMAGE extends Image<?,IMAGE>,DETECTED_OBJECT>size - the minimum detection size.public void setMaximumDetectionSize(int size)
MultiScaleObjectDetectorSet the maximum detection size. A size less than or equal to 0 indicates there is no maximum size.
setMaximumDetectionSize in interface MultiScaleObjectDetector<IMAGE extends Image<?,IMAGE>,DETECTED_OBJECT>size - the maximum detection size.public int getMinimumDetectionSize()
MultiScaleObjectDetectorGet the minimum detection size.
getMinimumDetectionSize in interface MultiScaleObjectDetector<IMAGE extends Image<?,IMAGE>,DETECTED_OBJECT>public int getMaximumDetectionSize()
MultiScaleObjectDetectorGet the maximum detection size. A size less than or equal to 0 indicates there is no maximum size.
getMaximumDetectionSize in interface MultiScaleObjectDetector<IMAGE extends Image<?,IMAGE>,DETECTED_OBJECT>