Hot answers tagged

13 votes
Accepted

What Is the Difference between Difference of Gaussian, Laplace of Gaussian, and Mexican Hat Wavelet?

Laplace of Gaussian The Laplace of Gaussian (LoG) of image $f$ can be written as $$ \nabla^2 (f * g) = f * \nabla^2 g $$ with $g$ the Gaussian kernel and $*$ the convolution. That is, the Laplace ...
user avatar
  • 1,023
9 votes

How do I get the most accurate camera calibration?

I decided to post this answer here because a while back, this came up as the top result in Google and its suggestions helped me. So I decided to share my experience too. Having spent countless hours ...
user avatar
  • 191
9 votes

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. ...
user avatar
8 votes
Accepted

How to remove the noise without destroying the main edge?

Use bilateral filter or anisotropic diffusion first. The effect of anisotropic diffusion is as the following: . The MATLAB code can be found here. Here is its effect on your image: Finally, non-...
user avatar
  • 5,207
7 votes

How do I get the most accurate camera calibration?

Here is a list of 'best practices' for camera calibration which I originally posted here: https://calib.io/blogs/knowledge-base/calibration-best-practices Choose the right size calibration target. ...
user avatar
  • 146
7 votes
Accepted

Isolate the non blurred part of foucsed image

In general, this is an image segmentation problem (http://en.wikipedia.org/wiki/Image_segmentation) into which you would be trying to isolate the focused to the non-focused regions of the image. ...
user avatar
  • 10.1k
7 votes
Accepted

How to Get Rid of Ripples from a Gradient Image of a Smoothed Image?

I think it happens due to 2 things: Quantization You are working using UINT8 Image, try convert it into floating Point Image. You may do this by ...
user avatar
  • 40.7k
6 votes

How to Create Image Editing Filters

The word "Filter" in Image Processing word relates to "Neighborhood" based operation on pixels. Filters in the context of Instagram and other Image Processing applications are combination of point ...
user avatar
  • 40.7k
6 votes
Accepted

Is it possible to hack camera calibration without having access to the camera?

If I understand correctly, you don't need the intrinsics or extrinsics to achieve that, if a top-down view is all you want. You could basically define 4 points on your parallel lines and then warp the ...
user avatar
  • 5,207
6 votes
Accepted

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

If you have an idea what size circles you are looking for, then it would be best to set min_radius and max_radius accordingly. Otherwise, it will return anything circular of any size. Parameters 1 ...
user avatar
  • 507
6 votes
Accepted

K-means for 2D point clustering in python

It can be done very easily with the scikit-learn. Examples are easy to find on their website, i.e. here. In my opinion it is the best way to go. Modified code example from the above link: ...
user avatar
  • 10.5k
6 votes
Accepted

Python - Normalized cross-correlation to measure similarites in 2 images

I guess you can compute for each pixel the correlation coefficient between patches centered on this pixel in the two images of interest. Here is an example where I downloaded the figure attached here ...
user avatar
6 votes
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 ...
user avatar
  • 5,207
6 votes
Accepted

Gaussian Equivalent of Convolving an Image 50 Times with a Box Filter

What you should do is work with the Variance. The Variance of Discrete Random Variables with support of $ \left[ -l, l \right] $ is given by (Notice that since the Expected Value is $ 0 $, the ...
user avatar
  • 40.7k
5 votes
Accepted

How Could One Imitate Photoshop's Vibrance Filter with OpenCV?

The Vibrance in Photoshop is a mask guided saturation. What does it mean? It means we add saturation only to pixels marked by the mask while leaving others untouched. The mask evaluates the original ...
user avatar
  • 40.7k
5 votes

Is it possible to convert from 2D to 3D form?

[EDITED] Here's how it's done. Steps: 1. Isolate the Road Divider Part. Then, using Houghlines, find out the longest lines in Image. Find out the extrema points that cross image boundary. You got ...
user avatar
  • 161
5 votes
Accepted

Feature Detection on a Circular Metal Surface for Character Recognition

Do not struggle forming a database of images to match via descriptors. This would be too computationally cumbersome and would require immerse amount of training. Such a scalable solution doesn't exist ...
user avatar
  • 5,207
5 votes

Isolate the non blurred part of foucsed image

Here is an easier approach, that does not involve sliding-window analysis. Convert your image to grayscale (this is not required, but I will assume that you only have one channel for the sake of ...
user avatar
  • 1,686
5 votes

Noise Removal from an Image Using OpenCV (Comparison to Neat Image)

NeatImage probably uses Wavelets based Noise Reduction. You can look for methods based on that. Today you need methods which are "Edge Aware", namely they smooth yet keep edges in tact. Have ...
user avatar
  • 40.7k
5 votes
Accepted

What Is the Cause for Poor Results with Adaptive Thresholding?

Some guidelines for using Thresholding: Stretch the image to use the whole Dynamic Range (DR). Apply some Denoising (Very very gentle). Median with small radius would be a good idea. Unless you hand ...
user avatar
  • 40.7k
5 votes

What Is the Best Color Space to Work with for Hand Detection: RGB, HSV, or YCrCb?

Intuitively, HSV is the place to easily define Skin Color Hues. Yet there is a broad work on that and even articles about the optimal Color Space for Skin Detection. Yet, you should have a look at ...
user avatar
  • 40.7k
5 votes

Image Gradient: Light to Dark, Dark to Light

The UINT8 type is limited to integer numbers on the range [0, 1, 2, ..., 255]. Hence negative values are clipped into 0. A solution could be wither use other types (Floating Points) or scale and ...
user avatar
  • 40.7k
5 votes

What Is the Difference between Difference of Gaussian, Laplace of Gaussian, and Mexican Hat Wavelet?

The Ricker wavelet, the (isotropic) Marr wavelet, the Mexican hat or the Laplacian of Gaussians belong to be the same concept: continuous admissible wavelets (satisfying certain conditions). ...
user avatar
5 votes
Accepted

Redistributing Color in a RGB Image According to a Gaussian Distribution

After you equalize the histogram you can think of your data as a stream of variables $ {X}_{i} $ where $ X \sim U \left[ 0, 1 \right] $. Now all you need is to transform samples of Uniform Random ...
user avatar
  • 40.7k
5 votes

Recommended Order of Performing Denoising, Deblurring and Super Resolution on an Image

If your image is modeled as an image which is noisy, blurry and heavily decimated the optimal thing to do is estimate the image given that model. The model is well defined in @Laurent Duval's ...
user avatar
  • 40.7k
5 votes
Accepted

How to Remove Double Lines Detected Along the Edges by Edge Detector?

I ran the following code: ...
user avatar
  • 40.7k
4 votes
Accepted

MATLAB rand and C++ rand()

It is a programming question, not a signal processing question - keep that in mind, and next time use the StackOverflow. MATLAB rand function returns uniformly distributed variable on interval $[0,1]$...
user avatar
  • 10.5k
4 votes

Calculating a homography based on detected lines

I will explain two approaches for this: 1) One approach would require a line matching algorithm. After matching the lines, you could simply use the end points of the lines in order to compute ...
user avatar
  • 5,207
4 votes

Is it possible to convert from 2D to 3D form?

This looks like a sort of ray tracing problem. If you know the position and orientation of your camera you should be able to calculate the 3x4 projection matrix and its inverse. This should allow you ...
user avatar
  • 685
4 votes

Finding the Harmonics contained in an Image?

this questions is asked fairly often. If you don't have a grasp of fft in 1d, higher dimensions may be difficult to grasph. But logically it makes a lot of sense once you see it What does frequency ...
user avatar
  • 720

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