Remove white background while using saveas command

Iam doing face recognition and automatic attendance i used crop command to crop only the faces after detecting. But how can i save the image without white background because in order to get mean image i should get rid of the white background

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by