Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void ReadTheImages ( FILE *  fp,
OGLWND *  oglWnd,
ULONG *  colors,
int  maxNr,
float  minX,
float  maxX,
float  minY,
float  maxY 
)

Definition at line 65 of file mainConceptSupport.cpp.

References ViewReadImageFile().

Referenced by main().

00067 {
00068     int res;
00069     float   ptX, ptY;
00070     char    buf[512];
00071     int     id;
00072     int     count = 0;
00073     while(count<maxNr && fscanf(fp, "%511s %f %f %d\n", buf, &ptX, &ptY, &id) != EOF)
00074     {
00075 
00076         OGLVIEW*    view = ViewReadImageFile(oglWnd, buf);
00077         view->borderCol = colors[id];
00078         float x = minX + ptX * (maxX-minX);
00079         float y = minY + ptY * (maxY-minY);
00080         new ViewerPoint(view, x, y);
00081 
00082 //        if (!(count %100))
00083 //            printf("%f %f\n", x, y);
00084         if (!(count++ % 1000))
00085             printf("%d\n", count);
00086     }
00087     printf("Finished reading %d images\n", count);
00088 }

Here is the call graph for this function:


Generated on Fri Mar 19 09:33:53 2010 for ImpalaSrc by  doxygen 1.5.1