Enclosed_Area_Extractor
by Augustinegeorge / Nov 21, 2026 / Neurons 73,416 / Synapses 127,048
This genome detects enclosed spaces in abstract shapes. It identifies the inner boundary of a closed loop and fills the region it surrounds. The output shows where the enclosed space is and what shape it takes.
The circuit processes a 28 × 28 pixel image of an abstract shape. Two branches work on the same image. One finds the shape’s boundaries, and the other identifies the background outside it.
- Find the boundaries. The first branch inverts the image and detects its edges. The Frame Mask removes the square border of the grid, leaving the shape’s outer and inner outlines.
- Build a filled silhouette. The second branch extends the shape in eight directions and keeps the pixels where all eight projections overlap. This creates a filled silhouette. Inverting it highlights the outside background.
- Isolate the inner outline. The outside background suppresses the outer outline, leaving the boundary around the enclosed space.
- Fill the enclosed area. The circuit extends the inner outline left and right along each row. Pixels reached from both directions light up in the Enclosed Area output, showing the region inside the loop.
