[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmislesseq - Verify if one image is less or equal another. Obsolete, use mmis.


Synopsis
bool = mmislesseq( f1, f2, MSG )
Input
f1: Gray-scale (uint8 or uint16) or binary image (logical uint8).
f2: Gray-scale (uint8 or uint16) or binary image (logical uint8).
MSG: String. Default: No parameter.
 
Obs: f1, f2 must have the same data type.
Output
bool: Boolean.
Description
mmislesseq compares the images f1 and f2 and returns true (1), if f1(x) <= f2(x), for every pixel x, and false (0), otherwise.
Examples
f1 = uint8([0:3])

f1 =
     0     1     2     3
f2 = uint8([9 5 3 3]);
f3 = f1;
mmislesseq(f1,f2)

ans =
     1
mmislesseq(f2,f3)

ans =
     0
mmislesseq(f1,f3)

ans =
     1
Equation

equation

Algorithm
function g = mmislesseq_equ(f1,f2)
g = all(all(f1<=f2));
See Also
mmcmp - Compare two images pixelwisely.
mmfreedom - Control automatic data type conversion.
mmis - Verify if a relationship among images is true or false.

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems