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);