Layer Decomposition App - paper
- Drag and drop a PNG/JPG image (or click the image area to pick a file).
- Set the output folder from the bottom bar.
- Build your palette:
Extract from Image: auto-generates palette colors from the uploaded image.Options from Image: auto-fills processing options based on image size.Sort by Brightness: sorts current palette colors from dark to bright.+/-: add or remove palette colors.- Click a color swatch to select it, then press
DeleteorBackspace(or-) to remove that specific color.
- (Optional) Tune advanced options:
NumSuperpixels,LLENeighbors,PixelNeighbors,Lm,Lr,Lu. - Click
PROCESS & SAVEto export all generated layers to the selected output folder.
Removing a color narrows the palette used for segmentation. This changes how pixels are grouped and can simplify output layers (fewer target colors, broader regions).
- Install Go (version 1.26+ recommended) and verify:
go version
- Install Wails CLI:
go install github.com/wailsapp/wails/v2/cmd/wails@latest
- Add Go bin path to your shell
PATH(if needed), then verify:wails version
- From the project root, install frontend dependencies:
wails doctor
- Build the app:
wails build
- (Optional) Build with cleanup and no upx:
wails build -clean -upx=false