Hungary has made the transition from a centrally planned to a market economy , with a per capita income nearly two-thirds that of the EU-25 average .