matlab 纹理合成我要分享

MATLAB texture synthesis

c matlab 合成 纹理

关注次数: 233

下载次数: 0

文件大小: 13.49 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:先产生一个大的随机图像,然后对随机图像中每个像素及其邻域像素和小的纹理图像做对比,找出随机图像当前邻域和小的纹理图像最接近的邻域,然后将小的纹理图像最接近的像素赋值给大的随机图像。这样每处理一个随机图像中的像素,就需要遍历小的纹理图像的所有像素,所以运行时间是很慢的。


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.


代码预览