v0.7 Beta - NVIDIA GTC April 2021 Release
Update to v0.7 Beta
This commit is contained in:
@@ -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__
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user