TensorImageUtils class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
imageProviderToImage(
ImageProvider< Object> image) → Future<Image> - Convert ImageProvider to ui.Image e.g. TensorImageUtils.imageProviderToImage(const AssetImage('assets/images/image.png'))
-
imageToFloat32Tensor(
Image image, {int x = 0, int y = 0, int? width, int? height, MemoryFormat memoryFormat = MemoryFormat.contiguous}) → Future< Tensor> - Convert an Image to a Tensor
-
resizeImage(
Image image, int targetWidth, int targetHeight, {int x = 0, int y = 0}) → Image -
Resizes an ui.Image to a given
targetWidth
andtargetHeight