v0.7 Beta - NVIDIA GTC April 2021 Release

Update to v0.7 Beta
This commit is contained in:
jdsouza90
2021-04-12 09:55:56 -07:00
parent 5da097311a
commit 7a07532aa3
31 changed files with 2537 additions and 223 deletions

View File

@@ -100,4 +100,4 @@ void average_poses(NvAR_Quaternion *q, unsigned n);
void set_rotation_from_quaternion(const NvAR_Quaternion *quat, float M[3*3]);
#endif __RENDERING_UTILS__
#endif // __RENDERING_UTILS__

View File

@@ -52,7 +52,7 @@ inline void CVImageSet(cv::Mat *cvIm, int width, int height, int numComps, int c
// Wrap an NvCVImage in a cv::Mat
inline void CVWrapperForNvCVImage(const NvCVImage *nvcvIm, cv::Mat *cvIm) {
static const char cvType[] = { 7, 0, 2, 3, 7, 7, 4, 5, 7, 7, 6 };
CVImageSet(cvIm, nvcvIm->width, nvcvIm->height, nvcvIm->numComponents, cvType[(int)nvcvIm->pixelFormat], nvcvIm->componentBytes, nvcvIm->pixels, nvcvIm->pitch);
CVImageSet(cvIm, nvcvIm->width, nvcvIm->height, nvcvIm->numComponents, cvType[(int)nvcvIm->componentType], nvcvIm->componentBytes, nvcvIm->pixels, nvcvIm->pitch);
}
// Wrap a cv::Mat in an NvCVImage.