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

mmis - Verify if a relationship among images is true or false.


Synopsis
y = mmis( f1, oper, f2, oper1, f3 )
Input
f1: Gray-scale (uint8 or uint16) or binary image (logical uint8).
oper: String. relationship from: '==', '~=', '<','<=', '>', '>=', 'binary', 'gray'.
f2: Gray-scale (uint8 or uint16) or binary image (logical uint8). Default: No parameter.
oper1: String. relationship from: '==', '~=', '<','<=', '>', '>='. Default: No parameter.
f3: Gray-scale (uint8 or uint16) or binary image (logical uint8). Default: No parameter.
Output
y: Bool value: 0 or 1
Description
Verify if the property or relatioship between images is true or false. The result is true if the relationship is true for all the pixels in the image, and false otherwise. (Obs: This function replaces mmisequal, mmislesseq, mmisbinary).
Examples
fbin=logical(uint8([0 1]));
f1=uint8([1 2 3]);
f2=uint8([2 2 3]);
f3=uint8([2 3 4]);
mmis(fbin,'binary')

ans =
     1
mmis(f1,'gray')

ans =
     1
mmis(f1,'==',f2)

ans =
     0
mmis(f1,'<',f3)

ans =
     1
mmis(f1,'<=',f2)

ans =
     1
mmis(f1,'<=',f2,'<=',f3)

ans =
     1
See Also
mmbinary - Convert a gray-scale image into a binary image.
mmcmp - Compare two images pixelwisely.
mmfreedom - Control automatic data type conversion.
mmgray - Convert a binary image into a gray-scale image.
Source code
mmis.m

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