Memory intensive but fast - contains no for loops. Best suited for non-binary inputs resulting in weighted results, but works just fine for binary images as well - though perhaps slower than needed since a multiplication is probably slower than an 'and' operation.
Two inputs required:
1) The input image to have the hough performed upon (IJ)
2) The kernel image (k). This can be any image - a line, circle, wrench... It doesn't matter as long as it is greyscale and positive. The output marks are with respect to the center of the kernel.
Probably works best for pixel values ranging between 0 and 1, but this isn't likely to be a big deal.
Assumes background is zero.
Best suited for sparse images - the fewer non-zero pixels the more this outperforms other Hough transform functions. So, anything you can set to zero is a good idea, but still works fine if you can't afford to (assuming you have the memory).
Cite As
ja (2024). General 2D hough transform (https://www.mathworks.com/matlabcentral/fileexchange/47120-general-2d-hough-transform), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation > Image Category Classification >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.