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 view (last 30 days)
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  

Answers (0)

Categories

Find more on Filter Banks 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!