| 1280 | } |
| 1281 | |
| 1282 | void 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 | |
| 1296 | void cv::ogl::Arrays::resetNormalArray() |
| 1297 | { |
nothing calls this directly
no test coverage detected