[問題] 如何區分左右線段已回收
請問在影像中要怎麼區分左右線段?下方程式是區分的嗎?
width = 640;
height = 480;
ang = str2num( get(handles.edit4,'String') );
brk_pt = str2num( get(handles.edit5,'String') );
y_offset = str2num( get(handles.edit6,'String') );
x_offset = str2num( get(handles.edit9,'String') );
y = brk_pt;
x = y/tan(ang/180*pi);
pt1 = [x y];
pt2 = [width-x, y];
pt3 = [width y_offset];
pt4 = [width 0];
pt5 = [0 0];
pt6 = [0 y_offset];
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.127.197.131
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):