Expand (Dilate) Objects in Grayscale Images

NI Vision Assistant

Expand (Dilate) Objects in Grayscale Images

  1. Click Grayscale»Gray Morphology or select Gray Morphology in the Grayscale tab of the Processing Functions palette.
  2. Select Dilate from the Gray Morphology list.
  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. Enter the number of times that you want the dilation applied to the image in Iterations.
  6. Click OK to apply the dilation and add this step to the script.
Tips  
  • The structuring element is a 2D array used as a binary mask to define the neighborhood of a pixel. 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.
  • Experiment with different coefficients and the Kernel Size to get the results you want.

Related Topics

Expand (dilate) objects in binary images

Fill gaps and holes (close) in grayscale images

Reduce (erode) objects in grayscale images

Remove small objects (open) from grayscale images

Smooth object boundaries in grayscale images