1. A magnetic resonance imaging apparatus comprising: a slice setting section which sets an imaging slice to be imaged; and an imaging section which performs imaging of the imaging slice set by the slice setting section, wherein the slice setting section includes: a slice setting image acquisition section which acquires an imaging slice setting image for calculating a recommended imaging slice according to an examination part and an examination section; a recommended slice calculation section which calculates a recommended imaging slice on the imaging slice setting image whenever the slice setting image acquisition section acquires the imaging slice setting image; a body movement information acquisition section which acquires body movement information for every imaging; and a change determination section which determines whether or not there is a change in a position of a subject on the basis of the acquired body movement information, and the slice setting image acquisition section acquires the imaging slice setting image again when the change determination section determines that there is a change, wherein the recommended slice calculation section binarizes the imaging slice setting image and calculates the recommended imaging slice by performing template matching between the binarized imaging slice setting image and a template which is a template registered in advance according to the examination part and the examination section and which specifies the relationship between the examination section and an anatomical characteristic part on the imaging slice setting image.