This function supports the generation of C code using MATLAB Coder™. Note that if you choose the genericMATLAB Host Computer
target platform, the function generates code that uses a precompiled, platform-specific shared library. Use of a shared library preserves performance optimizations but limits the target platforms for which code can be generated. For more information, see Understanding Code Generation with Image Processing Toolbox.
When generating code, note the following:
-
The parameter conn
must be a compile-time constant.
-
The parameter options
must be a compile-time constant.
-
The return value A
can only be a full matrix, not a sparse matrix.
The bwboundaries
function implements the Moore-Neighbor tracing algorithm modified by Jacob's stopping criteria. This function is based on the boundaries
function presented in the first edition of Digital Image Processing Using MATLAB, by Gonzalez, R. C., R. E. Woods, and S. L. Eddins, New Jersey, Pearson Prentice Hall, 2004.