% Extract data from image along two point defined 1D line in MATLAB
I=imread(‘P1.jpg’);
J=rgb2gray(I);
imshow(J);
[x,y]=ginput(2); %force matlab show a vertial and horizental line for reading in coordinates
hold on % shown line on figure
plot(x,y);
figure
improfile(J,x,y)
Digitizer: