20.7   Smoothing Region Boundaries

The third (and final) application example of morphological operations covers another common image processing problem — the smoothing of region boundaries and closing of small holes in the regions:

  ...
  segmentation(Image,&Seg);
  gen_circle(&Mask,100.0,100.0,3.5);
  closing(Seg,Mask,&Res);