In imaging for labeling only the fluid of a specific region, a high-quality image is acquired in a short time. In order to achieve this, the optimal number of segments N is determined from the flow velocity V and the size φ of a specific region to be labeled when performing imaging by labeling only the fluid of the specific region using a two-dimensional selective excitation pulse as a pre-pulse. In addition, the k-space ordering is determined according to the arrival timing of the fluid to the imaging region. In addition, the optimal flip angle (FA) is determined depending on the type of pre-pulse.