✨ A Complete Guide to Removing Black Dots
PhenoCapture’s Remove Black Dots tool is a highly effective cleanup filter designed to eliminate small, unwanted black artifacts or “pinholes” inside white objects on your binary images. By dynamically scanning the gaps between white pixels, it automatically fills in missing data, making it an essential tool for repairing noisy masks or disconnected segments.
💡 Key Features
- Customizable Gap Size: You have total control over the aggressiveness of the cleanup! When you run the tool, you are prompted to enter a specific gap size (between 1 and 10 pixels). The algorithm will strictly target and fill only the black dots that fall within this defined threshold, preserving your larger intentional black regions.
- Dual-Axis Scanning: To ensure accurate hole filling, the algorithm performs a smart directional check:
- Horizontal Check: It scans to the left and right of every black pixel. If it finds solid white pixels on both sides within your specified gap size, it fills the hole.
- Vertical Check: If the horizontal check fails, it instantly scans up and down to see if the hole is bounded vertically. This dual approach ensures that even irregularly shaped pinholes are patched flawlessly!
- Smart Regional Masking: Need to clean up just one specific area of your image without touching the rest? Draw a selection boundary! The tool will safely restrict its gap-checking logic to the inside of your mask, completely ignoring the surrounding unmasked areas.
- Multi-Core Parallel Processing: Scanning in multiple directions for every single black pixel can be incredibly heavy. PhenoCapture bypasses this bottleneck by splitting the image processing across your CPU’s available cores, ensuring rapid artifact removal even on massive, high-resolution datasets.
- Seamless Undo Integration: Connected directly to PhenoCapture’s built-in undo engine. If you set the gap size too high and accidentally fill in areas you wanted to keep, simply use the standard Undo shortcut and try again with a smaller value!
🛠️ How to Use the Remove Black Dots Tool
Step 1: Prepare Your Image and Mask (Optional)
Ensure your binary image is loaded into the main workspace. If you only want to clean up artifacts from a specific object or region, use the advanced selection tools to draw your mask boundary. If no mask is active, the tool will analyze the entire image.
Step 2: Apply the Tool
Navigate to the menu and click on Remove Black Dots.
Step 3: Define the Gap Size
A small prompt box will appear. Enter a number between 1 and 10 to define the maximum size of the black dots or gaps you want the software to fill in.
Step 4: Let the Engine Work
Click OK! The software will instantly scan your image horizontally and vertically, filling in all the black pixels that fit within your gap threshold. Your newly cleaned and repaired binary map will instantly appear in the workspace.