 Local ternary patterns

Local ternary patterns (LTP) are an extension of Local binary patterns (LBP).Unlike LBP, it does not threshold the pixels into 0 and 1, rather it uses a threshold constant to threshold pixels into three values.