XR8.CameraPixelArray.pipelineModule()
XR8.CameraPixelArray.pipelineModule({ luminance, maxDimension, width, height })
Description
A pipeline module that provides the camera texture as an array of RGBA or grayscale pixel values that can be used for CPU image processing.
Parameters
Parameter | Default | Description |
---|---|---|
luminance [Optional] | false | If true, output grayscale instead of RGBA |
maxDimension: [Optional] | The size in pixels of the longest dimension of the output image. The shorter dimension will be scaled relative to the size of the camera input so that the image is resized without cropping or distortion. | |
width [Optional] | The width of the camera feed texture. | Width of the output image. Ignored if maxDimension is specified. |
height [Optional] | The height of the camera feed texture. | Height of the output image. Ignored if maxDimension is specified. |