Noise-Resistant Local Binary Pattern with an Embedded Error-Correction Mechanism