相片马赛克 (Photographic mosaic)
go-mosaic是一个制作相片马赛克的工具。相片馬賽克,或稱蒙太奇照片、蒙太奇拼貼,是一種影像處理的藝術技巧,利用這個方式做出來的圖片,近看時是由許多張小照片合在一起的,但遠看時,每張照片透過光影和色彩的微調,組成了一張大圖的基本像素,就叫做相片馬賽克技巧
go-mosaic.exe -src input.png -target output.jpg -lib ./test
Usage of D:\project\go-mosaic\test.exe:
-checkhash
check database pic hash (default true)
-database string
cache datbase (default "./database.bin")
-lib string
image lib path
-libname string
image lib name in database (default "default")
-maxsize int
pic max size in GB (default 4)
-pixelsize int
pic scale size per one pixel (default 64)
-scalealg string
pic scale function NearestNeighbor/ApproxBiLinear/BiLinear/CatmullRom (default "CatmullRom")
-src string
src image path
-srcsize int
src image auto scale pixel size (default 128)
-target string
target image path
-worker int
worker thread num (default 12)