Receptor
ReceptorLayer
Bases: LayerBase
A layer of receptors.
This layer applies the first processing steps to the raw input, including saccades and RGB to grayscale conversion.
forward(signal, dt=None)
Read the input and apply a certain offset if saccades are enabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
signal
|
ndarray
|
The raw input signal. |
required |
dt
|
float | None
|
In the case of temporal integration, indicates the time since the last input. |
None
|
Returns:
| Type | Description |
|---|---|
ndarray
|
The frame with optional padding (for saccades). |
record_raw(fpath=None, vl=None)
Add a recorder to the layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fpath
|
str | Path | None
|
Optional path to save the recording to. |
None
|
vl
|
VideoLoader | None
|
Optional video loader. |
None
|
Returns:
| Type | Description |
|---|---|
VideoRecorder
|
A VideoRecorder instance. |