ninput VEX function
Reads a pixel and its eight neighbors into a 3×3 matrix.
Context: cop
-
matrix3 ninput(int , int , int , int , int , int , int ) -
matrix3 ninput(int , int , int , int , float , float , int )
Reads a pixel and its eight neighbors into a 3×3 matrix. Ideal for simple kernel and subpixel operations. The floating point UV version always rounds to the nearest pixel.
Only one component is read at a time. To read a Color plane, you would need to call ninput() three times to read R,G and B (with component set to 0, 1 and 2).