A new DEI algorithm capable of investigating sub-pixel structures