Changeset 94 for foam/trunk/eigentools/src/main.cpp
- Timestamp:
- 07/23/2009 01:04:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
foam/trunk/eigentools/src/main.cpp
r93 r94 40 40 PCA pca(w*h); 41 41 Vector<float> params(100); 42 Image src(" data/dave.png");42 Image src("../data/images/faces/dave/dave.png"); 43 43 44 44 void Recalc() … … 46 46 glob_t g; 47 47 48 glob(" data/spacek-large/*.png",GLOB_PERIOD,NULL,&g);48 glob("../data/images/faces/spacek-large/*.png",GLOB_PERIOD,NULL,&g); 49 49 for (unsigned int n=0; n<g.gl_pathc; n++) 50 50 { … … 68 68 //pca.Save(f); 69 69 70 FILE *f=fopen(" spacek-50x80.pca", "rb");70 FILE *f=fopen("../data/eigenspaces/spacek-50x80.pca", "rb"); 71 71 pca.Load(f); 72 72 fclose(f); … … 236 236 ////////////////////////////////// 237 237 // test the debayering 238 /*Image im(" data/bayer.pgm");238 /*Image im("../data/images/bayer.pgm"); 239 239 im.Crop(300,300,320,240); 240 240 im.RGB2GRAY(); … … 245 245 /* 246 246 vector<Image> imagevec; 247 //imagevec.push_back(Image(" data/audrey.png"));248 imagevec.push_back(Image(" data/dave-1.png"));249 imagevec.push_back(Image(" data/dave-2.png"));250 imagevec.push_back(Image(" data/amber-1.png"));251 imagevec.push_back(Image(" data/amber-2.png"));252 //imagevec.push_back(Image(" data/false.png"));247 //imagevec.push_back(Image("../data/audrey.png")); 248 imagevec.push_back(Image("../data/dave-1.png")); 249 imagevec.push_back(Image("../data/dave-2.png")); 250 imagevec.push_back(Image("../data/amber-1.png")); 251 imagevec.push_back(Image("../data/amber-2.png")); 252 //imagevec.push_back(Image("../data/false.png")); 253 253 254 254 for(unsigned int x=0; x<imagevec.size(); x++)
Note: See TracChangeset
for help on using the changeset viewer.