ResizeShortestOp class
Resizes a tensor so that the shortest edge matches shortestEdge.
Maintains aspect ratio. Optionally limits the longest edge to maxSize.
- Inheritance
-
- Object
- TransformOp
- ResizeShortestOp
Constructors
- ResizeShortestOp({required int shortestEdge, InterpolationMode mode = InterpolationMode.bilinear, int? maxSize})
- Creates a resize operation targeting the shortest edge.
Properties
- capabilities → OperationCapabilities
-
The capabilities of this operation.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxSize → int?
-
Optional maximum size for the longest edge.
final
- mode → InterpolationMode
-
The interpolation mode.
final
- name → String
-
The human-readable name of this operation.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortestEdge → int
-
The target length for the shortest edge.
final
Methods
-
apply(
TensorBuffer input) → TensorBuffer -
Applies this transform to
inputand returns the result.override -
call(
TensorBuffer input) → TensorBuffer -
Alias for apply.
inherited
-
computeOutputShape(
List< int> inputShape) → List<int> -
Computes the output shape for a given
inputShape.override -
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