How to store an image with a fixed dimension and colormap?
Show older comments
hello, i want to store the crop faces in a particular fixed dimension of 92x112. i have cropped the faces and its gets save in the .mat file also but, can someone let me know how to store an image with defining the dimensions of the image. if u might know the database available online of about 400images for face recognition has the images in the .pgm format with 92x112 dimension and maybe a grayscale image.the images that has 40 person images with 10 different poses. i hope u r getting which database m talking about... i want to create the same format for my image that i have cropped. your answer is really appreciated as soon as possible. thank you...
Answers (1)
Image Analyst
on 12 Apr 2013
0 votes
We don't know what database you're talking about. You say you've cropped the images to the proper/required size, so why not just use imwrite() to write them out to disk? Use rgb2gray() if you need to convert color images to grayscale.
2 Comments
Tej Parekh
on 13 Apr 2013
Image Analyst
on 13 Apr 2013
pgm is one of the image formats supported by imread() and imwrite(). Type imformats on the command line to see what formats are supported. The help for imwrite() probably has examples for you.
Categories
Find more on Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!