DVSNoise
pyaer.filters.DVSNoise(size_x, size_y)
Software DVS background activity filter.
Arguments
- size_x:
uint16
maximum X axis resolution. - size_y:
uint16
maximum Y axis resolution.
initialize
initialize()
Initialize.
destroy
destroy()
Destroy DVS noise filter to free up memory.
set_bias_from_json
set_bias_from_json(file_path, verbose=False)
Set bias from loading JSON configuration file.
Arguments
- file_path:
str
absolute path of the JSON bias file.
set_bias
set_bias(bias_obj)
Configure filter.
Arguments
- bias_obj:
dict
A dictionary that contains the configuration of the filter
get_bias
get_bias()
Export configuration.
Returns
- bias_obj:
dict
A dictionary that contains the configuration of the filter
save_bias_to_json
save_bias_to_json(file_path)
Save filter configuration to JSON.
Arguments
- file_path:
str
the absolute path to the destiation.
Returns
- flag:
bool
returns True if success in writing, False otherwise.
set_config
set_config(param_addr, param)
Set configuration.
Arguments
- param_addr:
uint8
a configuration parameter address, see definesCAER_FILTER_DVS_*
. - param:
uint64
a configuration parameter value integer.
Returns
- flag:
bool
True if operation successful, false otherwise.
get_config
get_config(param_addr)
Get configuration.
Arguments
- param_addr:
uint8
a configuration parameter address, see definesCAER_FILTER_DVS_*
.
Returns
- param:
uint64
the value of the configuration.
apply
apply(event_packet)
Apply the filter to a event_packet.
Arguments
- event_packet:
caerEventPacket
the event packet to filter.
Returns
- filtered_event_packet:
caerEventPacket
the filtered event packet.
get_hot_pixels
get_hot_pixels()