00001 00002 /* 00003 * THIS IS A GENERATED FILE; DO NOT EDIT. 00004 * 00005 * Declarations for calling `concomponent' a.k.a. `ccp' as a C library. 00006 * 00007 * Made by intermediate binary concomponent.out on Mon May 3 17:24:30 2010 00008 * 00009 * Source file ../Gen-include.c last modified on Mon May 3 17:04:13 2010 00010 */ 00011 00012 // Original documentation block 00013 /* 00014 * concomponent: identify connected components 00015 * 00016 * [y,nr]=concomponent(x,nbr); 00017 * * identifies connected components of a binary labeling x, storing 00018 * the result as a like-sized image y. The number of regions is 00019 * optionally returned in nr. 00020 * * On-region components of y are in the range 1..nr. Inputs x 00021 * of 0 or NaN are treated as off-region, but passed intact through 00022 * to output region map as 0 or NaN. 00023 * * Either the 4-pixel neighborhood (N/S/E/W) template can be used, 00024 * or the 8-pixel neighborhood, which includes diagonal pixels. 00025 * Default is 8. 00026 * * This is implemented as a MEX file. 00027 * 00028 * Inputs: 00029 * real x(m,n); -- 0, 1, or NaN 00030 * opt int nbr = 8; -- 4 or 8 00031 * 00032 * Outputs: 00033 * int y(m,n); -- 0, NaN, or 1..nr 00034 * opt int nr; 00035 * 00036 * See Also: region_bb 00037 * 00038 * turmon may 2001 00039 * 00040 * 00041 */ 00042 00043 // function entry point 00044 mexfn_lib_t main_concomponent; 00045 00046 // argument counts 00047 #define MXT_ccp_NARGIN_MIN 1 00048 #define MXT_ccp_NARGIN_MAX 2 00049 #define MXT_ccp_NARGOUT_MIN 0 00050 #define MXT_ccp_NARGOUT_MAX 2 00051 00052 // input argument numbers 00053 #define MXT_ccp_ARG_x 0 00054 #define MXT_ccp_ARG_nbr 1 00055 00056 // output argument numbers 00057 #define MXT_ccp_ARG_y 0 00058 #define MXT_ccp_ARG_nr 1 00059 00060 00061 // (file ends)