PROBLEM TO BE SOLVED: To realize a method and a unit to detect local phase contradiction on a two-dimensional phase map, a method and a unit to dissolve the local phase contradiction on the two-dimensional phase map, and a magnetic resonance imaging unit equipped with a unit like that. SOLUTION: Phase unwrapping between neighboring data in the order of turns by local data map on a two-dimensional phase map is consecutively carried out (924), phase difference between data at the starting point and the ending point specifies a local data matrix over a prescribed threshold value (926, 928), the two-dimensional phase map is averaged limiting in a prescribed area including data of the local data matrix.