22 while(line[-1] !=
'\n')
29 void mirrorMarkerFile(
const char* nInName,
const char* nOutName,
int nMarkerWidth,
int nMarkerHeight)
31 FILE *finp = fopen(nInName,
"r"),
32 *foutp = fopen(nOutName,
"w");
37 const int strMax = 256, numPix = nMarkerWidth*nMarkerHeight;
38 char str[32][strMax+1];
41 for(rot=0; rot<4; rot++)
43 for(channel=0; channel<3; channel++)
45 for(y=0; y<nMarkerHeight; y++)
50 for(y=0; y<nMarkerHeight; y++)
52 fprintf(foutp,
"%s", str[nMarkerHeight-1-y]);
66 int main(
int argc,
char** argv)
70 printf(
"ERROR: to few parameters\n");
74 const char *inName = argv[1],
TFSIMD_FORCE_INLINE const tfScalar & y() const
void readLine(FILE *fp, char *line)
void mirrorMarkerFile(const char *nInName, const char *nOutName, int nMarkerWidth, int nMarkerHeight)
int main(int argc, char **argv)