|
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.graphics.Chip2DRenderer
public class Chip2DRenderer
A general class for rendering chip output to a 2d array of float values for drawing. Various modes are possible, e.g. gray scale, red/green for polarity events, color-time, multi-color for representing orientation or direction. Also allows continuous integration (accumulation) or time slices.
for the class that renders AEChip events to a pixmap histogram
Field Summary | |
---|---|
protected boolean |
accumulateEnabled
determines whether frame is reset to starting value on each rendering cycle. |
protected java.util.ArrayList<FrameAnnotater> |
annotators
|
protected boolean |
autoscaleEnabled
false for manual scaling, true for autoscaling of contrast |
protected int |
autoScaleValue
|
protected Chip2D |
chip
the chip rendered for |
protected int |
colorScale
the number of events for full scale saturated color |
protected float |
eventContrast
the constrast attributed to an event, either level is multiplied or divided by this value depending on polarity of event. |
protected float[][][] |
fr
Deprecated. replaced by pixmap direct float buffer. |
protected float |
grayValue
|
protected java.nio.FloatBuffer |
pixmap
The rendered pixel map, ordered by rgb/row/col. |
protected java.util.prefs.Preferences |
prefs
|
protected int |
selectedPixelEventCount
The count of spikes in the "selected" pixel. |
protected short |
xsel
|
protected short |
ysel
|
Constructor Summary | |
---|---|
Chip2DRenderer()
|
|
Chip2DRenderer(Chip2D chip)
|
Method Summary | |
---|---|
void |
checkFr()
Deprecated. replaced by pixmap |
protected void |
checkPixmapAllocation()
|
int |
decreaseContrast()
decrease contrast |
int |
getColorScale()
|
float |
getGrayValue()
|
java.nio.FloatBuffer |
getPixmap()
The rendered pixel map, ordered by rgb/row/col. |
float[] |
getPixmapArray()
|
int |
getPixMapIndex(int x,
int y)
|
float[] |
getPixmapRGB(int x,
int y)
|
int |
getSelectedPixelEventCount()
Returns the number of spikes in the selected pixel in the last rendered packet |
short |
getXsel()
A single pixel can be selected via the mouse and this returns the x pixel value |
short |
getYsel()
A single pixel can be selected via the mouse and this returns the y pixel value |
int |
increaseContrast()
increase image contrast |
boolean |
isAccumulateEnabled()
|
boolean |
isAutoscaleEnabled()
|
boolean |
isPixelSelected()
|
void |
removeAllAnnotators()
|
void |
resetFrame(float value)
Resets the pixmap frame buffer to a given gray level. |
void |
setAccumulateEnabled(boolean accumulateEnabled)
|
void |
setAutoscaleEnabled(boolean autoscaleEnabled)
|
void |
setColorScale(int colorScale)
set the color scale. |
void |
setGrayValue(float value)
|
void |
setPixmapPosition(int x,
int y)
|
void |
setPixmapRGB(int x,
int y,
float[] rgb)
|
void |
setXsel(short xsel)
|
void |
setYsel(short ysel)
|
void |
update(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.prefs.Preferences prefs
protected Chip2D chip
protected boolean accumulateEnabled
protected java.util.ArrayList<FrameAnnotater> annotators
protected int autoScaleValue
protected boolean autoscaleEnabled
protected int colorScale
protected float eventContrast
protected float[][][] fr
protected java.nio.FloatBuffer pixmap
protected float grayValue
protected short xsel
protected short ysel
protected int selectedPixelEventCount
Constructor Detail |
---|
public Chip2DRenderer()
public Chip2DRenderer(Chip2D chip)
Method Detail |
---|
public java.nio.FloatBuffer getPixmap()
public void setPixmapRGB(int x, int y, float[] rgb)
public float[] getPixmapRGB(int x, int y)
public int getPixMapIndex(int x, int y)
public float[] getPixmapArray()
public void setPixmapPosition(int x, int y)
protected void checkPixmapAllocation()
public int decreaseContrast()
public int getColorScale()
public float getGrayValue()
public void setGrayValue(float value)
public short getXsel()
public short getYsel()
public int increaseContrast()
public boolean isAccumulateEnabled()
public boolean isAutoscaleEnabled()
public boolean isPixelSelected()
public void removeAllAnnotators()
public void checkFr()
public void resetFrame(float value)
value
- gray level 0-1.public void setAccumulateEnabled(boolean accumulateEnabled)
accumulateEnabled
- true to accumulate data to frame (don't reset to start value each cycle)public void setAutoscaleEnabled(boolean autoscaleEnabled)
public void setColorScale(int colorScale)
public void setXsel(short xsel)
public void setYsel(short ysel)
public int getSelectedPixelEventCount()
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |