Ignore:
Timestamp:
07/23/2009 01:04:04 PM (10 years ago)
Author:
dave
Message:

added face classifier application, not working yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • foam/trunk/eigentools/src/main.cpp

    r93 r94  
    4040PCA pca(w*h); 
    4141Vector<float> params(100); 
    42 Image src("data/dave.png"); 
     42Image src("../data/images/faces/dave/dave.png"); 
    4343 
    4444void Recalc() 
     
    4646        glob_t g; 
    4747         
    48         glob("data/spacek-large/*.png",GLOB_PERIOD,NULL,&g); 
     48        glob("../data/images/faces/spacek-large/*.png",GLOB_PERIOD,NULL,&g); 
    4949        for (unsigned int n=0; n<g.gl_pathc; n++) 
    5050        { 
     
    6868        //pca.Save(f); 
    6969         
    70         FILE *f=fopen("spacek-50x80.pca", "rb"); 
     70        FILE *f=fopen("../data/eigenspaces/spacek-50x80.pca", "rb"); 
    7171        pca.Load(f); 
    7272        fclose(f); 
     
    236236        ////////////////////////////////// 
    237237        // test the debayering 
    238         /*Image im("data/bayer.pgm"); 
     238        /*Image im("../data/images/bayer.pgm"); 
    239239        im.Crop(300,300,320,240); 
    240240        im.RGB2GRAY(); 
     
    245245        /* 
    246246        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")); 
    253253 
    254254        for(unsigned int x=0; x<imagevec.size(); x++) 
Note: See TracChangeset for help on using the changeset viewer.