Video Pixel Density

Transforms a video flow into a grid of pixels density. It superimposes a grid and in each cell of the grid it counts the number of light pixels according the threshold. It also calculate the barycenter of the pixels density.

Can be used in motion detection, see /Library/Help Patches/Video/Pixel Density.pat example.


video in

Video input flow(s).

process time

Total time used for the calculation of the module.

grid width

Number of rows of the grid.

grid height

Number of lines of the grid.


Pixels that have intensity (lightness) lower than the threshold are ignored.

grid density

Array containing the calculated density. Its length is grid width x grid height and can be connected to a matrix-legacy.

barycenter x

Barycenter of the pixels density on X axis (width)

barycenter y

Barycenter of the pixels density on Y axis (height)

auto scale

When ON, always maintains the output density array in the range [0..1].


Increases the contrast of the video input. Can improve the video detection accuracy.

nb pixels

Gives the total number of pixels detected.

See also

version 5.0.210914

Edit All Pages