|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.mcgill.cim.sre.cv4hci.swig.ForegroundDetector
ca.mcgill.cim.sre.cv4hci.ForegroundDetectorModel
public class ForegroundDetectorModel
ForegroundDetectorModel is a thin wrapper around ForegroundDetector. This wrapper provides us with some Java features used: Serializable Parameters objects, Java's Observer design pattern (MVC), and an "activated" control variable easily disabling the execution of the detector from the GUI.
Nested Class Summary | |
---|---|
static class |
ForegroundDetectorModel.Parameters
Parameters is a class containing the parameters and other state information that can be set for this detector. |
Field Summary |
---|
Fields inherited from class ca.mcgill.cim.sre.cv4hci.swig.ForegroundDetector |
---|
swigCMemOwn |
Constructor Summary | |
---|---|
ForegroundDetectorModel()
|
Method Summary | |
---|---|
void |
activate(boolean isTrue)
Sets the activation state. |
ForegroundDetectorModel.Parameters |
getParameters()
Returns the current parameters and state of this detector in a Parameters object. |
java.util.Observable |
getStateMonitor()
Gets the StateMonitor (an Observable object) with which other objects implementing the Observer interface can register with. |
boolean |
isActivated()
Gets the activation state. |
void |
run(IplImage image)
If activated, will run the tracker and notify observers. |
void |
setDefaultParameters()
Sets the current parameters and state of this detector to their default values. |
void |
setParameters(ForegroundDetectorModel.Parameters p)
Sets the current parameters and state of this detector from a Parameters object. |
Methods inherited from class ca.mcgill.cim.sre.cv4hci.swig.ForegroundDetector |
---|
delete, drawEllipse, finalize, forget, getAngleFilter, getBackground, getCPtr, getDefaultParameters, getForeground, getImage, getParameters, getPositionFilter, getSizeFilter, getTrackBox, resetFilters, setParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForegroundDetectorModel()
Method Detail |
---|
public java.util.Observable getStateMonitor()
public void activate(boolean isTrue)
isTrue
- the desired activation statepublic boolean isActivated()
public void run(IplImage image)
run
in class ForegroundDetector
image
- the image to processpublic ForegroundDetectorModel.Parameters getParameters()
public void setParameters(ForegroundDetectorModel.Parameters p)
p
- the desired parameters and statepublic void setDefaultParameters()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |