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 input flow(s).
Number of rows of the grid.
Number of lines of the grid.
Pixels that have intensity (lightness) lower than the threshold are ignored.
Array containing the calculated density. Its length is grid width x grid height and can be connected to a matrix.
Barycenter of the pixels density on X axis (width)
Barycenter of the pixels density on Y axis (height)
version 4.1.200407Edit All Pages