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

mmconv - Conventions used in the SDC Morphology Toolbox.


Synopsis
mmconv
Description
All operators of the SDC Morphology Toolbox starts with 'mm'. This is a simple rule to check if an operator belongs or not to the SDC Morphology Toolbox.

All operators of the SDC Morphology Toolbox obey the following rules of parameter uses:

- return a single data structure.

- the parameters are position and type dependent. For example, if the third parameter of an operator is a structuring element, then the third parameter can only be a structuring element for that operator. Note that this rule is somewhat different from most Matlab operators.

- the definition of optional parameters depends on the parameters order in the parameter list. One parameter that has a parameter on its right that is not optional can not be optional either. For example, the mmwatershed operator has 3 parameters: f, Bc and LINEREG, with the last two being optional. Therefore, the only ways that mmwatershed can be invoked are: mmwatershed(f), mmwatershed(f,Bc) or mmwatershed(f,Bc,LINEREG).

- when a default parameter is a structuring element, the elementary cross (mmsecross) is used as the default value.

All operators of the SDC Morphology Toolbox , with two image parameters, such as mmaddm, obey the following rules of parameter uses:

- the two images must have the same size.

- one of the images (normally the rightmost) can be represented by a constant. In this case, the constant is treated as a constant image, with the same size and type of the other image.

Source code
mmconv.m

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