An improved binarization algorithm of wood image defect segmentation based on non-uniform background