如果是倾斜的,你要把ROI框设置为倾斜的。例如:
Phi=HTuple(45).Rad();
gen_measure_rectangle2(Row,Column,Phi,Length1,Length2,pApp->m_szImage.cx,pApp->m_szImage.cy,"nearest_neighbor",&MeasureHandle);其中45为角度。