Dart LUT3D

The library for working with LUTs.

License

project under MIT license

Changelogs

full changelog

Task List

  • x Basic impl.
  • x Read .cube files
  • x Read another formats
  • x Store 3DLUT
  • Generate LUTs by expression
  • Verifying LUTs
  • x Applying 3D LUTs
  • Applying 1D LUTs
  • Optimize perfomance
  • Clean up code
  • x Trilinear interpolation
  • More tests
  • Documentation
  • Publish to PUB

0.0.1

  • initial release

Instalation

add dependency in pubsec.yaml

from pub.dartlang.org:

dependencies:
  dart_lut: ^0.0.1

latest from github.com:

dependencies:
  dart_lut:
      git: git://github.com/NiKoTron/dart-lut.git

Usage

generic example:

var lut = LUT.fromFile(File('example.cube'));
await lut.awaitLoading();

Image image = decodeImage(imageFile.readAsBytesSync());

var v = lut.applySync(image.getBytes());

var image2 = Image.fromBytes(image.width, image.height, v);
var outputFile = File('out.jpg')..writeAsBytesSync(encodeJpg(image2));

Libraries

dart_lut