Code Monkey home page Code Monkey logo

find-light-circle's Introduction

  • step0: 二值化
  • step1: 连通块染色 < bfs
  • step2: 求黑色区域出发到每个有色像素点的距离 < bfs(其实只要求边缘)这一步有点多余。黑色区域距离为 $0$
  • step3: 以有色质心作为圆心
  • step4: 外接半径是同色距离为 1 的像素点到圆心的平均距离
  • step5: 对每个圆,求其和所属染色块的 iou,排除相对于 $\mathop{\text{最}}\limits_{\text{所有圆}} \text{佳} \text{iou}$ 太小的圆,再取面积最大的。

Run test cmd line

gcc light_recognition.c -o 1 && ./1 light2.ppm > 1.ppm && open 1.ppm

find-light-circle's People

Contributors

julyfun avatar

Stargazers

 avatar Albert Wang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.