Provided are a cooker and a method of controlling the cooker. An image of food scanned by an image sensor is corrected, and thus, can be free from distortion due to vapor generated while cooking the food in a cooking chamber. Accordingly, a user can more accurately recognize a cooking state of the food.