OpenCVImage class
A pointer to an image encoded by OpenCV.
Since the image is copied into a native buffer, you must keep a pointer to it until we are done with it. This class holds the pointer and allows you to access its data as a Uint8List.
When you are done with this image, be sure to call dispose.
Constructors
-
OpenCVImage({required Pointer<
Uint8> pointer, required int length}) - Holds a pointer to an image encoded by OpenCV.
Properties
- data → Uint8List
-
The data stored in the native buffer, in Dart format.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
pointer
→ Pointer<
Uint8> -
The pointer to the native buffer containing this image.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Frees the resources associated with this image.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited