source: libs/vision/python/disp_pca @ 150

Revision 150, 376 bytes checked in by dave, 10 years ago (diff)

more moving

  • 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        exit(0)
11
12pca = load_pca(sys.argv[1])
13w=int(sys.argv[2])
14h=int(sys.argv[3])
15
16img = smp.toimage( make_eigenfaces_image(w,h,pca,int(sys.argv[4]),int(sys.argv[5]),float(sys.argv[6])))
17img.show() 
Note: See TracBrowser for help on using the repository browser.