1. A method for detecting the quality of debarking at the surface of a wooden log, comprising the steps of: i) measuring a three-dimensional profile of at least a portion of the log surface to generate a corresponding profile image indicating the relative positions of points on said log surface in three-dimensional space; ii) processing said profile image to detect edges therein by comparing said relative positions with one another and generate data indicative of the texture of said log surface, said texture data comprising the positions of said detected edges within said profile image; and iii) analyzing said texture data to generate resulting data on parameters related to the debarking quality of said log surface, said parameters including fiber loss and residual bark.