Nondestructive Testing Method Based on the Spin Polarization Effect Template