MCPcopy Index your code
hub / github.com/esrrhs/go-mosaic

github.com/esrrhs/go-mosaic @0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.2 ↗ · + Follow
17 symbols 46 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-mosaic

go-mosaic is a tool for making photo mosaics. Photo mosaics, or montage photos, montage collages, are an art technique of image processing. Pictures made in this way are composed of many small photos when viewed close, but when viewed from a distance, each photo Through the fine-tuning of light and shadow and color, the basic pixels of a large picture are called the photo mosaic technique

Features

  • Designed for massive pictures, can support millions of pictures
  • Built-in cache database, pictures are deleted and changed automatically from cache
  • Multi-core construction, loading, calculation and replacement are all concurrent

Use

  • Clone the project, compile, or download release
  • Execute commands and wait for completion
go-mosaic.exe -src input.png -target output.jpg -lib ./test
  • Among them, ./test is the picture folder, which is used to form the elements of the final picture. input.png is the target image, which is used to generate the final large image output.jpg. The more material pictures, the more accurate the generation
  • For more parameters, refer to 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)

Example

image image

Core symbols most depended-on inside this repo

getScaler
called by 4
main.go
make_string
called by 3
main.go
make_key
called by 2
main.go
calc_img
called by 2
main.go
parse_src
called by 1
main.go
load_lib
called by 1
main.go
calc_avg_color
called by 1
main.go
save_to_database
called by 1
main.go

Shape

Function 11
Struct 6

Languages

Go100%

Modules by API surface

main.go17 symbols

For agents

$ claude mcp add go-mosaic \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact