appends rows and columns to an image
PaddedImage = PadImage(Image, PadValue, Left, Right, Up, Down);
2D matrix of type uint8, uint16, uint32, double or boolean
gray value (or logical value in the case of a boolean image) of the padded pixels
number of columns padded before the left most column
number of columns padded after the right mist column
number of rows added above the top row
number of rows added below the bottom row
matrix of the same type as Image
This function pads rows and columns to an image.
Image = rand(3, 3) // generate random image PaddedImage = PadImage(Image, 0, 1, 1, 1, 1) | ![]() | ![]() |