LOS ANGELES — A lawsuit brought by the Brotherhood of Locomotive Engineers and Trainmen against Los Angeles Metrolink to eliminate inward-facing video cameras in the cab has been dismissed by a judge here.

Superior Court Judge Luis Lavin said the inward-facing cameras, which monitor crew activities in the cab, do not violate privacy rights, reports the Associated Press.

Metrolink ordered that inward-facing cameras be installed in commuter-train cabs following a September 2008 catastrophic accident in Chatsworth, Calif., in which a Metrolink train ran a red signal and collided with a freight train, killing 25 and injuring more than 100 on the Metrolink train. The Metrolink engineer, who died in the crash, was found to have been texting repeatedly.

Following that accident, the Federal Railroad Administration banned the use by train crews, nationwide, of most electronic devices.