Plotting a profile for a line on an image

18 visualizaciones (últimos 30 días)
UCL
UCL el 11 de Feb. de 2013
Comentada: Image Analyst el 24 de En. de 2020
Dear all
I have an x-ray image (in the .tif format) of an object and I would like to draw a line across a part of the image and then plot the profile. I can do this step by step on ImageJ but I was wondering if I could do this in Matlab.
Thank you

Respuesta aceptada

Image Analyst
Image Analyst el 11 de Feb. de 2013
Use improfile(). If you want me to post a demo, let me know.
  5 comentarios
UCL
UCL el 12 de Feb. de 2013
Sorry. I just noticed that the PC im working on doesnt have the image processing toolbox. Is there any other way around this?
I tried doing this:
close all; clear all; clc;
% Define parameters % Path / Location of the Image path='U:\My pictures\'; % Filename of the image filename='Wire_A_segment.tif';
bob=strcat(path,filename)
A=imread(bob);
figure imagesc(A) colormap(gray) colorbar axis image
% Horizontal Profile Plot Hor_Profile_Plot=A(200,:); % e.g. the profile plot of the 200th row
figure plot(Hor_Profile_Plot)
But this is manual .
Image Analyst
Image Analyst el 13 de Feb. de 2013
You can use image() instead of imshow().

Iniciar sesión para comentar.

Más respuestas (1)

UCL
UCL el 11 de Feb. de 2013
Thank you for your reply. yes that would be great. My image is in the .tif format. I want to plot a profile of a horizontal line on the image.
THanx
  3 comentarios
shruti jain
shruti jain el 23 de En. de 2020
i have an image .i want to draw line profile perpendicular to this image .how to draw
it .please help me
Image Analyst
Image Analyst el 24 de En. de 2020
Call improfile() and then plot().

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by