2011-06-09 131 views

回答

1

我假設你的意思是爲獲得的輪廓的每個點添加一個常數偏移點。退房的全功能樣機http://opencv.willowgarage.com/documentation/c/imgproc_structural_analysis_and_shape_descriptors.html#cvFindContours

int cvFindContours(CvArr* image, CvMemStorage* storage, CvSeq** first_contour, int header_size=sizeof(CvContour), int mode=CV_RETR_LIST, int method=CV_CHAIN_APPROX_SIMPLE, CvPoint offset=cvPoint(0, 0))

只是通過它的偏移量計算所需的值,這應該做的伎倆。

+0

謝謝!那是我尋找的! – Alex 2011-06-09 14:08:38