Optimum estimation of local fractal dimension for the segmentation of natural images