8.5   Eliminating Small Objects

The morphological operator Opening eliminates small objects and smoothes the contours of regions.

  ...
  segmentation(Image,&Seg);
  HRegion Circle(100,100,3.5);
  HRegion Res = Seg.Opening(Circle);