Based on the relative differential box-counting algorithm and the gliding-box algorithm, a novel method for estimating the lacunarity features of grayscale digital images is proposed. Four natural texture images are used to test the performance of the novel lacunarity measure. Comparisons with published methods show that the proposed method can efficiently describe texture images, and provide accurate classification results. Real synthetic aperture radar (SAR) images analyses are found to have different lacunarity values for different regions. We show that good results can be obtained with appropriate lacunarity parameters applied to SAR images segmentation.