Digital processing of fibre diffraction patterns