How to create a line profile from a figure within a script

38 visualizaciones (últimos 30 días)
Navjit Singh
Navjit Singh el 2 de Abr. de 2019
Respondida: Agnish Dutta el 11 de Abr. de 2019
Hello,
I would like to incorporate an intensity line profile of a figure that has been created in a script. The figure is simply an fft of an image.
Thanks,
NavPS.jpg

Respuestas (1)

Agnish Dutta
Agnish Dutta el 11 de Abr. de 2019
Consider going through the following MATLAB answers page:
If you want a 3-D line profile along certain defined line segments, load the image into MATLAB and use the "improfile" function to plot the intensity profile.
i1 = imread('<name of image>');
x = [19 427 416 77]; % Specify x- and y-coordinates that define connected line segments
y = [96 462 37 33];
improfile(i1,x,y),grid on; % Display a 3-D plot of the pixel values of these line segments.

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by