...x3f(%f,%f,%f); \n",x,y,z); fclose( stream ); 3.自己写的绘制轮廓线,比较灵活一些 1.2.3.4.5.6. inline WW_RETURN drawContours(IplImage *dst) { CvSeqReader reader; int i; CvPoint pt,pt_pre;