1. Click Binary»Adv. Morphology or click Adv. Morphology in the Binary tab of the Processing Functions palette.
  2. Select Convex.
  3. Click OK to close objects and add this step to the script.
Note This function is computer-intensive and can take several seconds.
Tip Use this function to close particles so you can make measurements even when the contour of the object is irregular.