Synthesis--by--analysis of complex textures