|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.kernel.util.NamedObj ptolemy.kernel.InstantiableNamedObj ptolemy.kernel.Entity ptolemy.kernel.ComponentEntity ptolemy.actor.AtomicActor ptolemy.actor.TypedAtomicActor ptolemy.actor.lib.jmf.ColorFinder
public class ColorFinder
An actor that searches for a color in a Buffer.
Red (cxh) |
Red (cxh) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.Entity |
---|
Entity.ContainedObjectsIterator |
Field Summary | |
---|---|
private int |
_frameHeight
|
private int |
_frameWidth
|
private int |
_histSize
|
private int |
_inCount
|
private int |
_sumX
|
private int |
_sumY
|
private int[] |
_uClass
|
private int |
_uHigh
|
private int |
_uLow
|
private int[] |
_vClass
|
private int |
_vHigh
|
private int |
_vLow
|
private int[] |
_yClass
|
private int |
_yHigh
|
private int |
_yLow
|
TypedIOPort |
input
The port for the input, which has type ObjectToken. |
TypedIOPort |
outputX
The output port for the horizontal component, which has type DoubleToken. |
TypedIOPort |
outputY
The output port for the vertical component, which has type DoubleToken. |
private byte[] |
UArray
|
Parameter |
uHighValue
The upper bound on the U range. |
Parameter |
uLowValue
The lower bound on the U range. |
private byte[] |
VArray
|
Parameter |
vHighValue
The upper bound on the V range. |
Parameter |
vLowValue
The lower bound on the V range. |
private byte[] |
YArray
|
Parameter |
yHighValue
The upper bound on the Y range. |
Parameter |
yLowValue
The lower bound on the Y range. |
Fields inherited from class ptolemy.actor.AtomicActor |
---|
_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Fields inherited from interface ptolemy.actor.Executable |
---|
COMPLETED, NOT_READY, STOP_ITERATING |
Constructor Summary | |
---|---|
ColorFinder(CompositeEntity container,
java.lang.String name)
Construct an actor with the given container and name. |
Method Summary | |
---|---|
private int |
_bts(byte b)
Convert a byte into an unsigned int |
private int |
_getUComponent(int point)
Return the int representing the U band at this pixel |
private int |
_getUComponent(int x,
int y)
Return the int representing the U band at this pixel |
private int |
_getVComponent(int point)
Return the int representing the V band at this pixel |
private int |
_getVComponent(int x,
int y)
Return the int representing the V band at this pixel |
private int |
_getYComponent(int point)
Return the int representing the Y band at this pixel |
private int |
_getYComponent(int x,
int y)
Return the int representing the Y band at this pixel |
void |
fire()
Fire this actor. |
void |
initialize()
Initialize this actor. |
Methods inherited from class ptolemy.actor.TypedAtomicActor |
---|
_addPort, _fireAt, _fireAt, attributeTypeChanged, clone, newPort, typeConstraintList, typeConstraints |
Methods inherited from class ptolemy.kernel.ComponentEntity |
---|
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName |
Methods inherited from class ptolemy.kernel.Entity |
---|
_description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName |
Methods inherited from class ptolemy.kernel.InstantiableNamedObj |
---|
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ptolemy.actor.Actor |
---|
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList |
Methods inherited from interface ptolemy.actor.Executable |
---|
isFireFunctional, isStrict, iterate, postfire, prefire, stop, stopFire, terminate |
Methods inherited from interface ptolemy.actor.Initializable |
---|
addInitializable, preinitialize, removeInitializable, wrapup |
Methods inherited from interface ptolemy.kernel.util.Nameable |
---|
description, getContainer, getDisplayName, getFullName, getName, getName, setName |
Methods inherited from interface ptolemy.kernel.util.Derivable |
---|
getDerivedLevel, getDerivedList, propagateValue |
Field Detail |
---|
public Parameter uHighValue
public Parameter uLowValue
public Parameter vHighValue
public Parameter vLowValue
public Parameter yHighValue
public Parameter yLowValue
public TypedIOPort input
public TypedIOPort outputX
public TypedIOPort outputY
private int _frameWidth
private int _frameHeight
private byte[] YArray
private byte[] UArray
private byte[] VArray
private int _histSize
private int _inCount
private int _sumX
private int _sumY
private int _yLow
private int _yHigh
private int _uLow
private int _uHigh
private int _vLow
private int _vHigh
private int[] _yClass
private int[] _uClass
private int[] _vClass
Constructor Detail |
---|
public ColorFinder(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this actor.
IllegalActionException
- If the actor cannot be contained
by the proposed container.
NameDuplicationException
- If the container already has an
actor with this name.Method Detail |
---|
public void fire() throws IllegalActionException
fire
in interface Executable
fire
in class AtomicActor
IllegalActionException
- If a contained method throws it,
or if a token is received that contains a null image.public void initialize() throws IllegalActionException
initialize
in interface Initializable
initialize
in class AtomicActor
IllegalActionException
- If a contained method throws it.private int _bts(byte b)
private int _getUComponent(int point)
private int _getUComponent(int x, int y)
private int _getVComponent(int point)
private int _getVComponent(int x, int y)
private int _getYComponent(int point)
private int _getYComponent(int x, int y)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |