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).
Total time used for the calculation of the module.
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-legacy.
Barycenter of the pixels density on X axis (width)
Barycenter of the pixels density on Y axis (height)
Gives the total number of pixels detected.
List of X coordinates of fulfilled cells as an array.
List of Y coordinates of fulfilled cells as an array.
List of density values (number of pixels) of fulfilled cells as an array.
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.
version 5.2.221206
Edit All Pages