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.

Settings

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.

threshold

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)

nb pixels

Gives the total number of pixels detected.

array points x

List of X coordinates of fulfilled cells as an array.

array points y

List of Y coordinates of fulfilled cells as an array.

array points density

List of density values (number of pixels) of fulfilled cells as an array.

auto scale

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

contrasted

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

See also

version 6.0.240115

Edit All Pages