how do i save magnitude of gabor filter using imwrite function???

2 ビュー (過去 30 日間)
user06
user06 2017 年 9 月 7 日
編集済み: user06 2017 年 9 月 7 日
please help me in this. i want to store magnitude which is obtained by gaborfilter. image has been saved but when i read that image again then only white image has been displayed.
close all; digitDatasetPath = fullfile('H:\code\testSet'); digitData = imageDatastore(digitDatasetPath,... 'IncludeSubfolders',true,'LabelSource','foldernames'); [m, n]=size(digitData.Files) for i=1:n temp=digitData.Files(i); temp=char(temp); I=imread(temp); I=rgb2gray(I); wavelength=4; orientation=90; [mag, phase]=imgaborfilt(I,wavelength,orientation); mag_temp=ifft(mag); imwrite(mag_temp,temp,'jpg') figure,imshow(mag,[]) end

回答 (0 件)

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by