Image Processing Toolbox User's Guide |
Check validity of connectivity argument
Syntax
Description
iptcheckconn(CONN,func_name,var_name,arg_pos)
checks whether CONN
is a valid connectivity argument. If it is invalid, the function issues a formatted error message.
A connectivity argument can be one of the following scalar values: 1, 4, 6, 8, 18, or 26. A connectivity argument can also be a 3-by-3-by- ... -by-3 array of 0's and 1s. The central element of a connectivity array must be nonzero and the array must be symmetric about its center.
func_name is a string that specifies the name used in the formatted error message to identify the function checking the connectivity argument.
var_name is a string that specifies the name used in the formatted error message to identify the argument being checked.
arg_pos is a positive integer that indicates the position of the argument being checked in the function argument list. iptcheckconn
converts this value to an ordinal number and includes this information in the formatted error message.
Class Support
CONN
must be of class double
or logical and must be real and nonsparse.
Example
To trigger this error message, this example creates a 4-by-4 array and passes it as the connectivity argument.
See Also
iptaddcallback | iptcheckhandle |
© 1994-2005 The MathWorks, Inc.