其实很简单,读其中一行即可(仅限于线状干涉图) I=imread('test2.jpg');I = rgb2gray(I);I = histeq(I);[m,n]=size(I);r = I(fix(m/2),:); %读取图像中间一行plot(r);