|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.eventprocessing.EventFilter
net.sf.jaer.eventprocessing.EventFilter2D
org.ine.telluride.jaer.cuda.CUDAObjectTrackerControl
public class CUDAObjectTrackerControl
Allows control of remote CUDA process for filtering jAER data.
This filter does not process events at all. Rather it opens a TCP stream socket connection to a remote (maybe on the same machine) process which is a CUDA GPGPU program which accepts AEs from jAER and which sends its output back to jAER for visualization.
The stream socket works with text command lines as though it were a terminal.
Nested Class Summary | |
---|---|
class |
CUDAObjectTrackerControl.CUDACommand
|
class |
CUDAObjectTrackerControl.CUDAParameter
|
static class |
CUDAObjectTrackerControl.KernelShape
|
Field Summary | |
---|---|
int |
CONTROL_PORT_DEFAULT
|
Fields inherited from class net.sf.jaer.eventprocessing.EventFilter2D |
---|
enclosedFilter, out |
Fields inherited from class net.sf.jaer.eventprocessing.EventFilter |
---|
annotationEnabled, chip, enclosedFilterChain, filterEnabled, log, perf, propertyTooltipMap, support |
Constructor Summary | |
---|---|
CUDAObjectTrackerControl(AEChip chip)
|
Method Summary | |
---|---|
void |
doKillCUDA()
|
void |
doLaunchCUDA()
Launches the CUDA process, then sends parameters to it. |
void |
doSelectCUDAExecutable()
|
void |
doSendParameters()
|
EventPacket<?> |
filterPacket(EventPacket<?> in)
Reconstructs a raw event packet, sends it to jaercuda, reads the output from jaercuda, extracts this raw packet, and then returns the events. |
int |
getControlPort()
|
java.lang.String |
getCudaEnvironmentPath()
|
java.lang.String |
getCudaExecutablePath()
|
int |
getDebugLevel()
|
int |
getDeltaTimeUs()
|
float |
geteISynWeight()
|
java.lang.Object |
getFilterState()
should return the filter state in some useful form |
java.lang.String |
getHostname()
|
float |
getiESynWeight()
|
int |
getInputPort()
|
CUDAObjectTrackerControl.KernelShape |
getKernelShape()
|
int |
getMaxXmitIntervalMs()
|
float |
getMembranePotentialMin()
|
float |
getMembraneTauUs()
|
float |
getMinFiringTimeDiff()
|
int |
getNumObject()
|
int |
getOutputPort()
|
float |
getThreshold()
|
void |
initFilter()
this should allocate and initialize memory: it may be called when the chip e.g. |
boolean |
isCudaEnabled()
|
void |
resetFilter()
should reset the filter to initial state |
void |
setControlPort(int port)
|
void |
setCudaEnabled(boolean cudaEnabled)
|
void |
setCudaEnvironmentPath(java.lang.String cudaEnvironmentPath)
|
void |
setCudaExecutablePath(java.lang.String cudaExecutablePath)
|
void |
setDebugLevel(int debugLevel)
|
void |
setDeltaTimeUs(int deltaTimeUs)
|
void |
seteISynWeight(float eISynWeight)
|
void |
setFilterEnabled(boolean yes)
Resets the filter |
void |
setHostname(java.lang.String hostname)
|
void |
setiESynWeight(float iESynWeight)
|
void |
setInputPort(int inputPort)
|
void |
setKernelShape(CUDAObjectTrackerControl.KernelShape kernelShape)
|
void |
setMaxXmitIntervalMs(int maxXmitIntervalMs)
|
void |
setMembranePotentialMin(float membranePotentialMin)
|
void |
setMembraneTauUs(float membraneTauUs)
|
void |
setMinFiringTimeDiff(float minFiringTimeDiff)
|
void |
setNumObject(int numObject)
|
void |
setOutputPort(int outputPort)
|
void |
setThreshold(float threshold)
|
Methods inherited from class net.sf.jaer.eventprocessing.EventFilter2D |
---|
checkOutputPacketEventType, checkOutputPacketEventType, getEnclosedFilter, resetOut, setEnclosedFilter |
Methods inherited from class net.sf.jaer.eventprocessing.EventFilter |
---|
getChip, getDescription, getEnclosedFilterChain, getEnclosingFilter, getPrefs, getPropertyChangeSupport, getPropertyTooltip, isAnnotationEnabled, isEnclosed, isFilterEnabled, prefsEnabledKey, setAnnotationEnabled, setChip, setEnclosed, setEnclosedFilter, setEnclosedFilterChain, setEnclosingFilter, setPreferredEnabledState, setPrefs, setPropertyTooltip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int CONTROL_PORT_DEFAULT
Constructor Detail |
---|
public CUDAObjectTrackerControl(AEChip chip)
Method Detail |
---|
public void doKillCUDA()
public void doLaunchCUDA()
public void doSelectCUDAExecutable()
public void doSendParameters()
public EventPacket<?> filterPacket(EventPacket<?> in)
filterPacket
in class EventFilter2D
in
- the input packets.
public void setFilterEnabled(boolean yes)
EventFilter2D
setFilterEnabled
in class EventFilter2D
yes
- true to resetEventFilter.setPreferredEnabledState()
public java.lang.Object getFilterState()
EventFilter
getFilterState
in class EventFilter
public void resetFilter()
EventFilter
resetFilter
in class EventFilter
public void initFilter()
EventFilter
initFilter
in class EventFilter
public int getControlPort()
public void setControlPort(int port)
public int getInputPort()
public void setInputPort(int inputPort)
inputPort
- the inputPort to setpublic int getOutputPort()
public void setOutputPort(int outputPort)
outputPort
- the outputPort to setpublic java.lang.String getHostname()
public void setHostname(java.lang.String hostname)
public float getThreshold()
public void setThreshold(float threshold)
public java.lang.String getCudaExecutablePath()
public void setCudaExecutablePath(java.lang.String cudaExecutablePath)
cudaExecutablePath
- the cudaExecutablePath to setpublic java.lang.String getCudaEnvironmentPath()
public void setCudaEnvironmentPath(java.lang.String cudaEnvironmentPath)
cudaEnvironmentPath
- the cudaEnvironmentPath to setpublic float getMembraneTauUs()
public void setMembraneTauUs(float membraneTauUs)
membraneTauUs
- the membraneTauUs to setpublic float getMembranePotentialMin()
public void setMembranePotentialMin(float membranePotentialMin)
membranePotentialMin
- the membranePotentialMin to setpublic float getMinFiringTimeDiff()
public void setMinFiringTimeDiff(float minFiringTimeDiff)
minFiringTimeDiff
- the minFiringTimeDiff to setpublic float geteISynWeight()
public void seteISynWeight(float eISynWeight)
eISynWeight
- the eISynWeight to set, this is weight from template LIF neurons to global WTA neuronpublic float getiESynWeight()
public void setiESynWeight(float iESynWeight)
iESynWeight
- the iESynWeight to setpublic CUDAObjectTrackerControl.KernelShape getKernelShape()
public void setKernelShape(CUDAObjectTrackerControl.KernelShape kernelShape)
kernelShape
- the kernelShape to setpublic boolean isCudaEnabled()
public void setCudaEnabled(boolean cudaEnabled)
cudaEnabled
- the cudaEnabled to setpublic int getDebugLevel()
public void setDebugLevel(int debugLevel)
debugLevel
- the debugLevel to setpublic int getMaxXmitIntervalMs()
public void setMaxXmitIntervalMs(int maxXmitIntervalMs)
maxXmitIntervalMs
- the maxXmitIntervalMs to setpublic int getDeltaTimeUs()
public void setDeltaTimeUs(int deltaTimeUs)
deltaTimeUs
- the deltaTimeUs to setpublic int getNumObject()
public void setNumObject(int numObject)
numObject
- the numObject to set
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |