ImageTensor class
Image tensor plus padding metadata used to undo letterboxing.
Constructors
-
ImageTensor(Float32List tensorNHWC, List<
double> padding, int width, int height) - Creates an image tensor paired with the padding used during resize.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Target width and height passed to the model.
final
-
padding
→ List<
double> -
Padding fractions
[top, bottom, left, right]applied during resize.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tensorNHWC → Float32List
-
NHWC float tensor normalized to the model's expected range.
final
- width → int
-
Target width and height passed to the model.
final
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