Algorithme
Class Algorithme

java.lang.Object
  |
  +--Algorithme.Algorithme

public class Algorithme
extends Object

The class implementing the algorithme for the retinal vision.

Version:
1.0
Author:
Sebastien Baehni

Field Summary
protected  int height
          This is the height of the image.
protected  int[] input
          This is the input stimuli
protected  int[] output1
          This is the first output stimuli
protected  int[] output2
          This is the second output stimuli
protected  int width
          This is the width of the image.
 
Constructor Summary
Algorithme(int[] input, int width, int height)
          Our constructor.
 
Method Summary
 void init()
          This method initialize the different parameters in order to use the algorithme.
 int[] input()
          The input stimuli.
 int[] output1()
          The output stimuli after the first low pass filter.
 int output1(int index)
          We acceed at one component of our output stimuli after the first pass filter.
 int[] output2()
          The output sitmuli after the second low pass filter.
 int output2(int index)
          We acceed at one component of our output stimuli after the second pass filter.
 int[] RCFilter(int[] input, int[] output, float deltaT, float synapticResistance, float jonctionResistance, float membranarResistance, float membranarCapacity)
          Our algorithme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected int[] input
This is the input stimuli

output1

protected int[] output1
This is the first output stimuli

output2

protected int[] output2
This is the second output stimuli

width

protected int width
This is the width of the image.

height

protected int height
This is the height of the image.
Constructor Detail

Algorithme

public Algorithme(int[] input,
                  int width,
                  int height)
Our constructor.
Parameters:
input - The input stimuli.
width - The width of our input image.
height - The height of our input image.
Method Detail

init

public void init()
This method initialize the different parameters in order to use the algorithme.

RCFilter

public int[] RCFilter(int[] input,
                      int[] output,
                      float deltaT,
                      float synapticResistance,
                      float jonctionResistance,
                      float membranarResistance,
                      float membranarCapacity)
               throws AlgorithmeError
Our algorithme. It simules a RC filter. It can be seen like a mask of pixels applied on the center pixel of the mask. This is a general vision of it, but it's much more complicate.
Parameters:
input - The input of our filter.
output - The response of our filter.
deltaT - The time derivative discretisation.
synapticResistance - The synaptic resistance.
jonctionResistance - The jonction resistance.
membranarResistance - The resistance which refine our neural membran caracteristic.
membranarCapacity - The capacity of our neural membran.
Returns:
The response of the RCFilter
Throws:
AlgorithmeError -  

input

public int[] input()
The input stimuli.
Returns:
The input stimuli.

output1

public int[] output1()
The output stimuli after the first low pass filter.
Returns:
The first output stimuli.

output1

public int output1(int index)
            throws AlgorithmeError
We acceed at one component of our output stimuli after the first pass filter.
Parameters:
index - The index we want to acceed.
Returns:
The value of the first output stimuli at index index or an error if index isn't in the first output array
Throws:
AlgorithmeError -  

output2

public int[] output2()
The output sitmuli after the second low pass filter.
Returns:
the second output stimuli.

output2

public int output2(int index)
            throws AlgorithmeError
We acceed at one component of our output stimuli after the second pass filter.
Parameters:
index - The index we want to acceed.
Returns:
The value of the second output stimuli at index index or an error if index isn't in the second output array
Throws:
AlgorithmeError -