how to detect all local minima in radon transform and average distance between them?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 1 de Ag. de 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
el 1 de Ag. de 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)?
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!