SADActor

Parent Previous Next


Package 

 Class 

Tree 

Deprecated 

Index 

Help 


 PREV CLASS   NEXT CLASS

FRAMES    NO FRAMES     All Classes

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD


Full Library / Algorithmic / Image Processing / VideoProcessing / SADActor
Block Name: SADActor (SumofAbsoluteDifferences)

java.lang.Object
 extended by VisualSim.kernel.util.NamedObj
     extended by VisualSim.kernel.InstantiableNamedObj
         extended by VisualSim.kernel.Entity
             extended by VisualSim.kernel.ComponentEntity
                 extended by VisualSim.actor.AtomicActor
                     extended by VisualSim.actor.TypedAtomicActor
                         extended by VisualSim.actor.lib.video.SumofAbsoluteDifferences


public class SumofAbsoluteDifferencesextends VisualSim.actor.TypedAtomicActor

Calculate the sum of absolute difference(SAD) between two blocks. Each input block should have two dimensions by rectangle block(16 by 16, 8 by 8, etc.). The output port will have the result of SAD.


Nested Class Summary

 

Nested classes/interfaces inherited from class VisualSim.kernel.Entity

VisualSim.kernel.Entity.ContainedObjectsIterator

 

Field Summary

protected  int

_blockSize
          Description of the variable.

 VisualSim.data.expr.Parameter

blockSize
          BlockSize parameter.

 VisualSim.actor.TypedIOPort

currentImageBlock
          Input for tokens to be a part of current frame.

 VisualSim.actor.TypedIOPort

previousImageBlock
          Input for tokens to be a part of previous frame.

 VisualSim.actor.TypedIOPort

sumAbsoluteDifference
          Output port.

 

Fields inherited from class VisualSim.actor.AtomicActor

_stopRequested, Block_Documentation

 

Fields inherited from class VisualSim.kernel.util.NamedObj

_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS

 

Fields inherited from interface VisualSim.actor.Executable

COMPLETED, NOT_READY, STOP_ITERATING

 

Constructor Summary

SumofAbsoluteDifferences(VisualSim.kernel.CompositeEntity container, java.lang.String name)
          Construct an actor in the specified container with the specified name.


 

Method Summary

 java.lang.Object

clone(VisualSim.kernel.util.Workspace workspace)
          Override the base class to set type constraints on the ports.

 void

fire()
          If there is at least one token on the input ports, add tokens from the plus port, subtract tokens from the minus port, and send the result to the output port.

 void

preinitialize()
           

 

Methods inherited from class VisualSim.actor.TypedAtomicActor

_addPort, attributeTypeChanged, clone, newPort, typeConstraintList

 

Methods inherited from class VisualSim.actor.AtomicActor

_createReceivers, connectionsChanged, getDirector, getExecutiveDirector, getFunctionDependency, getManager, initialize, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, postfire, prefire, pruneDependencies, removeDependency, setContainer, stop, stopFire, terminate, wrapup

 

Methods inherited from class VisualSim.kernel.ComponentEntity

_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName

 

Methods inherited from class VisualSim.kernel.Entity

_description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName

 

Methods inherited from class VisualSim.kernel.InstantiableNamedObj

_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition

 

Methods inherited from class VisualSim.kernel.util.NamedObj

_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspace

 

Methods inherited from class java.lang.Object

equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface VisualSim.actor.Actor

getDirector, getExecutiveDirector, getFunctionDependency, getManager, inputPortList, newReceiver, outputPortList

 

Methods inherited from interface VisualSim.actor.Executable

initialize, isFireFunctional, isStrict, iterate, postfire, prefire, stop, stopFire, terminate, wrapup

 

Methods inherited from interface VisualSim.kernel.util.Nameable

description, getContainer, getDisplayName, getFullName, getName, getName, setName

 

Methods inherited from interface VisualSim.kernel.util.Derivable

getDerivedLevel, getDerivedList, propagateValue

 

Field Detail

previousImageBlock

public VisualSim.actor.TypedIOPort previousImageBlock


currentImageBlock

public VisualSim.actor.TypedIOPort currentImageBlock


sumAbsoluteDifference

public VisualSim.actor.TypedIOPort sumAbsoluteDifference


blockSize

public VisualSim.data.expr.Parameter blockSize


_blockSize

protected int _blockSize

Constructor Detail

SumofAbsoluteDifferences

public SumofAbsoluteDifferences(VisualSim.kernel.CompositeEntity container,
                               java.lang.String name)
                        throws VisualSim.kernel.util.IllegalActionException,
                               VisualSim.kernel.util.NameDuplicationException

Method Detail

clone

public java.lang.Object clone(VisualSim.kernel.util.Workspace workspace)
                      throws java.lang.CloneNotSupportedException


fire

public void fire()
         throws VisualSim.kernel.util.IllegalActionException


preinitialize

public void preinitialize()
                  throws VisualSim.kernel.util.IllegalActionException


Package 

 Class 

Tree 

Deprecated 

Index 

Help 


 PREV CLASS   NEXT CLASS

FRAMES    NO FRAMES     All Classes

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD


Created with the Personal Edition of HelpNDoc: Create help files for the Qt Help Framework