Automatic Myotendinous Junction Identification in Ultrasound Images Based on Junction-Based Template Measurements