Skip to content

Commit

Permalink
adds new test data
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneashleyberry committed Apr 1, 2019
1 parent f4b29e0 commit be9b3d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@

I wrote this command-line tool and package 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.

### Example

```sh
go run main.go apply testdata/sample.jpg --lut testdata/filter.png --out testdata/output.jpg
```

| Input | LUT | Output |
| --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| ![an unfiltered image](https://raw.githubusercontent.com/wayneashleyberry/lut/master/testdata/sample.jpg) | ![a lookup table](https://raw.githubusercontent.com/wayneashleyberry/lut/master/testdata/filter.png) | ![the result](https://raw.githubusercontent.com/wayneashleyberry/lut/master/testdata/output.jpg) |

### Usage

```
Expand Down Expand Up @@ -52,3 +42,18 @@ go run main.go
- LUT's stored in the [`.cube` format](https://wwwimages2.adobe.com/content/dam/acom/en/products/speedgrade/cc/pdfs/cube-lut-specification-1.0.pdf)
- LUT's stored in 512x512 `jpeg` or `png` images
- Filter intensity

### Not yet supported

- Interpolation of any kind
- Image LUT's of arbitrary sizes

### Examples

```sh
go run main.go apply testdata/sample.jpg --lut testdata/filter.png --out testdata/output.jpg
```

| Input | LUT | Output |
| --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| ![an unfiltered image](https://raw.githubusercontent.com/wayneashleyberry/lut/master/testdata/sample.jpg) | ![a lookup table](https://raw.githubusercontent.com/wayneashleyberry/lut/master/testdata/filter.png) | ![the result](https://raw.githubusercontent.com/wayneashleyberry/lut/master/testdata/output.jpg) |
Binary file added testdata/output2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit be9b3d8

Please sign in to comment.