LUT contains command-line tools and Go packages for applying colour adjustments to images using lookup tables. I gave a talk on the subject at London Gophers.
This command-line tool and packages were written to inspect LUT's locally, and provide basic server-side rendering. This is most likely a bad idea, and you should probably be doing colour manipulations in OpenGL or a similar graphics programming framework.
There are tons of free LUT's available online, luthouse.com is a great example.
Usage:
lut [flags]
lut [command]
Available Commands:
apply Adjust image colour according to a LUT
convert Convert a LUT file to a different format
help Help about any command
version Print version information
Flags:
-h, --help help for lut
Use "lut [command] --help" for more information about a command.
This project uses Go modules, so make sure to clone it outside of your $GOPATH
. You will need at least Go 1.12.
git clone [email protected]:wayneashleyberry/lut.git
cd lut
go mod download
go run main.go
- 3D LUT's stored in the
.cube
format (recommended) - Squar image LUT's stored in 512x512
jpeg
orpng
images - Filter intensity
- Trilinear interpolation
- Image LUT's of arbitrary sizes
- 2d
.cube
files