Combining detail scales of different images
4 ビュー (過去 30 日間)
古いコメントを表示
I have created a series of high pass filters of different standard deviations, and I am looking for a way to combine them to maintain the small scale detail of the low sdevs, and the large scale detail of the high sdevs. Currently I am just using a sum with this code:
clear
clc
a=imread('avg.tif');
a=double(a);
[m,n]=size(a);
sdevs=linspace(.4,40,30);
for i=1:length(sdevs)
filtj=imgaussfilt(a,sdevs(i));
b{i}=a-filtj;
end
S=0;
for k=1:length(sdevs)
S=S+b{k};
end
c=1.1*S+.4*a;
clearvars b
imshow(c,[0 39000])
3 件のコメント
Subhadeep Koley
2019 年 8 月 5 日
From my understanding you only want to boost the high frequency "detail" components without affecting the low frequency "approximation" components right ?
回答 (1 件)
Kavya Vuriti
2019 年 8 月 5 日
Hi,
Instead of using simple sum, you can try using weighted summation. The images obtained from small scale filters can be given higher weights so that the structures in the small-scale filter doesn’t get washed out.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Filtering and Enhancement についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!