How to make .pgm file

168 views
Skip to first unread message

Mark

unread,
Feb 24, 2008, 2:11:09 PM2/24/08
to Face Recognition Research Community
Hi

Myself Yogesh, M.Sc Bioinformatics doing my project on face
recognition. working on feret database, ORL database. and did coding
in matlab also. I want , anyone can help me or provide coding for .PGM
file.

and how can we convert RGB to YIQ or YUV (gray scale image)

I need coding for .pgm file.. and how can we make database of our
dataset for matlab. I am using PCA method........

but my images conversion brightness is not clear..... how can i solve
this problem..

I downloaded opencv library of face recognition. but can anyone also
help me. how can we use it for Coding. i never be used opencv
library.... Everyone say opencv is best for face recognition ..


In my dataset i have 100 people and everyone have their 10 images..
In jpeg resolution not good due to compression , so i want to convert
my images in .pgm format.

Plz be help


Thanks

Julian Wong

unread,
Feb 24, 2008, 11:43:49 PM2/24/08
to Face Recognition Research Community
I remember we can use "imread" to read .PGM file in matlab. If you
want to read PGM file in C environment, I suggest you can use matlab's
interface in VC++.

Second, RBG to Gray, in matlab, the function "rgb2gray" can complete
this work, as to the parameter, you can see the help of function. In
Opencv, there are same
function to realize RGB to GRAY. I don't think OpenCV is best for face
recognition. But the library that provided by OpenCV can be used in
pattern recognition or machine learning, avoid we code new function.
Reply all
Reply to author
Forward
0 new messages