Image.__or__# Image.__or__(other: Image | ndarray | int | float | bool) → Image[source][source]# Overloaded | operator Returns: element-wise binary-or of images Return type: Image Compute the binary-or of an Image with another image or a scalar. Supports: image | image scalar | image image | scalar Examples >>> from machinevisiontoolbox import Image >>> img = Image([[1, 2], [3, 4]]) >>> z = img | Image([[2, 2], [2, 2]]) >>> z.array array([[3, 2], [3, 6]], dtype=uint8) >>> z = img | 1 >>> z.array array([[1, 3], [3, 5]], dtype=uint8)