53 template<
typename dtype>
59 Shape outShape(inShape);
60 outShape.
rows += inBoundarySize * 2;
61 outShape.
cols += inBoundarySize * 2;
64 outArray.
put(
Slice(inBoundarySize, inBoundarySize + inShape.
rows),
65 Slice(inBoundarySize, inBoundarySize + inShape.
cols), inImage);
68 for (
uint32 row = 0; row < inBoundarySize; ++row)
72 Slice(inBoundarySize, inBoundarySize + inShape.
cols),
76 outArray.
put(row + inBoundarySize + inShape.
rows,
77 Slice(inBoundarySize, inBoundarySize + inShape.
cols),
81 for (
uint32 col = 0; col < inBoundarySize; ++col)
84 outArray.
put(
Slice(inBoundarySize, inBoundarySize + inShape.
rows),
89 outArray.
put(
Slice(inBoundarySize, inBoundarySize + inShape.
rows),
90 col + inBoundarySize + inShape.
cols,