0
我在图像上画了一条线,我希望将线平均分割/划分5次并获得5个点坐标,在脚本中我有坐标线但我不知道如何继续。我会感谢任何帮助。谢谢split equal imline - Matlab
clc;
clear all;
figure, imshow('pout.tif');
h = imline;
lineEndPoints = wait(h);
x1 = round(lineEndPoints(1,1),2);
y1 = round(lineEndPoints(1,2),2);
x2 = round(lineEndPoints(2,1),2);
y2 = round(lineEndPoints(2,2),2);