Azzera filtri
Azzera filtri

how to detect all local minima in radon transform and average distance between them?

2 visualizzazioni (ultimi 30 giorni)
I want to detect motion blur parameters in image using radon transform.
im= imread ('blurredimage.tif');
Rd=radon(log(abs(fft2(diff(im)))));
mx=max(Rd(:));
(Row column)=find(mx==Rd)
Here column gives blur angle theta i.e. blur direction.
I got stuck in computing blur length,
Blur length is computed by finding avg dist of local minima in radon transform.
  2 Commenti
Walter Roberson
Walter Roberson il 1 Ago 2015
Is the local minima to be considered along the rows or along the columns? Is one blur length to be calculated overall, or one per row (or per column) ? Could you surf(Rd) and attach it here for us to look at?
Image Analyst
Image Analyst il 1 Ago 2015
Not sure I follow the theory. But anyway, I assum "avg dist" means average distance. But average distance between the location of the local minima(s), and what other point(s)?
By the way, the correct syntax requires brackets not parentheses:
[rows, columns] = find(mx == Rd)
And radon requires 2 input arguments, the image and the angle or array of angles. Why did you not put in any angle(s)?

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by