Dilate Outline

✨ A Complete Guide to the Dilate Outline Tool

PhenoCapture’s Dilate Outline tool is a specialized morphological feature designed strictly for binary images. Acting as the exact opposite of the Erode Outline tool, this function meticulously scans your objects and adds exactly one pixel of thickness to the outer boundaries. It is the perfect tool for precise, single-pixel expansion and thickening of object perimeters without distorting the overall shape.


💡 Key Features

  • Precise 1-Pixel Boundary Expansion: The algorithm scans the background area immediately surrounding your objects. If a background pixel (Black) touches an object pixel (White) on its top, bottom, left, or right side, it is instantly recognized as an adjacent outline and converted to the object’s color, thickening the shape by exactly one pixel.
  • Dedicated to Binary Images: Built specifically for binary (black-and-white) images. It ensures that the structural integrity of your shapes is maintained while cleanly building upon the outermost layer.
  • Smart Regional Masking: Need to expand just one specific object? Draw a selection boundary! The tool will safely restrict its boundary-checking logic to the inside of your mask, ensuring no accidental dilation happens outside your selected area.
  • High-Speed Memory Optimization: Operating via direct memory access, the tool bypasses standard UI bottlenecks to sequentially process the pixel array (_SrcPixels). This guarantees rapid execution even on incredibly high-resolution binary maps.
  • Seamless Undo Integration: Connected directly to PhenoCapture’s built-in undo engine, allowing you to instantly revert the 1-pixel outline expansion if the result is too thick.

🛠️ How to Use the Dilate Outline Tool

Step 1: Prepare Your Binary Image and Mask (Optional)

Ensure your binary image is loaded into the main workspace. If you only want to dilate a specific object or region, use the advanced selection tools to draw your mask boundary. If no mask is active, the tool will process the entire image.

Step 2: Apply the Tool

Navigate to the menu and click on Dilate Outline.

Step 3: View the Result

The software will instantly scan the image, locate the exact background pixels touching your bright objects, and change them to the object color. Your objects will immediately appear exactly 1 pixel thicker. Use the Undo shortcut to easily compare the “before and after” shapes!