MCPcopy Create free account
hub / github.com/creatale/node-dv / setNormalArray

Method setNormalArray

deps/opencv/modules/core/src/opengl_interop.cpp:1282–1294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1280}
1281
1282void cv::ogl::Arrays::setNormalArray(InputArray normal)
1283{
1284 const int cn = normal.channels();
1285 const int depth = normal.depth();
1286
1287 CV_Assert( cn == 3 );
1288 CV_Assert( depth == CV_8S || depth == CV_16S || depth == CV_32S || depth == CV_32F || depth == CV_64F );
1289
1290 if (normal.kind() == _InputArray::OPENGL_BUFFER)
1291 normal_ = normal.getOGlBuffer();
1292 else
1293 normal_.copyFrom(normal);
1294}
1295
1296void cv::ogl::Arrays::resetNormalArray()
1297{

Callers

nothing calls this directly

Calls 5

kindMethod · 0.80
getOGlBufferMethod · 0.80
channelsMethod · 0.45
depthMethod · 0.45
copyFromMethod · 0.45

Tested by

no test coverage detected