go-mosaic 0.1 发布,相片马赛克制作工具

栏目: 软件资讯 · 发布时间: 6年前

内容简介:go-mosaic go-mosaic是一个制作相片马赛克的工具。 特性 专为海量图片设计,可支持数万张图片 内建缓存数据库,图片删除、更改自动从缓存剔除 多核构建,加载、计算、替换均为并发 使用 克隆项目,编译,或者下载...

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)

示例

go-mosaic 0.1 发布,相片马赛克制作工具 go-mosaic 0.1 发布,相片马赛克制作工具


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

Approximation Algorithms

Approximation Algorithms

Vijay V. Vazirani / Springer / 2001-07-02 / USD 54.95

'This book covers the dominant theoretical approaches to the approximate solution of hard combinatorial optimization and enumeration problems. It contains elegant combinatorial theory, useful and inte......一起来看看 《Approximation Algorithms》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具