How to plot the intensity profile along the horizontal line from edge to edge of the bar in the image?
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    

0 comentarios
Respuestas (1)
  Andrew Redfearn
    
 el 20 de Feb. de 2019
        Try using the interactive tool 'improfile'
% Import image
I = imread("rods1.png");
% Show image and use improfile to draw a line
figure
imshow(I)
[x,y,val] = improfile;
% Plot intensity values along line
figure
plot(val)
xlabel('Distance along line')
ylabel('Intensity')
Alternativley simply plot the value along a particular row
I = imread("rods1.png");
figure
plot(I(256,:)) % the image is 512 rows so this is halfway down the image
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

