System object: vision.ImagePadder
Perform two-dimensional padding or cropping of input
Y = step(H,X)
Y = step(H,X,PAD)
Y = step(H,X) performs two-dimensional padding or cropping of input, X.
Y = step(H,X,PAD) performs two-dimensional padding and/or cropping of input, X, using the input pad value PAD. This applies when you set the Method property to Constant and the PaddingValueSource property to Input port.
Note: H specifies the System object™ on which to run this step method.
The object performs an initialization the first time the step method is executed. This initialization locks nontunable properties and input specifications, such as dimensions, complexity, and data type of the input data. If you change a nontunable property or an input specification, the System object issues an error. To change nontunable properties or inputs, you must first call the release method to unlock the object.