To obtain an adequate unwrapping solution for reliable phase measurement under noisy circumstances, a novel unwrapping algorithm is proposed. This algorithm extracts abundant valid pixels and rejects noise based upon revealing a property of 2π invariant, which is implied between wrapped phase maps with shifted fringe patterns. Distinct from conventional algorithms that use residues or minimum norm solution to attenuate the impacts of noise affected areas, this technique is free from the uncertainties arising from inadequate resources or over-smoothing effects during the unwrapping process. The performance of the proposed algorithm is demonstrated and confirmed through both computer simulations and practical experiments carried out using a fringe projection system. Superior capability in handling noise affected phase images is then achieved.