| 61 | } |
| 62 | |
| 63 | ImageBatchVarShape LaplacianVarShapeInto(ImageBatchVarShape &output, ImageBatchVarShape &input, Tensor &ksize, |
| 64 | Tensor &scale, NVCVBorderType border, std::optional<Stream> pstream) |
| 65 | { |
| 66 | if (!pstream) |
| 67 | { |
| 68 | pstream = Stream::Current(); |
| 69 | } |
| 70 | |
| 71 | auto laplacian = CreateOperator<cvcuda::Laplacian>(); |
| 72 | |
| 73 | ResourceGuard guard(*pstream); |
| 74 | guard.add(LockMode::LOCK_MODE_READ, {input, ksize, scale}); |
| 75 | guard.add(LockMode::LOCK_MODE_WRITE, {output}); |
| 76 | guard.add(LockMode::LOCK_MODE_NONE, {*laplacian}); |
| 77 | |
| 78 | laplacian->submit(pstream->cudaHandle(), input, output, ksize, scale, border); |
| 79 | |
| 80 | return output; |
| 81 | } |
| 82 | |
| 83 | ImageBatchVarShape LaplacianVarShape(ImageBatchVarShape &input, Tensor &ksize, Tensor &scale, NVCVBorderType border, |
| 84 | std::optional<Stream> pstream) |
no test coverage detected