中文说明:先产生一个大的随机图像,然后对随机图像中每个像素及其邻域像素和小的纹理图像做对比,找出随机图像当前邻域和小的纹理图像最接近的邻域,然后将小的纹理图像最接近的像素赋值给大的随机图像。这样每处理一个随机图像中的像素,就需要遍历小的纹理图像的所有像素,所以运行时间是很慢的。
English Description:
First generate a random image, then the random image and its neighbor pixels, and each pixel in the texture image compared to current neighborhood and find random images texture image closest to the small neighborhood, and the texture the image closest to the pixel assigned random image. So that each deal with a random pixels in the image, you need to traverse all the pixels of the texture image, so the run time is very slow.