Background subtraction and peak recognition for x-ray diffraction images of muscle