dart_lut 0.0.2 copy "dart_lut: ^0.0.2" to clipboard
dart_lut: ^0.0.2 copied to clipboard

outdated

The implementation of image processing via 3D LUT (LookUp Tables), so in familiar words - colour filters. It's written on the pure Dart language so that it can be used with Flutter, CLI and web.

Dart LUT3D #

The library for working with LUTs.

License #

project under MIT license

Changelogs #

full changelog

Task List #

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

0.0.2 #

  • remove .fromFile(File f) factory

Instalation #

add dependency in pubsec.yaml

from pub.dartlang.org:

dependencies:
  dart_lut: ^0.0.2

latest from github.com:

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

Usage #

generic example:

import 'dart:io';

import 'package:image/image.dart';
import 'package:dart_lut/src/lut.dart';

//~~~~~~~

  final lut = LUT.fromString(File('example.cube').readAsStringSync());
  await lut.awaitLoading();

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

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

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

Sample results #

Photo by Caique Silva on Unsplash

image by Caique Silva LUTs: KURO B&W by David Morgan Jones, Arabica 12 and Lenox 340 by rocketstock

Photo by sean Kong on Unsplash

image by sean Kong LUTs: KURO B&W by David Morgan Jones, Arabica 12 and Lenox 340 by rocketstock

9
likes
0
pub points
12%
popularity

Publisher

verified publisherdart.tools

The implementation of image processing via 3D LUT (LookUp Tables), so in familiar words - colour filters. It's written on the pure Dart language so that it can be used with Flutter, CLI and web.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on dart_lut