What can be the input arguments of this user defined function?
1 回表示 (過去 30 日間)
古いコメントを表示
I download this code. But I don't understand what can be its possible input arguments. Can anyone please help me?
function [textureFeatures, filteredImages] = ExtractTextureFeatures(image, maxFreq, numberOfFrequencies, numberOfOrientations, eta, gamma, k)
%Input: image (grayscale image)
% maxFreq (max central frequency of the filter bank)
% numberOfFrequencies (number of frequencies)
% numberOfOrientations (number of orientations)
% eta, gamma (smoothing parameters)
% k (frequency spacing: 2 = octave, sqrt(2) = half octave)
%
%Output: textureFeatures (mean and std of the absolute value of each transformed image)
% filteredImages (transformed images)
bank = sg_createfilterbank(size(image), maxFreq, numberOfFrequencies, numberOfOrientations, 'eta', eta, 'gamma', gamma, 'k', k);
filteredImages_raw = sg_filterwithbank(image,bank);
normalize = 'Y';
if normalize == 'Y'
filteredImages = sg_resp2samplematrix(filteredImages_raw,'normalize',1);
else
filteredImages = sg_resp2samplematrix(filteredImages_raw,'normalize',0);
end
nImages = size(filteredImages);
nImages = nImages(3);
index = 1;
for i = 1:nImages
textureFeatures(index) = mean2(abs(filteredImages(:,:,i)));
index = index + 1;
textureFeatures(index) = std2(abs(filteredImages(:,:,i)));
index = index + 1;
end
end
0 件のコメント
回答 (1 件)
Image Analyst
2014 年 3 月 17 日
It looks like it tells you. If you don't understand, ask the author for further explanation and clarification.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Octave についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!