Lucid.CLIP.Extract

Extracts a selected part or the largest part of a structure in a binary segmented image. An optional morphological opening operation can be used to disconnect the selected part from surrounding parts. The erosion and dilation involved in the morphological opening will be carried out before and after structure selection for better efficiency/quality. Inner cavities of the extracted structure can optionally be filled. A layer of a given thickness can be peeled off the structure to e.g. compensate for boundary effects.