hn.today

Show HN: My compact, bio inspired distributed edge detection algorithm

github.com3 points0 comments
Screenshot of Show HN: My compact, bio inspired distributed edge detection algorithm

HaCI (Harmonic Contour Integration) is a compact, fully distributed edge-detection system for RGB images, designed around biologically inspired contrast processing and contour integration. It first compares each pixel with its eight neighbors using a learned luminance-and-chroma metric, normalizing contrast by local energy. It then pools these signals into orientation-specific responses on a sparse grid. A contour-support stage boosts edges that continue along a plausible curved path, bridges gaps supported from both sides, and suppresses texture through same-orientation and flank inhibition. Finally, the system projects cell-level contour strength back onto the image with learned, orientation-aligned kernels and applies non-maximum suppression to produce an edge map.

The supplied model was trained on 300 BRIND images and evaluated on 200 test images using the Berkeley boundary benchmark. Its thinned output reaches ODS 0.7179, OIS 0.7402, and AP 0.7651; the unthinned soft map has ODS 0.7158 and AP 0.6723. On an Apple M4, inference takes 36 ms at 481×321, 201 ms at 1280×720, and 459 ms at 1920×1080. The public Python repository includes pretrained weights, training and evaluation tools, diagnostics, and scripts for BRIND, BIPED, and NYUDv2 datasets. It supports CPU, CUDA, and Apple Silicon acceleration, with a Metal implementation for the rendering step on MPS.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

Now Anthropic is blocking Russian users

Now Anthropic is blocking Russian users

Anthropic is accused of charging Russian Claude users before identity checks, then cutting off access after verification and retaining biometric data. Critics say account bans can affect linked GitHub projects and Russian citizens living abroad, and accuse the company of failing to answer public questions. (twitter.com)

The End of AI Frontiers

The End of AI Frontiers

Microsoft Research’s AI Frontiers group brought together about 50 researchers to develop agent systems and foundational AI advances. After the team joined Microsoft AI in September, its research-first approach clashed with leadership’s emphasis on scaling. (hunch.net)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.