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

Function MorphologyVarShape

python/mod_cvcuda/operators/OpMorphology.cpp:112–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112ImageBatchVarShape MorphologyVarShape(ImageBatchVarShape &input, NVCVMorphologyType morph_type, Tensor &masks,
113 Tensor &anchors, std::optional<ImageBatchVarShape> workspace,
114 const int32_t iteration, const NVCVBorderType borderMode,
115 std::optional<Stream> pstream)
116{
117 ImageBatchVarShape output = ImageBatchVarShape::Create(input.capacity());
118
119 for (int i = 0; i < input.numImages(); ++i)
120 {
121 nvcv::ImageFormat format = input[i].format();
122 nvcv::Size2D size = input[i].size();
123 auto image = Image::Create(size, format);
124 output.pushBack(image);
125 }
126
127 return MorphologyVarShapeInto(output, input, morph_type, masks, anchors, workspace, iteration, borderMode, pstream);
128}
129
130} // namespace
131

Callers

nothing calls this directly

Calls 6

MorphologyVarShapeIntoFunction · 0.85
capacityMethod · 0.45
numImagesMethod · 0.45
formatMethod · 0.45
sizeMethod · 0.45
pushBackMethod · 0.45

Tested by

no test coverage detected