|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.mcgill.cim.sre.cv4hci.swig.CAMShiftTracker
ca.mcgill.cim.sre.cv4hci.CAMShiftModel
public class CAMShiftModel
CAMShiftModel is a thin wrapper around CAMShiftTracker. 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 tracker from the GUI.
Nested Class Summary | |
---|---|
static class |
CAMShiftModel.Parameters
Parameters is a class containing the parameters and other state information that can be set for this tracker. |
Field Summary |
---|
Fields inherited from class ca.mcgill.cim.sre.cv4hci.swig.CAMShiftTracker |
---|
swigCMemOwn |
Constructor Summary | |
---|---|
CAMShiftModel()
|
Method Summary | |
---|---|
void |
activate(boolean isTrue)
Sets the activation state. |
CAMShiftModel.Parameters |
getParameters()
Returns the current parameters and state of this tracker 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 tracker to their default values. |
void |
setParameters(CAMShiftModel.Parameters p)
Sets the current parameters and state of this tracker from a Parameters object. |
Methods inherited from class ca.mcgill.cim.sre.cv4hci.swig.CAMShiftTracker |
---|
delete, drawEllipse, enableTracking, finalize, forget, getAngleFilter, getBackProject, getCPtr, getHistogram, getHistogramImage, getImage, getMinArea, getPositionFilter, getSizeFilter, getSmin, getTrackBox, getTrackColor, getVmax, getVmin, learn, resetFilters, setMinArea, setMinArea, setSmin, setSmin, setVmax, setVmax, setVmin, setVmin |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CAMShiftModel()
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 CAMShiftTracker
image
- the image to processpublic CAMShiftModel.Parameters getParameters()
public void setParameters(CAMShiftModel.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 |