Resizer
- class Resizer(option: ResizerOption)
Represents a Resizer instance used for image processing operations including cropping, resizing, padding, and implementation with multiple interpolation modes.
Initializes a Resizer object.
- Parameters:
option (ResizerOption) -- The configuration options for the image processing.
ResizerOptionis a wrapper of the C++ class ImageOps::Resizer::Option.
Methods
Initializes a Resizer object.
Retrieves the total number of input tensors.
Retrieves the input tensor with the given index.
Retrieves the total number of output tensors.
Retrieves the output tensor with the given index.
Retrieves the stream used for image processing.
Processing images with the given configurations.
Sets the stream for image processing.
Waits for the completion of all preceding tasks in the stream that is related to the image processing.