dart_image_processing 0.0.5

Flutter Android iOS

A Flutter package in Image Processing. It provides basic features like image blurring and other transformation in bitmap image for now.

example/example.dart

import 'dart:io';
import 'package:dart_image_processing/dart_image_processing.dart';

void main() {
  U8Bitmap object = U8Bitmap();
  print(File('sampleImages/bridge.bmp').readAsBytesSync().toList());
  object.init(
      rawBytes: File('sampleImages/bridge.bmp').readAsBytesSync().toList());
  final imageArray = object.imread();

  // SpatialFiltering filterObj = SpatialFiltering();
  // var filteredImage = filterObj.simpleFilter(kernelSize: 5, image: imageArray);
  IntensityTransformation transform =
      IntensityTransformation(srcImage: imageArray);

  // var negativeImage = transform.negative(bpp: object.bitsPerPixel);
  // var logTransformedImage = transform.logTransformation(constant: 70);
  var gammaTransformedImage =
      transform.gammaTransformation(constant: 50, gammaConstant: .4);
  object.imwrite('outputs/output', gammaTransformedImage);
}
1
likes
100
pub points
37%
popularity

A Flutter package in Image Processing. It provides basic features like image blurring and other transformation in bitmap image for now.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

sharmashashi940@gmail.com

License

GPL 3.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on dart_image_processing