hbp_nrp_cle.tf_framework.spike_generators.MonochromeImageSpikeGenerator module

This module contains a class generating spikes for a monochrome image

class MonochromeImageSpikeGenerator(width, height)[source]

Bases: hbp_nrp_cle.brainsim.BrainInterface.ICustomDevice

A spike generator device that transforms camera images into spikes

apply(neurons, brain_adapter, **config)[source]

Binds the current image spike generator

Parameters
  • neurons – The target image neurons

  • brain_adapter – The brain communication adapter

  • config – Additional configuration

reset(transfer_function_manager)[source]

Resets the device

Parameters

transfer_function_manager – The transfer function manager the device belongs to

Returns

The reset adapter

update_image(image)[source]

Updates the image for this device

Parameters

image – The image to be processed