Skip to main content

Module render

Module render 

Source
Expand description

Render insects as Gaussian blobs into a Mono8 image that the real flydra-feature-detector reliably localizes.

Functions§

render_mono8
Render a width x height Mono8 image: a flat background with an additive Gaussian blob (peak peak, standard deviation sigma pixels) at each (x, y) center in blobs. Stride equals width.
render_rgb8
Render a width x height RGB8 image of the same neutral-gray scene as render_mono8: every pixel’s three channels are set equal to the Mono8 value, so the content (background plus Gaussian blobs) is identical, just carried in a color pixel format. Stride equals width * 3.
render_yuv422_uyvy
Render a width x height YUV422 (UYVY-packed) image of the same neutral-gray scene as render_mono8: each pixel’s luma (Y) is the Mono8 value and the shared chroma (U, V) is neutral (128). The byte order is [U, Y0, V, Y1] per horizontal pixel pair, matching machine_vision_formats::pixel_format::YUV422. Stride equals width * 2.