00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 static const char docstring[] =
00011 "concomponent: identify connected components\n"
00012 "\n"
00013 " [y,nr]=concomponent(x,nbr);\n"
00014 " * identifies connected components of a binary labeling x, storing\n"
00015 " the result as a like-sized image y. The number of regions is\n"
00016 " optionally returned in nr.\n"
00017 " * On-region components of y are in the range 1..nr. Inputs x\n"
00018 " of 0 or NaN are treated as off-region, but passed intact through\n"
00019 " to output region map as 0 or NaN.\n"
00020 " * Either the 4-pixel neighborhood (N/S/E/W) template can be used,\n"
00021 " or the 8-pixel neighborhood, which includes diagonal pixels.\n"
00022 " Default is 8.\n"
00023 " * This is implemented as a MEX file.\n"
00024 "\n"
00025 " Inputs:\n"
00026 " real x(m,n); -- 0, 1, or NaN\n"
00027 " opt int nbr = 8; -- 4 or 8\n"
00028 "\n"
00029 " Outputs:\n"
00030 " int y(m,n); -- 0, NaN, or 1..nr\n"
00031 " opt int nr;\n"
00032 "\n"
00033 " See Also: region_bb\n"
00034 "\n"
00035 " turmon may 2001\n"
00036 "\n"
00037 "";
00038
00039
00040