1 | initial version |
You can take a look at copyMakeBorder. This is probably what you want.
void copyMakeBorder(InputArray src, OutputArray dst, int top, int bottom, int left, int right, int borderType, const Scalar& value=Scalar() )
You just want to increase the number of rows right! So just keep the top and bottom as 0. The number of rows you want to add either in left or right where you want specify them. Since you want those values to be empty, use borderType as BORDER_CONSTANT and fill the value with scalar::all(0). That's it
For assistance, on how to use this api take a look at the tutorial here.
2 | No.2 Revision |
You can take a look at copyMakeBorder. This is probably what you want.
void copyMakeBorder(InputArray src, OutputArray dst, int top, int bottom, int left, int right, int borderType, const Scalar& value=Scalar() )
You just want to increase the number of rows right! So just keep the top left and bottom right as 0. The number of rows you want to add either in left top or right bottom where you want specify them. Since you want those values to be empty, use borderType as BORDER_CONSTANT and fill the value with scalar::all(0). That's it
For assistance, on how to use this api take a look at the tutorial here.