Detecting damage in shafts and beams through modal analysis based on digital shape processing techniques