Question

I am new to image processing and am trying to learn few concepts by practically implementing certain functions. I heard about creating eigen images of an image, so tried to implement the same, to actually know what they are and what properties they alter.

Thus I obtained the eigen vectors using the eig function in matlab. How can I display these eigen images using the vector? Please forgive me if the question is wrong or rudimentary. Your help is much appreciated.

Était-ce utile?

La solution

Assuming you have several images of size r x c, then taken the steps described on wikipedia, you should now have eigenvectors ev1, ev2 ... of length r x c.

If this is the case, it should be fairly easy to turn these into images again:

myImage1 = reshape(ev1,r,c);

Check whether r and c are in the right order and whether you need to transpose, but this is basically it.

For showing them you may want to look into surf or image.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top