machinevisiontoolbox.Image.__ge__

Image.__ge__(other)[source]

Overloaded >= operator

Returns:

elementwise comparison of pixels

Return type:

bool Image

Compute the inequality between an Image and another image or a scalar. Supports:

  • image >= image

  • scalar >= image

  • image >= scalar

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image([[1, 2], [3, 4]])
>>> z = img >= 2
>>> z.image
array([[False,  True],
       [ True,  True]])
>>> z = img >= Image([[0, 2], [3, 4]])
>>> z.image
array([[ True,  True],
       [ True,  True]])
Seealso:

true false