# Tag Info

### In opecv function Hough circles how does parameter 1 and 2 affect circle detection and how can I adjust them to increase accuracy?

Intuition for parameters of HoughCircles: image: 8-bit, single channel image. If working with a color image, convert to grayscale first. method: Defines the method to detect circles in images. ...
Accepted

### How to calculate particles sizes for spheric particles with overlapping and superposition? (Example image included)

Here is what I experimented with: Use ELSD to generate elliptic contours. You could basically use any edge detector, but since in the following stages I will benefit from circle detectors, it is good ...
• 5,465
Accepted

### Given a set of lines, find only those who are parallel (perspective)

Parallel lines in the image do intersect at a vanishing point. Therefore simply hypothesizing lines (a gradient direction at a point suffices to describe it) and voting (see Hough voting) would ...
• 5,465
Accepted

### Detect circles in image

1) Normalize your image to range $[0,255]$. 2) Select a threshold and threshold the image. For your image, what worked is: $\tau=[140-150]$. 3) Compute a Euclidean distance transform. 4) Apply ...
• 5,465
Accepted

### How can I isolate a Hough circle that I perceive to be the best fit, but is ranked much lower?

The Hough Transform is "right". Because it searches for the most consistent "shape" given the accumulated values. If all you would like to do is to find the center of the spot, there are other ...
• 10.7k

### How to set threshold value for Hough Transform

Well, it really depends on what you expect to find in the image. The matlab function uses an example threshold of half the largest peak. What sort of images are you using this on? So, based on just ...
• 25.9k
Accepted

### Fitting a grid to points in a 2d space

You could represent the grid with 5 parameters: (x0, y0) to represent the offset from your image origin to the grid origin (xs, ys) to represent a multiplication factor from your image plane to your ...
• 46
Accepted

### Algo Name: Detecting Elongated Shape in 2D Image by Convolution with Directed Lines

What you are essentially doing is a matched filter. However, thanks to Hough transform, your filter (line) is oriented and therefore I would call it an oriented matched filter. For generating the ...
• 5,465
Accepted

### Difference between Generalized Hough Transform and Cross-correlation Feature Matching

There is a big difference: The Hough Transform maps the input space to a parameter space, where the search takes place. This way, the run-time of the algorithm is independent of the degree of the ...
• 5,465

• 10.7k
Accepted

### Image processing: How to find center of biggest blob in an image?

do a distance transform. you'll see why that's a good idea: for every pixel you get the shortest distance to a border. that's exactly the radius of an inscribed circle. from this, just find the pixel ...

### How to segment multiple overlapping coins (ellipses)

Segmentation is generally a process that is very susceptible to noise. I would better use a detector, especially for geometric shapes like coins. Remember, if you have a good detection, you also ease ...
• 5,465

### Help or suggestions with Line detection in microscopy images

Instead of using a homegrown amalgamation of algorithms, I suggest you look in the scientific literature for existing solutions. People have solved the same problem over and over again, there exist ...
• 2,700
1 vote

### Help or suggestions with Line detection in microscopy images

I used Median Blur instead of Gaussian Blur, and used Sobel Filter to detect the edges, the ...
• 167
1 vote

### Hough Transform not working to recognize a line

What you want is just to find the function $$y(x) = mx + q$$ that fits through the centroids you've found. You wouldn't do a Hough transform on that (since Hough transforms generally perform badly ...
• 31.3k
1 vote
Accepted

### Computer Vision - Does implementation of Hough Transform for lines require a loop for angle parameter?

In real world implementations, is the line: for theta = [theta_min to theta_max ] required? . . . Since we apply Canny edge detector to an image, prior to Hough Transform, we can obtain angle of ...
• 10.7k
1 vote
Accepted

### Selecting gradient orientation for Generalized Hough Transform while scaling and rotation is present

I was having the same issue as you had: most resources I found online seem to miss this issue about the rotating gradient orientation, as did A_A in their answer (which to be fair is very clear in the ...
1 vote
Accepted

### MatLab - Can not detect all lines in a "simple" image using houghlines

houghpeaks function in MATLAB accepts a parameter named NHoodSize that specifies the size of the neighborhood where a non-...
• 5,465
1 vote

### Line Detection with OpenCV and Python

The performance of line detectors are image and application dependent in generally. Typically, people tune the parameters of the detectors to get the best possible result. When such a result cannot be ...
• 5,465
1 vote

### Edge following using Hough transform

SLAM is Simultaneous Localization and Mapping. If you have maps already, I think your main challenge in line following is the localization part. For straight lines, Canny+Hough pipeline works ...
• 156

Only top scored, non community-wiki answers of a minimum length are eligible