Padding
class Padding(top: Int, bottom: Int, left: Int, right: Int, mode: PaddingMode) : ImagePreprocessorBase
Content copied to clipboard
This image preprocessor defines the Pad operation.
Pad operation pads the given image on all sides according to the provided PaddingMode.
Constructors
Functions
getOutputShape
Link copied to clipboard
Computes output image shape for the provided inputShape. Note that some input dimensions could equal to null
, which means that they are undefined. This is useful for the operations with fixed output size not dependent on the input size.