could you please help me how to use the 38 filters in filter bank RFS to filter ten images one by one? i want to transform the filters and image into Furier domain then convolute them. then transform the filtered 380 images back to spacial domain. I
조회 수: 1 (최근 30일)
이전 댓글 표시
could you please help me how to use the 38 filters in filter bank RFS to filter ten images one by one? i want to transform the filters and image into Furier domain then convolute them. then transform the filtered 380 images back to spacial domain. I wrote a new function filterresponse to get the filtered image result. i used addpath to my new function. But i cant call RFS filter bank into my new function.
thank you very much for help!!!
function [ filterresponse ] = filter_response( )
addpath('../Filter Bank');
filters = makeRFSfilters;
filterresponse = zeros(size(imgray{i},1),size(imgray{i},2),size(filters,3));
for k=1:size(filters,3) s1=size(filters,1); s2=size(filters,2); pad1=floor(s1/2); pad2=floor(s2/2); imgray{i}=padarray(imgray{i},[pad1,pad2]); img_ft{i}=fft2(imgray{i}); filters_ft{k}=fft2(filters,size(imgray{i},1),size(imgray{i},2)); filterresponse(:,:,k)=img_ft{i}.*filter_ft{k}; filterresponse(:,:,k)=iff2(img_res(i)); figure; filterresponse(:,:,k)=img_res2(1+2*pad1,1+2*pad2:end)
end;
% imshow(grayim); %figure, imshow(filterresponse(:,:,k));
end
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Banks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!