Ultrasound imaging has been widely used to investigate the architecture properties of skeletal muscle, including the measurement of the pennation angle. In this study, we propose a beamlet-based algorithm to detect the straight lineshaped patterns of aponeurosis, fascicle or bone, and then to quantify the pennation angle in ultrasound images. The results demonstrate that the proposed algorithm can well detect the pennatoin angles in thirty ultrasound images with the correlation coefficient of 0.945, the standard root mean square error of 0.682 • , and the relative root mean square error of 3.498%. The results suggest that this beamlet-based algorithm provides an alternative approach for the orientation estimation in musculoskeletal ultrasound images.