How to filter/smooth an image that has circular symmetry?
10 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have a set of 2d data with circular symmetry stored as matrices. I wish to use the symmetry in order to smooth my image by using the other points that are at a comparable distance from the center. This would be in contrast to a filter that uses local neighbouring points to smooth the data, which tends to distort this data.
The image presented here is quite smooth but I have many images with noise.
Thanks, Aurélien
0 件のコメント
採用された回答
Matt J
2021 年 2 月 5 日
編集済み: Matt J
2021 年 2 月 5 日
One approach would be to use radon and iradon,
noisyImage= (1+sqrt((-100:100).^2 + (-100:100).'.^2));
noisyImage=noisyImage.*(noisyImage<=100) + 5*randn(size(noisyImage));
theta=0:0.25:180;
R=mean( radon(noisyImage,theta) ,2);
smoothImage=iradon( repmat(R,1,numel(theta)) ,theta );
imshowpair(noisyImage,smoothImage,'montage')
colormap hot
4 件のコメント
Matt J
2021 年 2 月 5 日
編集済み: Matt J
2021 年 2 月 5 日
For those that don't understand the code, this is my understanding ... then "radon(yourImage,theta)" creates a 2d matrix by taking "slices" of your image that pass through the center of your image at each theta value.
Not slices. Projections.
Basically, what you would see if you took an x-ray image through the object at each angle theta.
Do you not have any problems using theta=0:0.25:180
As you can see from my example output, I do not, but if you attach a.mat file containing your "noisyImage" variable, we can examine it.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!