By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,495 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

need a function to create eigenface image

P: n/a
while trying to make an eigenface image from a numpy array of floats i
tried this

from numpy import array
import Image

def makeimage(inputarray,imagename):
inputarray.shape=(-1,)'L', imagesize)

since i am using images of 200X200 size,
i use an array with 40000 elements like
[ -92.35294118 -81.88235294 -67.58823529 ..., -3.47058824
-13.23529412 -9.76470588]
the problem is ,i get an image that is too looks like a face
but is too dark that even different arrays will create images rhat all
look alike!..
is there a way to 'tone it down' so that i can generate an eigenface
that can be displayed better?

Mar 19 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.