Two-dimensional local discriminant basis algorithm for texture classification