hough-transform

Rectangle detection with Hough transform

I'm trying to implement rectangle detection using the Hough transform, based on this paper. I programmed it using Matlab, but after the detection of parallel pair lines and orthogonal pairs, I must detect the intersection of these pairs. My question is about the quality of the two line intersection in Hough space. I found the intersec...

Hough Transform question

Hi I implemented Hough Transform in C# this way: List<Point> forme = new List<Point>(); forme.Add(new Point(260, 307)); forme.Add(new Point(268, 302)); forme.Add(new Point(273, 299)); forme.Add(new Point(279, 295)); forme.Add(new Point(285, 292)); forme.Add(new Point(291, 288));...

Peak-finding algorithm for Python/SciPy

I can write something myself by finding zero-crossings of the first derivative or something, but it seems like a common-enough function to be included in standard libraries. Anyone know of one? My particular application is a 2D array, but usually it would be used for finding peaks in FFTs, etc. Specifically, in these kinds of problems...

How to select maximum intensity in hough transform in Matlab?

Hello, After doing the hough transform in Matlab, how do I pick the lines so that I can compare between 2 or more images? Thanks. I followed the example given by Amro below and actually what I wanted to detect is the 2 lines in the 1st picture however what I got is the one in the 2nd picture. Can anyone help? Thanks! ...

How to count number of lines (Hough Trsnform) in OpenCV

Hi, I am successfully able to detect hair strands in an image as lines. I see that the output image detects each hair as line.I use cvHoughLines2() with method parameter as CV_HOUGH_PROBABILISTIC. Now I want to count these lines.The output image shows 1 or 2 line over each hair.I see that each line is composed of small line segments. And...

Houghlines in Matlab

Hello, After detecting the lines in an image using Houghlines, how can I use it to calculate the change in angle(rotation) of the lines of a reference image? Thanks. ...

Hough transformation for iris detection in opencv

Hi, I wrote the code for hough transformation and it works well. Also I can crop the eye location of a face. Now I want to detect the iris of the crop image with applying the Hough transformation(cvHoughCircle). However when I try this procedure, the system is not able to find any circle on the image. Maybe, the reason is, there are noi...

OpenCV Python HoughCircles error

Hi, I'm working on a program that detects circular shapes in images. I decided a Hough Transform would be the best, and I found one in the OpenCV library. The problem is that when I try to use it I get an error that I have no idea how to fix. Is OpenCV for Python not fully implemented? Is there a fix to the library I need for the progra...

logic behind the code

could any one explain me logic behind this code?? pt1.x = cvRound(x0 + 1000*(-b)); pt1.y = cvRound(y0 + 1000*(a)); pt2.x = cvRound(x0 - 1000*(-b)); pt2.y = cvRound(y0 - 1000*(a)); ...

Search for lines with a small range of angles in OpenCV

I'm using the Hough transform in OpenCV to detect lines. However, I know in advance that I only need lines within a very limited range of angles (about 10 degrees or so). I'm doing this in a very performance sensitive setting, so I'd like to avoid the extra work spent detecting lines at other angles, lines I know in advance I don't care ...

Road Detection based on Hough Transform

Is it possible to detect and track a road, in an autonomous vehicle, using Hough Transform? If so, are there any algorithms that implement this already? Would love a link to one as I haven't really been able to find any that aren't way over my head. In particular, I'm looking for algorithms that use the vanishing point of two straight l...

How do we modify OpenCV and generate new DLLs

Hello! The OpenCV library is great. Most functions have the required functionality, however, I would like to modify some of the functions and recompile so that it fits my specific needs. how would we recompile the dlls and other files? is there a built-in script or do we need to write all the scripts ourselves? ...