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!