Machine vision on wood surface defects detection algorithm.