ガボール フィルター
    5 views (last 30 days)
  
       Show older comments
    
を見ながらフィルターを作ろうと思ったのですが
Wavelength
Orientation
の設定方法が分かりません.
水面に映る波を強調したいです.
0 Comments
Accepted Answer
  Hernia Baby
      
 on 20 Jul 2022
        まず画像を読み込みます
I = imread('Wave_sq.png');
imshow(I)
波長 Wavelength と 強調する角度 Orientation を決めます
    Wavelengthは小さいほど粒度が細かくなりますし、粗いと大きくなります
    OrientationはDegreeみたいですね
wavelength = 35;
orientation = [0 45 90 135];
g = gabor(wavelength,orientation);
後はもうフィルタ掛けてモンタージュ表示するだけです
outMag = imgaborfilt(I,g);
outSize = size(outMag);
outMag = reshape(outMag,[outSize(1:2),1,outSize(3)]);
figure, montage(outMag,'DisplayRange',[]);
title('Montage of gabor magnitude output images.');
上記のようにそれぞれの角度で強調させることができました
それで輪郭をとる場合は、波長を最小から最大まで配列で設定し、角度も0~180度まで配列設定が必要です
0 Comments
More Answers (0)
See Also
Categories
				Find more on イメージ変換 in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


