Generation of texture images using adaptive windows