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

Function AdvCvtColor

python/mod_cvcuda/operators/OpAdvCvtColor.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47Tensor AdvCvtColor(Tensor &input, NVCVColorConversionCode code, NVCVColorSpec spec, std::optional<Stream> pstream)
48{
49 nvcv::ImageFormat outputFormat = GetOutputFormat(input.dtype(), code);
50 nvcv::TensorShape outputShape = GetOutputTensorShape(input.shape(), outputFormat, code);
51
52 Tensor output = Tensor::Create(outputShape, input.dtype());
53
54 return AdvCvtColorInto(output, input, code, spec, pstream);
55}
56
57} // namespace
58

Callers

nothing calls this directly

Calls 5

GetOutputFormatFunction · 0.85
GetOutputTensorShapeFunction · 0.85
AdvCvtColorIntoFunction · 0.85
dtypeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected