歡迎您光臨本站 註冊首頁

go-mosaic 0.1 釋出,相片馬賽剋制作工具

←手機掃碼閱讀     admin @ 2020-05-30 , reply:0

go-mosaic

go-mosaic是一個製作相片馬賽克的工具。

特性

  • 專為海量圖片設計,可支援數萬張圖片
  • 內建快取資料庫,圖片刪除、更改自動從快取剔除
  • 多核構建,載入、計算、替換均為併發

使用

  • 克隆專案,編譯,或者下載release
  • 執行命令,等待完成

 go-mosaic.exe -src input.png -target output.jpg -lib ./test
 
  • 其中./test為圖片資料夾,用來組成最終圖片的元素。input.png為目標圖片,用來生成最終的大圖output.jpg。素材圖片越多,生成越精確
  • 更多引數,參考help

 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)
 

示例

image image


[admin ]

來源:OsChina
連結:https://www.oschina.net/news/116039/go-mosaic-0-1-released
go-mosaic 0.1 釋出,相片馬賽剋制作工具已經有130次圍觀

http://coctec.com/news/all/show-post-236240.html