Fractal analysis of discrete curves