How to import an eps file and insert the image to some position of a figure?
13,419
EPS files cannot be read using imread or any other image processing function. What you could do instead (just a suggestion) is
-
Using this code, convert your EPS into PNG first.
Then, you can do your usual processing using this PNG file. You mentioned you can deal with PNG's. So I am not elaborating in it.
I hope that helps (thanks to the author of the File Exchange Author too).
Comments
-
Ziyuan almost 2 years
I am doing a dimensional reduction experiment and want to demonstrate the human faces in the low-dimensional (2D) space according to the result of the dimensional reduction. My MATLAB script works quite well when the faces are in PNG format. But it doesn't work on EPS files, where at least
imread
cannot recognize EPS format. So how can I do this? Thank you.