machinevisiontoolbox.Image.__lt__
- Image.__lt__(other)[source]
Overloaded
<
operator- Returns:
elementwise comparison of images
- Return type:
bool
Image
Compute the inequality between an Image and another image or a scalar. Supports:
image
<
imagescalar
<
imageimage
<
scalar
Example:
>>> from machinevisiontoolbox import Image >>> img = Image([[1, 2], [3, 4]]) >>> z = img < 2 >>> z.image array([[ True, False], [False, False]]) >>> z = img < Image([[10, 2], [3, 4]]) >>> z.image array([[ True, False], [False, False]])