The subject circuit converts a PWM signal to a DC constant-current with good filtering of the PWM signal for such applications as driving laser diodes or LEDs.
This allows the current to be easily controlled by most microprocessor's PWM output.
It uses only one opamp and a transistor for both...