Erode Outline

✨ A Complete Guide to the Erode Outline Tool

PhenoCapture’s Erode Outline tool is a specialized morphological feature designed strictly for binary images. Unlike standard erosion filters that use a block matrix (like 3×3 or 5×5), this tool meticulously scans your shapes and shaves off exactly one pixel of thickness from the outer boundaries. It is the perfect tool for precise, single-pixel thinning and refining object perimeters.


💡 Key Features

  • Precise 1-Pixel Boundary Erosion: The algorithm uses a highly optimized “Gather” approach. It checks the top, bottom, left, and right neighbors of every pixel. If a pixel touches a different color, it is instantly recognized as an outline and converted to the background color (Black).
  • 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 stripping away the outermost layer.
  • Smart Regional Masking: Need to thin out 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 erosion happens outside your selected area.
  • High-Speed Memory Optimization: While it runs a sequential scan, it bypasses standard UI bottlenecks by directly accessing the memory arrays (_SrcPixels), guaranteeing rapid execution even on 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 erosion if needed.

🛠️ How to Use the Erode 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 erode 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 Erode Outline.

Step 3: View the Result

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