Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thibauts/parse-cube-lut
Cube LUT (IRIDAS/Adobe) parser
https://github.com/thibauts/parse-cube-lut
Last synced: 2 months ago
JSON representation
Cube LUT (IRIDAS/Adobe) parser
- Host: GitHub
- URL: https://github.com/thibauts/parse-cube-lut
- Owner: thibauts
- License: mit
- Created: 2015-07-05T13:35:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-03T09:20:47.000Z (about 9 years ago)
- Last Synced: 2024-09-19T23:47:50.622Z (3 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 37
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
parse-cube-lut
==============
### Cube LUT (IRIDAS/Adobe) parserParses Cube LUT files as defined in the [Adobe specification](http://wwwimages.adobe.com/content/dam/Adobe/en/products/speedgrade/cc/pdfs/cube-lut-specification-1.0.pdf).
LUT files are useful for color grading, encapsulating complex color-space transforms or emulating film stock for photography and video.
Install
-------```bash
$ npm install parse-cube-lut
```Usage
-----```javascript
var parseCubeLUT = require('parse-cube-lut');
var fs = require('fs');var buf = fs.readFileSync('fuji400h.cube');
var lut = parseCubeLUT(buf);console.log(lut);
/*
{ title: 'Fuji 400H LUT',
type: '3D',
size: 25,
domain: [ [ 0, 0, 0 ], [ 1, 1, 1 ] ],
data: [
[0, 0, 0],
...
]
}
*/
```