|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsigus.core.SigusEffect
A SigusEffect integrates all the modules of a visual based system, which include some digital image processing filters, a feature extractor and a machine learning module.
Field Summary | |
(package private) boolean |
calibrating
True if system is in the calibration phase (e.g. extracting samples from human skin |
(package private) int |
focus
The current identified class (e.g. the "signed" letter or the last square where the eyes looked at). |
(package private) int[] |
imageCopy
|
static ij.ImagePlus |
imp
ImageJ window where the processed image will be presented |
(package private) static ij.ImagePlus |
impCopy
Auxiliary ImagePlus used when images must be saved on disk |
(package private) javax.media.Format |
inputFormat
Format of the input image (e.g. 8-bit, RGB, HSV, etc) |
(package private) javax.media.Format[] |
inputFormats
Supported input formats (the formats that the effect can process) |
static ij.process.ImageProcessor |
ip
ImageJ image processor. |
(package private) static ij.process.ImageProcessor |
ipCopy
Auxiliary ImageProcessor used when images must be saved on disk |
(package private) int |
lastFocus
The last identified class (e.g. the last "signed" letter or the last square where the eyes looked at). |
(package private) java.awt.Rectangle |
lastRoi
Coordinates of the last ROI - Region of Intereset |
Learner_ |
learner
Algorithm that will be used to learn from examples |
int |
MAX_CLASS
The number of different classes + 1 (e.g.: TTT has 9 classes - the 9 different screen positions. |
int |
maxFocus
In order to be recognized, a sign must be detect in "maxFocus" consecutive frames. |
int |
minInstances
The number of training instances that should be collected before the learning algorithm is called for the first time |
(package private) javax.media.Format |
outputFormat
Format of the output image (e.g. 8-bit, RGB, HSV, etc) |
(package private) javax.media.Format[] |
outputFormats
Support output formats (the formats that the effect can generate) |
ParameterExtractor_ |
pe
Extracts the parameters from a segmented and ROI marked image |
(package private) int |
sameFocusCounter
Counter for the number of times that the same sign has been recognizedThe current identified class (e.g. the "signed" letter or the last square where the eyes looked at). |
boolean |
saveInstancesImages
True if the frames captured (before and after processing) should be saved on disk |
SigusApp |
sigusApp
Application that will process the recognized visual signs |
Updater |
updater
The updater reads each training sample and writes it, converts it to arff (weka) format, and writes it to an arff file |
Fields inherited from interface javax.media.PlugIn |
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED |
Constructor Summary | |
SigusEffect()
Set focus related variables and supported formats |
Method Summary | |
abstract void |
applyFilters(byte[] inData,
byte[] jmfData,
byte[] outData,
int width,
int height)
The Digital Image Processing algorithms should be implemented or started in this function |
void |
close()
|
(package private) void |
copyImage(byte[] inData,
int[] imageCopy,
int height,
int width)
Copy the image to the imageCopy vector |
abstract void |
createParameterExtractor()
|
(package private) void |
createProcessedImageWindow(int width,
int height)
Create the window where the processed image is shown |
abstract void |
createSigusApp()
|
abstract void |
createUpdater()
|
java.lang.Object |
getControl(java.lang.String controlType)
|
java.lang.Object[] |
getControls()
|
java.lang.String |
getName()
|
javax.media.Format[] |
getSupportedInputFormats()
|
javax.media.Format[] |
getSupportedOutputFormats(javax.media.Format input)
Get the supported output formats. |
abstract void |
init()
|
boolean |
isCalibrating()
|
(package private) javax.media.Format |
matches(javax.media.Format in,
javax.media.Format[] outs)
Test if a specific format is compatible to any format from the list of supported formats |
void |
open()
|
int |
process(javax.media.Buffer inBuffer,
javax.media.Buffer outBuffer)
Takes a input image, inBuffer, and produces a processed image,outBuffer. |
void |
reset()
|
void |
resetLearner()
|
(package private) void |
saveImage(byte[] inData,
byte[] outData,
int width,
int height)
Save two images to disk: before and after processing |
javax.media.Format |
setInputFormat(javax.media.Format input)
|
javax.media.Format |
setOutputFormat(javax.media.Format output)
|
void |
setSaveInstances(boolean value)
Start or stop saving images to disk |
(package private) byte[] |
validateByteArraySize(javax.media.Buffer buffer,
int newSize)
Verify if buffer can be properly converted to a byte array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
javax.media.Format inputFormat
javax.media.Format outputFormat
javax.media.Format[] inputFormats
javax.media.Format[] outputFormats
public SigusApp sigusApp
public Learner_ learner
public Updater updater
public ParameterExtractor_ pe
public int MAX_CLASS
int lastFocus
int focus
int sameFocusCounter
public int maxFocus
public int minInstances
public boolean saveInstancesImages
boolean calibrating
public static ij.process.ImageProcessor ip
public static ij.ImagePlus imp
int[] imageCopy
static ij.process.ImageProcessor ipCopy
static ij.ImagePlus impCopy
java.awt.Rectangle lastRoi
Constructor Detail |
public SigusEffect()
Method Detail |
public int process(javax.media.Buffer inBuffer, javax.media.Buffer outBuffer)
process
in interface javax.media.Codec
inBuffer
- Buffer containing image captured by CameraReader.classoutBuffer
- Buffer that will be returned to CameraReader.class
public void setSaveInstances(boolean value)
void createProcessedImageWindow(int width, int height)
void copyImage(byte[] inData, int[] imageCopy, int height, int width)
width
- Image widthheight
- Image heightvoid saveImage(byte[] inData, byte[] outData, int width, int height)
width
- Image widthheight
- Image heightpublic boolean isCalibrating()
public void resetLearner()
public abstract void applyFilters(byte[] inData, byte[] jmfData, byte[] outData, int width, int height)
public abstract void createParameterExtractor()
public abstract void createUpdater()
public abstract void createSigusApp()
public abstract void init()
public java.lang.String getName()
getName
in interface javax.media.PlugIn
public void open()
open
in interface javax.media.PlugIn
public void close()
close
in interface javax.media.PlugIn
public void reset()
reset
in interface javax.media.PlugIn
public java.lang.Object getControl(java.lang.String controlType)
getControl
in interface javax.media.Controls
public java.lang.Object[] getControls()
getControls
in interface javax.media.Controls
public javax.media.Format[] getSupportedInputFormats()
getSupportedInputFormats
in interface javax.media.Codec
public javax.media.Format[] getSupportedOutputFormats(javax.media.Format input)
getSupportedOutputFormats
in interface javax.media.Codec
input
- If input is not null, return only the output formats that are compatible to the input format.
public javax.media.Format setInputFormat(javax.media.Format input)
setInputFormat
in interface javax.media.Codec
public javax.media.Format setOutputFormat(javax.media.Format output)
setOutputFormat
in interface javax.media.Codec
javax.media.Format matches(javax.media.Format in, javax.media.Format[] outs)
in
- format to be testedouts
- list of supported formats
byte[] validateByteArraySize(javax.media.Buffer buffer, int newSize)
buffer
- buffer containing the image.newSize
- the size of the byte array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |