We propose a tensor description of surface anchoring of liquid crystals (LC
s). The model allows one to consider both the homogeneous and inhomogeneous
parts of LC anchoring and to calculate the cumulative effect of different
treatments as a sum of corresponding tensors. For the planar alignment the
tensor representation is reduced to the complex azimuthal anchoring coeffic
ient, whose amplitude and phase determine. respectively, the strength of az
imuthal anchoring and the azimuthal angle of the easy axis. We predict and
experimentally confirm that two consecutive photoalignment treatments with
beams of perpendicular polarizations can compensate each other and restore
the initial anchoring.