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

Method setVertexArray

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

Source from the content-addressed store, hash-verified

1241}
1242
1243void cv::ogl::Arrays::setVertexArray(InputArray vertex)
1244{
1245 const int cn = vertex.channels();
1246 const int depth = vertex.depth();
1247
1248 CV_Assert( cn == 2 || cn == 3 || cn == 4 );
1249 CV_Assert( depth == CV_16S || depth == CV_32S || depth == CV_32F || depth == CV_64F );
1250
1251 if (vertex.kind() == _InputArray::OPENGL_BUFFER)
1252 vertex_ = vertex.getOGlBuffer();
1253 else
1254 vertex_.copyFrom(vertex);
1255
1256 size_ = vertex_.size().area();
1257}
1258
1259void cv::ogl::Arrays::resetVertexArray()
1260{

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected