Skip to content

Commit 214fd71

Browse files
committed
一些小的改动
对佳能相机做改动,效果还可以
1 parent 8c14764 commit 214fd71

File tree

8 files changed

+203
-120
lines changed

8 files changed

+203
-120
lines changed

BatchProcess/BatchProcess.vcxproj.user

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
44
<LocalDebuggerWorkingDirectory>$(SolutionDir)dlls\$(Configuration)</LocalDebuggerWorkingDirectory>
55
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
6-
<LocalDebuggerCommandArguments>&gt;&gt;log.txt</LocalDebuggerCommandArguments>
6+
<LocalDebuggerCommandArguments>
7+
</LocalDebuggerCommandArguments>
78
</PropertyGroup>
89
</Project>

BatchProcess/main.cpp

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#endif
1212

1313
using namespace std;
14-
int sn[] = {13293115, 13293116, 13502663, 13502667, 13502670, 13502673, 13502680, 13502683, 13502686, 13502693};
15-
#define EXPRESSION_NUM 24
14+
//int sn[] = {13293115, 13293116, 13502663, 13502667, 13502670, 13502673, 13502680, 13502683, 13502686, 13502693};
15+
#define EXPRESSION_NUM 2
1616
#define CAMERA_NUM 10
1717

1818
int main(int Argc, char ** Argv)
@@ -27,6 +27,13 @@ int main(int Argc, char ** Argv)
2727
printf("unable to open file %s\n", config_file);
2828
return -1;
2929
}
30+
uchar campair_ptr[8] =
31+
{0, 1,
32+
2, 3,
33+
4, 5,
34+
7, 6};
35+
cv::Mat campair(4, 2, CV_8U);
36+
campair.data = campair_ptr;
3037
while (!feof(fp))
3138
{
3239
char input_path[512], output_path[512];
@@ -50,19 +57,19 @@ int main(int Argc, char ** Argv)
5057
fs<<"isoutput"<<0;
5158
fs<<"camera_calib_name"<<"calib_camera.yml";
5259
fs<<"PyrmNum"<<4;
53-
fs<<"LowestLevelWidth"<<90;
54-
fs<<"LowestLevelHeight"<<120;
60+
fs<<"LowestLevelWidth"<<160;
61+
fs<<"LowestLevelHeight"<<240;
5562
vector<string> imagelist(CAMERA_NUM),masklist(CAMERA_NUM);
5663
for (int j=0; j<CAMERA_NUM; j++)
5764
{
5865
char buffer1[512];
59-
sprintf(buffer1, "%d_%d_0.jpg", i+1, sn[j]);
66+
sprintf(buffer1, "%.4d_Cam%d.jpg", i+1, j);
6067
imagelist[j] = buffer1;
6168
masklist[j] = "mask\\" + imagelist[j];
6269
}
6370
fs<<"imagelist"<<imagelist;
6471
fs<<"masklist"<<masklist;
65-
fs<<"camID"<<"14,93,68,25,70";
72+
fs<<"camID"<<campair;
6673
fs.release();
6774
sprintf(cmd, "reconstruction config.yml");
6875
system(cmd);

0 commit comments

Comments
 (0)