???????????????C++???????
???????????? ???????[ 2014/10/14 13:30:21 ] ??????????????? C++
?????????????????????????????????????????С???????????????????????????????????????????????????????????????????????????
????(1)??????£??????У????????????????
????(2)?????????????????????????????????0???????????1??????????????
????(3)???????????????????????????4?????8????????????????????????????0???????????????????1?????????????
????(4)?ж??????????????????С???????????????????????????浽????????????????????????2??
????????????c++??????????stl?????????????????ж????????????????????????????£????????У????????????????????????????????о???
1 //????????????????????????????????????????
2 //??????棬???????????????????????????????
3 //20140911
4 #include <iostream>
5 #include "cv.h"
6 #include "highgui.h"
7 #include <stack>
8 #include <list>
9 #include <string>
10
11 using namespace std;
12 int ScanLine_SeedFillingAlgo(IplImage *src??IplImage *dst??int MinCutNumb);//?????????????????????
13 int main()
14 {
15 IplImage *ipl_origin;
16 IplImage *ipl_target;
17 string fname = "D:/????????/Fight1save";
18 cvNamedWindow("????");
19 cvNamedWindow("???????");
20 for (int k=0;k<110;k++)
21 {
22 string filename="";
23 char tmp[20];
24 _itoa_s(k??tmp??20??10);
25 filename+=tmp;
26 filename+=".bmp";
27 filename=fname+filename;
28 ipl_origin=cvLoadImage(filename.c_str()??-1);
29 ipl_target=cvCreateImage(cvGetSize(ipl_origin)??8??1);//cvCloneImage(ipl_origin);
30
31 cvZero(ipl_target);
32 cvShowImage("????"??ipl_origin);
33 int s=clock();
34 ScanLine_SeedFillingAlgo(ipl_origin??ipl_target??125);
35 int e=clock();
36 std::cout<<"
"<<e-s;
37 cvShowImage("???????"??ipl_target);
38 cvWaitKey(1);
39 cvReleaseImage(&ipl_origin);
40 cvReleaseImage(&ipl_target);
41 }
42
43
44 cvWaitKey(0);
45
46 cvDestroyWindow("????");
47 cvDestroyWindow("???????");
48
49 }
50 //MinCutNumb??????????С??MinCutNumb?????
51 //????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11