Giter Club home page Giter Club logo

Comments (5)

inspirit avatar inspirit commented on June 15, 2024

Hough wasnt in my head at the moment since its quite computation expensive.
but i think it shouldnt be hard to port it from OpenCV for example, it looks pretty straight forward there.

from jsfeat.

lancejpollard avatar lancejpollard commented on June 15, 2024

Ah that makes sense. Are there ways to optimize the hough transform? I am just starting to learn about it but it seems that the algorithm basically iterates 360 times for each pixel in the image (if you divide the circle into 360 degrees rather than more fine-grained), so the larger the image the more it has to do. So a 600x600 image means ~130 million iterations? That seems kinda crazy, maybe I'm way off. That would be pretty slow for sure. Probably would take like a second at least, but it could be run in web workers.

But, if there was some way to segment an image, and only divide the circle into chunks smaller than 360 in some intelligent way, maybe it could be sped up. Is there anything you know in relation to that? This paper has some suggestions for "optimized hough transforms", such as implicit shape kernel and a few others:

http://link.springer.com/chapter/10.1007%2F978-3-642-41181-6_6#page-1

Thoughts?

from jsfeat.

inspirit avatar inspirit commented on June 15, 2024

i recommend to look at OpenCV implementation. as far as i know it has some rotation related optimizations.

from jsfeat.

lancejpollard avatar lancejpollard commented on June 15, 2024

Cool, sounds good.

from jsfeat.

literalpie avatar literalpie commented on June 15, 2024

This issue should be closed.

from jsfeat.

Related Issues (20)

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.