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

Function HistogramEqVarShape

python/mod_cvcuda/operators/OpHistogramEq.cpp:76–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76ImageBatchVarShape HistogramEqVarShape(ImageBatchVarShape &input, std::optional<Stream> pstream)
77{
78 ImageBatchVarShape output = ImageBatchVarShape::Create(input.numImages());
79
80 auto format = input.uniqueFormat();
81 if (!format)
82 {
83 throw std::runtime_error("All images in input must have the same format.");
84 }
85
86 for (auto img = input.begin(); img != input.end(); ++img)
87 {
88 auto newimg = Image::Create(img->size(), format);
89 output.pushBack(newimg);
90 }
91
92 return HistogramEqVarShapeInto(output, input, pstream);
93}
94
95} // namespace
96

Callers

nothing calls this directly

Calls 7

HistogramEqVarShapeIntoFunction · 0.85
numImagesMethod · 0.45
uniqueFormatMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
pushBackMethod · 0.45

Tested by

no test coverage detected