The function ``2D_conn_comp'' performs the analogous operations on 2-D x-y planes of a volume.
min component size = 10The ``min component size = '' restricts the minimum size in voxels of saved components; all components smaller than this number are deleted (set to 0).
max no. of components = 254
connectivity = 6
save labels = no
input from vol # = 0
copy output to vol # = 0
The ``max no. of components = '' option determines how many components to save. If this parameter is set to 5, for example, only the 5 largest components are saved -- all others are deleted. If you only want to save the largest connected component, set this parameter to 1.
The option ``connectivity = '' sets the connectivity requirement of connected components. The options are ``6'' (for 6-connected) and ``26'' (for 26-connected) [28,23].
The ``save labels = '' option toggles between ``yes'' and ``no''. When the option is set to ``no'', only actions involving deleting components are done (per the settings of the parameters ``min component size = '' and ``max no. of components = ''). If the option is set to ``yes'', each different component will be assigned a unique number between 2 and 255; i.e., the component labeled 2 will have all of its voxels set to 2, etc.
Philip Americus