Active Pixel Detection

This tool allows you to detect and mask active pixels from your GenX320 sensor array.

Indeed, metavision_active_pixel_detection generates .txt calibration file inside an output directory. This output directory can be specified with the option output-calib when launching the application.

Therefore, if you open a camera based on GenX320 sensor and if the specified output path to save the calibration result is the default one, the calibration data (depicted in the following section) will be applied automatically to mask active pixels.

The source code of this tool can be found in <install-prefix>/share/metavision/sdk/driver/cpp_samples/metavision_active_pixel_detection when installing Metavision SDK from installer or packages. For other deployment methods, check the page Path of Samples.

Note

Whereas this tool is designed for the GenX320, it can be used as well with other sensors (Gen3.1, Gen4.1 and IMX636).

In that case, it will allow only to detect the active pixels by revealing their coordinate (x,y) in the calibration data file.

Then, for Gen4.1 and IMX636 sensors the active pixels could be masked thanks to I_DigitalEventMask as shown in metavision_hal_showcase.

How to start

You can directly execute pre-compiled binary installed with Metavision SDK or compile the source code as described in this tutorial.

To start the application, run:

Linux

metavision_active_pixel_detection

Windows

metavision_active_pixel_detection.exe

To check for available options:

Linux

metavision_active_pixel_detection -h

Windows

metavision_active_pixel_detection.exe -h

Calibration data

As mentioned before, the calibration data are stored in a .txt file. Here is an example of the content of such a file where 4 actives pixels were detected:

% active_pixels_count 4
% active_pixels_percentage 0.003906
% bias_diff 51
% bias_diff_off 21
% bias_diff_on 25
% bias_fo 29
% bias_hpf 0
% bias_refr 10
% date 2023-11-27 17:51:00
% illumination 89
% max 87168.000000
% mean 0.980137
% stddev 273.519189
% temperature 27
% threshold 821.537704
% end
279 32
31 69
90 201
250 264