how can i store a phase and magnitude of a image in single variable using matlab?

1 vue (au cours des 30 derniers jours)
vasuki p
vasuki p le 25 Fév 2014
Réponse apportée : Iain le 25 Fév 2014
imageA = imread('greekchurch','jpg'); figure, imshow(abs(fftshift(fftA)),[24 100000]), colormap gray title('Image A FFT2 Magnitude') figure, imshow(angle(fftshift(fftA)),[-pi pi]), colormap gray title('Image A FFT2 Phase')
The above code displays phase and magnitude of a image in separate file..hoe to store both (phase and magnitdue) in single variable?

Réponses (1)

Iain
Iain le 25 Fév 2014
x = fftshift(fftA)
That gives you the info....
however,
single_var(:,:,1) = abs(x);
single_var(:,:,2) = angle(x);
might be what you explicitly want.

Catégories

En savoir plus sur Blue dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by