MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / HistogramEqVarShapeInto

Function HistogramEqVarShapeInto

python/mod_cvcuda/operators/OpHistogramEq.cpp:56–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56ImageBatchVarShape HistogramEqVarShapeInto(ImageBatchVarShape &output, ImageBatchVarShape &input,
57 std::optional<Stream> pstream)
58{
59 if (!pstream)
60 {
61 pstream = Stream::Current();
62 }
63
64 auto op = CreateOperator<cvcuda::HistogramEq>((uint32_t)input.numImages());
65
66 ResourceGuard guard(*pstream);
67 guard.add(LockMode::LOCK_MODE_READ, {input});
68 guard.add(LockMode::LOCK_MODE_WRITE, {output});
69 guard.add(LockMode::LOCK_MODE_READWRITE, {*op});
70
71 op->submit(pstream->cudaHandle(), input, output);
72
73 return output;
74}
75
76ImageBatchVarShape HistogramEqVarShape(ImageBatchVarShape &input, std::optional<Stream> pstream)
77{

Callers 1

HistogramEqVarShapeFunction · 0.85

Calls 4

cudaHandleMethod · 0.80
numImagesMethod · 0.45
addMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected