pub async fn copy_constant_border(
input: &DeviceBuffer2D<u8>,
output: &mut DeviceBuffer2D<u8>,
constant_border: &ConstantBorder,
stream: &Stream,
) -> Result<(), Error>Expand description
Copy an image with a constant border. This function expects a reference to a device image for input, and a mutable reference to a device image to place the output in.
This function assumes the following about the input and output images:
- Images are in RGB format.
- Images are in standard memory order, i.e. HWC.
§Stream ordered semantics
This function uses stream ordered semantics. It can only be guaranteed to complete sequentially relative to operations scheduled on the same stream or the default stream.
§Arguments
input- The on-device input image.output- The on-device output image.constant_border- The constant border parameters to apply.stream- Stream to use.