第一次接触Mathematica,出现了点问题求大神们帮忙看看
mathematica吧
全部回复
仅看楼主
level 2
Saber_k2 楼主
在网上看到了一段关于Mathematica的代码,用Mathematica千图成像,想着学着给女朋友做张图但老是出现问题。
以下是原作者的代码
imagePool = Map[With[{i = Import[#]}, {i, Mean[Flatten[N[i[[1, 1]]], 1]]}] &, FileNames["Pool/*.jpg"]];
closeMatch[c_] := RandomChoice[Take[SortBy[imagePool, Norm[c - #[[2]]] &], 20]][[1]];
Grid[Reverse[Map[closeMatch, Import["MasterImage.tif"][[1, 1]], {2}]], Spacings -> {0, 0}]
2019年03月28日 09点03分 1
level 2
Saber_k2 楼主
2019年03月28日 09点03分 2
这个是我出现的问题,一直修改图片大小也解决不了问题
2019年03月28日 09点03分
1