필터 지우기
필터 지우기

How can I apply an auto-correlation to a Radon Transformation?

조회 수: 2 (최근 30일)
Andrei
Andrei 2013년 10월 10일
댓글: Matt J 2013년 10월 14일
I have the following code
I = imread('img.jpg');
I = rgb2gray(I);
theta = 1:180;
[R,xp] = radon(I,theta);
how can I apply auto-correlation on this radon transformation on an image?
I have the following formula for auto-correlation which I want to apply:
where g(s,0) is the radon transformation. How can I implement this in Matlab? or is there an equivalent function that I can use?
Thank you in advance!

채택된 답변

Matt J
Matt J 2013년 10월 10일
편집: Matt J 2013년 10월 10일
Just apply conv() or xcorr(), if you have it, to each of the columns of R. A simple for-loop will do.

추가 답변 (1개)

Matt J
Matt J 2013년 10월 10일
편집: Matt J 2013년 10월 10일
You can also use Fourier methods, something like
c=ifft( fft(R).*conj(fft(R)) )
c=bsxfun(@rdivide,c,sum(R.^2,1));
  댓글 수: 3
Bjorn Gustavsson
Bjorn Gustavsson 2013년 10월 14일
Just shooting from the hip on this one. In principal the results should be the same, within numerical accuracies- but if you use xcorr it might give you some default weigthing of the different lags.
Matt J
Matt J 2013년 10월 14일
The correlation/convolution, when implemented using ffts, is circulant. You will have to zero pad to make it equivalent to linear convolution.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by