Visual and infrared photometry of asteroids