How to save magnitude and phase from FFT of 10 images in two folder (one for magnitude and another for phase)
조회 수: 1 (최근 30일)
이전 댓글 표시
Storing FFT results in two folder (the first folder for magnitude (100 magnitude images) and another for phase (100 phase images)
my code: srcFiles = dir('C:\Users\Documents\MATLAB\Framesali2\*.png'); % the folder in which % ur images exists for i = 1 : length(srcFiles) filename = strcat('C:\Users\Documents\MATLAB\Framesali2\',srcFiles(i).name); I = imread(filename); %###########################################################3 Gray =rgb2gray(I); % convert all images to gray fft = fft2(Gray); % %Base =rgb2gray(Base1);
figure, imshow(abs(fftshift(fft)),[24 100000]), colormap gray title('FFT Magnitude') figure, imshow(angle(fftshift(fftA)),[-pi pi]), colormap gray title('FFT Phase') end
I'd like to save magnitude images and phase images in 2 separated folders.
Regards
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!