Spectrum preserving Sub-pixel Mapping Based on Local Connectivity and Nonlocal Similarity