iptcheckconn
Check validity of connectivity argument
Description
iptcheckconn(
checks if conn,func_name,var_name,arg_pos)conn is a valid pixel connectivity
and issues a formatted error message if the connectivity is
invalid.
If the connectivity is valid, then
iptcheckconnreturns nothing. Valid connectivities are one of these scalar values: 1, 4, 6, 8, 18, or 26. A connectivity can also be a 3-by-3-by- ... -by-3 array of0s and1s. The central element of a connectivity array must be nonzero and the array must be symmetric about its center.If the connectivity is invalid, then
iptcheckconnissues a formatted error message that includes information about the function name (func_name), the variable name (var_name), and the argument position (arg_pos). These values are used only to create the error message, not to check whether the pixel connectivity is valid.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced before R2006a