Fill Holes and Smooth Right Angles

NI Vision Assistant

Fill Holes and Smooth Right Angles

  1. Click Binary»Basic Morphology or select Basic Morphology in the Binary tab of the Processing Functions palette.
  2. Select Thick to alter the shape of objects by adding parts to the object that match the pattern specified in the structuring element.
  3. Set the Size of the Structuring Element.
  4. Click the cells of the structuring element that you want to have a value of 0.
  5. Click OK to apply the thickening and add this step to the script.
Note  The structuring element is a 2D array used as a binary mask. You can modify the structuring element by clicking its cells. If a cell is black, it has a value of 1. If a cell is white (empty), it has a value of 0.
Tip  Experiment with different coefficients and the Kernel Size to get the results you want.

Related Topics

Expand (dilate) objects in binary images

Extract the contours of a particle

Fill gaps and holes (close) in binary images

Fill gaps and holes (close) in grayscale images

Fill holes

Reduce (erode) objects in binary images

Remove single pixels and right angles

Remove small objects (open) from binary images

Smooth an image with filtering

Smooth object boundaries in binary images

Smooth object boundaries in grayscale images