Velocity measurement with active illumination