Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
OpenCV 3.0 Computer Vision with Java

You're reading from  OpenCV 3.0 Computer Vision with Java

Product type Book
Published in Jul 2015
Publisher
ISBN-13 9781783283972
Pages 174 pages
Edition 1st Edition
Languages
Author (1):
Daniel Lelis Baggio Daniel Lelis Baggio
Profile icon Daniel Lelis Baggio

Table of Contents (15) Chapters

OpenCV 3.0 Computer Vision with Java
Credits
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
Setting Up OpenCV for Java Handling Matrices, Files, Cameras, and GUIs Image Filters and Morphological Operators Image Transforms Object Detection Using Ada Boost and Haar Cascades Detecting Foreground and Background Regions and Depth with a Kinect Device OpenCV on the Server Side Index

The line and circle Hough transforms


In case you need to find straight lines or circles in an image, you can use Hough transforms, as they are very useful. In this section, we will cover OpenCV methods to extract them from your image.

The idea behind the original Hough line transform is that any point in a binary image could be part of a set of lines. Suppose each straight line could be parameterized by the y = mx + b line equation, where m is the line slope and b is the y axis intercept of this line. Now, we could iterate the whole binary image, storing each of the m and b parameters and checking their accumulation. The local maximum points of the m and b parameters would yield equations of straight lines that mostly appeared in the image. Actually, instead of using the slope and y axis interception point, we use the polar straight line representation.

Since OpenCV not only supports the standard Hough transform, but also the progressive probabilistic Hough transform for which the two functions...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}