ImageProcess class

Inheritance

Constructors

ImageProcess.create({ImageFormat sourceFormat = ImageFormat.RGBA, ImageFormat destFormat = ImageFormat.RGBA, List<double>? means, List<double>? normals, Filter filterType = Filter.BILINEAR, Wrap wrap = Wrap.CLAMP_TO_EDGE, Tensor? dstTendor})
factory
ImageProcess.fromConfig(ImageProcessConfig config, {Tensor? dstTendor})
factory
ImageProcess.fromPointer(Pointer<mnn_cv_image_process_t> ptr, {bool attach = true, int? externalSize})

Properties

attach bool
finalinherited
finalizer NativeFinalizer
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setterinherited
matrix Matrix
getter/setter pair
props List<Object?>
no setteroverride
ptr Pointer<Void>
Gets the pointer to the underlying C++ object
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convert(Uint8List src, int iw, int ih, int stride, Tensor dst) Tensor
convertImage(Image src, Tensor dst) Tensor
dispose() → void
inherited
draw(Image img, int width, int height, int channel, List<int> regions, List<int> colors) → void
@brief draw color to regions of img.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reattach(Pointer<Void> ptr) → void
inherited
release() → void
Releases the underlying C++ object Subclasses must implement specific release logic
override
setDraw() → void
setPadding(int value) → void
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createImageTensor(HalideType type, int width, int height, int bytesPerChannel, {Image? image}) Tensor
@brief create tensor with given data.