ガーボールフィルタ
조회 수: 1 (최근 30일)
이전 댓글 표시
現在ガーボルフィルタによりイメージファイルをまとめて編集したいのですが
最初の文をどのようにすればいいのかわかりません。
imds = imageDatastore('sindou','IncludeSubfolders',true,'LabelSource','foldernames');
これでファイル内にある画像群を呼び出しています
この後どのような処理をすればいいかわかりません
imds = rgb2gray(imds);%このコードを加える
BW = imbinarize(imds); %二値化
stats = regionprops('table',BW,'MajorAxisLength','MinorAxisLength') ;
imshow(imds)
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 イメージのフィルター処理에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!