MATLAB: Save the detected faces from image in a single folder in jpg format, as well as in a .mat file.

faqImage Processing Toolboximcropimwrite

hello i have a face detection module in which i want to crop the detected faces and then save those faces in a new folder in current directory and also save the same files in the .mat file.. please help. ur help is appreciated. any1 solution is also accepted.

Best Answer

See the FAQ for code examples: http://matlab.wikia.com/wiki/FAQ?&cb=3712#How_can_I_process_a_sequence_of_files.3F This will show you how to process a sequence of files - reading them in and saving them out - it will not show you how to do face detection. You're on your own for that, but it sounds like you already have your "face detection module" so just insert a call to that inside the loop.