source: foam/trunk/python/disp_pca @ 114

Revision 114, 368 bytes checked in by dave, 10 years ago (diff)

added a load of tools for previewing eigenspaces

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2
3from faces import *
4from math import *
5import os
6import sys
7
8if sys.argv[1] == "-h":
9        print("disp_pca pcafile width height starteigenface endeigenface gain")
10       
11pca = load_pca(sys.argv[1])
12w=int(sys.argv[2])
13h=int(sys.argv[3])
14
15img = smp.toimage( make_eigenfaces_image(w,h,pca,int(sys.argv[4]),int(sys.argv[5]),float(sys.argv[6])))
16img.show() 
Note: See TracBrowser for help on using the repository browser.