37,719
社区成员
发帖
与我相关
我的任务
分享
if Flag1==1 and Flag2==1 and Flag3==1:
os.system(r'D:\DBS\DBS1.exe a[0] threshold')
else:
print "no"
int main(int argc, char *argv[])
{
int threshold = 0;
unsigned char * arr0 = 0;
int row0 = 0;
int col0 = 0;
unsigned char * arr1 = 0;
/*int row1 = 0;*/
int col1 = 0;
unsigned char * arr2 = 0;
/*int row2 = 0;*/
int col2 = 0;
unsigned char * arr3 = 0;
int row3 = 0;
int col3 = 0;
FILE * input = 0;
int inputLen = 0;
FILE * output = 0;
if( argc != 4 )
{
fprintf(stderr, "Usage:\t %s [input_file] [output_raw_name] [threshold]\n", argv[0]);
return 7;
}
if (!(input=fopen(argv[1],"rb")))
{
printf("Cannot open file %s.\n", argv[1]);
exit(7);
}
fseek(input, 0, SEEK_END);
inputLen = ftell(input);
rewind(input);
arr0 = CAST(unsigned char *, malloc(inputLen));
fread(arr0, sizeof(unsigned char), inputLen, input);
fclose(input);
arr1 = CAST(unsigned char *, malloc(162*640));