An Improved Algorithm of Veneer Knot Image Recognition Based on Mathematical Morphology