cv3.create.white

cv3.create.white(*args)[source]

Create an array filled with white pixels (255).

Parameters:

*args – Dimensions of the array. Can be passed as separate arguments (e.g., white(100, 100, 3)) or as a tuple.

Returns:

Array filled with 255 (white) of type uint8.

Return type:

numpy.ndarray

Example

>>> import cv3
>>> img = cv3.white(100, 100, 3)  # Create a white 100x100x3 image
>>> print(img[0, 0])  # All pixels are white
[255 255 255]