From: Faris on
I'm working on Face Recognition Project and I have many images with 1728x2592 size..

Now I wanna compress all these images to 30x32 using one loop in MATLAB to allow me to use them as inputs to Neural Network..

So, may anyone help me please ..??

Because I'm beginner in MATLAB..
From: ImageAnalyst on
Faris:
How about using a for loop (over all images) and the function
imresize() to do the resizing?
From: Walter Roberson on
Faris wrote:
> I'm working on Face Recognition Project and I have many images with
> 1728x2592 size..
>
> Now I wanna compress all these images to 30x32 using one loop in MATLAB
> to allow me to use them as inputs to Neural Network..

Are the entire large images of a single face? Or is there a face somewhere in
each image and you need to chop off the non-face data first?

Is it mandatory that what you feed in to the Neural Network be the compressed
face image? I don't know much about NNs, but when I see such a large input and
such a small bit of information to be put into the NN, what I think of is that
what you should probably be doing is creating feature vectors and training on
the feature vectors rather than on the images themselves.

Feature vectors would be measurements of some kind. They might include, for
example, wavelet coefficients, or they might include distances from (say) the
tip of the nose to each of several other key features (tip of the chin, middle
of each eye, whatever.) They might include measurements of (say) the
parameters of the superellipse that you used to fit the shape of the face.
http://en.wikipedia.org/wiki/Superellipse
From: Faris on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <81c0351f-5de9-40da-ba29-df4ee2025f9f(a)o1g2000vbe.googlegroups.com>...
> Faris:
> How about using a for loop (over all images) and the function
> imresize() to do the resizing?

ImageAnalyst:

I've tried that , but it didn't work..
because these images in gray-scale and aren't processed yet..
From: Faris on
Walter Roberson <roberson(a)hushmail.com> wrote in message <hr79m6$55c$1(a)canopus.cc.umanitoba.ca>...
> Faris wrote:
> > I'm working on Face Recognition Project and I have many images with
> > 1728x2592 size..
> >
> > Now I wanna compress all these images to 30x32 using one loop in MATLAB
> > to allow me to use them as inputs to Neural Network..
>
> Are the entire large images of a single face? Or is there a face somewhere in
> each image and you need to chop off the non-face data first?
>
> Is it mandatory that what you feed in to the Neural Network be the compressed
> face image? I don't know much about NNs, but when I see such a large input and
> such a small bit of information to be put into the NN, what I think of is that
> what you should probably be doing is creating feature vectors and training on
> the feature vectors rather than on the images themselves.
>
> Feature vectors would be measurements of some kind. They might include, for
> example, wavelet coefficients, or they might include distances from (say) the
> tip of the nose to each of several other key features (tip of the chin, middle
> of each eye, whatever.) They might include measurements of (say) the
> parameters of the superellipse that you used to fit the shape of the face.
> http://en.wikipedia.org/wiki/Superellipse


Walter:
I really appreciate your help..

these images don't contain the single face, they have to be chopped off..
because ANN needs a compressed image to reduce the number of inputs..
and about the features, they will be extracted later, because what I need now the compressing..
I found many things but I'm confused now..

Best Regards,,