52 template<
typename dtype>
58 Shape outShape(inShape);
59 outShape.
rows += inBoundarySize * 2;
60 outShape.
cols += inBoundarySize * 2;
63 outArray.
put(
Slice(inBoundarySize, inBoundarySize + inShape.
rows),
64 Slice(inBoundarySize, inBoundarySize + inShape.
cols), inImage);
67 for (
uint32 row = 0; row < inBoundarySize; ++row)
71 Slice(inBoundarySize, inBoundarySize + inShape.
cols),
75 outArray.
put(row + inBoundarySize + inShape.
rows,
76 Slice(inBoundarySize, inBoundarySize + inShape.
cols),
80 for (
uint32 col = 0; col < inBoundarySize; ++col)
83 outArray.
put(
Slice(inBoundarySize, inBoundarySize + inShape.
rows),
88 outArray.
put(
Slice(inBoundarySize, inBoundarySize + inShape.
rows),
89 col + inBoundarySize + inShape.
cols,