Updated by Anna Kogan over 11 years ago
The compilation errors are
<pre>
.../src/cap_openni.cpp:273:59: error: conversion from 'xn::DepthMetaData*' to non-scalar type 'cv::Ptr<xn::DepthMetaData>' requested
</pre>
and
<pre>
.../src/cap_openni.cpp:279:59: error: conversion from 'xn::ImageMetaData*' to non-scalar type 'cv::Ptr<xn::ImageMetaData>' requested
</pre>
The lines are:
<pre>
273: cv::Ptr<xn::DepthMetaData> depthPtr = new xn::DepthMetaData;
279: cv::Ptr<xn::ImageMetaData> imagePtr = new xn::ImageMetaData;
</pre>
I think the problem is caused by an incompatibility with the new Ptr implementation. Unfortunately I don't have any OpenNi device to test a possible solution right now.
<pre>
.../src/cap_openni.cpp:273:59: error: conversion from 'xn::DepthMetaData*' to non-scalar type 'cv::Ptr<xn::DepthMetaData>' requested
</pre>
and
<pre>
.../src/cap_openni.cpp:279:59: error: conversion from 'xn::ImageMetaData*' to non-scalar type 'cv::Ptr<xn::ImageMetaData>' requested
</pre>
The lines are:
<pre>
273: cv::Ptr<xn::DepthMetaData> depthPtr = new xn::DepthMetaData;
279: cv::Ptr<xn::ImageMetaData> imagePtr = new xn::ImageMetaData;
</pre>
I think the problem is caused by an incompatibility with the new Ptr implementation. Unfortunately I don't have any OpenNi device to test a possible solution right now.