'''Local ternary patterns''' (LTP) are an extension of [[Locallocal binary patterns]] (LBP).<ref>Xiaoyang Tan and Bill Triggs, Enhanced Local Texture Feature Sets for Face Recognition Under Difficult Lighting Conditions, IEEE Transactions on Image Processing, 19(6), pp. 1635-1650, 2010</ref><ref>{{Cite journal |last=Ji |first=Luping |last2=Ren |first2=Yan |last3=Pu |first3=Xiaorong |last4=Liu |first4=Guisong |date=2018-07-01 |title=Median local ternary patterns optimized with rotation-invariant uniform-three mapping for noisy texture classification |url=https://ui.adsabs.harvard.edu/abs/2018PatRe..79..387J |journal=Pattern Recognition |volume=79 |pages=387–401 |doi=10.1016/j.patcog.2018.02.009}}</ref> Unlike LBP, it does not threshold the pixels into 0 and 1, rather it uses a threshold constant to threshold [[Pixel|pixels]] into three values. Considering k as the threshold constant, c as the value of the center pixel, a neighboring pixel p, the result of threshold is:<br />