Tracking and classification of targets detected by a moving multibeam sonar