xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 11.74MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-07-28
  • 語(yǔ)言: 其他
  • 標(biāo)簽: Kinect??sdk2.0??

資源簡(jiǎn)介

利用Kinect sdk2.0和opencv3.0,獲取深度圖實(shí)時(shí)顯示。 詳見博文http://blog.csdn.net/cs2539263027, 內(nèi)含有opencv3.0的屬性文件。

資源截圖

代碼片段和文件信息

#include?
#include?
#include?

using???namespace???std;
using???namespace???cv;
int?main(void)
{
IKinectSensor???*?mySensor?=?nullptr;
GetDefaultKinectSensor(&mySensor);??//獲取感應(yīng)器
mySensor->Open();???????????//打開感應(yīng)器

IDepthframeSource???*?mySource?=?nullptr;???//取得深度數(shù)據(jù)
mySensor->get_DepthframeSource(&mySource);

int?height?=?0?width?=?0;
iframeDescription???*?myDescription?=?nullptr;??//取得深度數(shù)據(jù)的分辨率
mySource->get_frameDescription(&myDescription);
myDescription->get_Height(&height);
myDescription->get_Width(&width);
myDescription->Release();

IDepthframeReader???*?myReader?=?nullptr;
mySource->OpenReader(&myReader);????//打開深度數(shù)據(jù)的Reader

IDepthframe?*?myframe?=?nullptr;
Mat?temp(height?width?CV_16UC1);????//建立圖像矩陣
Mat?img(height?width?CV_8UC1);
while?(1)
{
if?(myReader->AcquireLatestframe(&myframe)?==?S_OK)?//通過(guò)Reader嘗試獲取最新的一幀深度數(shù)據(jù),放入深度幀中并判斷是否成功獲取
{
myframe->CopyframeDataToArray(height?*?width?(UINT16?*)temp.data);?//先把數(shù)據(jù)存入16位的圖像矩陣中
temp.convertTo(img?CV_8UC1?255.0?/?4500);???//再把16位轉(zhuǎn)換為8位
imshow(“TEST“?img);
myframe->Release();
}
if?(waitKey(30)?==?VK_ESCAPE)
break;
}
myReader->Release();????????//釋放不用的變量并且關(guān)閉感應(yīng)器
mySource->Release();
mySensor->Close();
mySensor->Release();

return??0;
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-05-13?09:50??kinectandopencvget_singledepth\
?????目錄???????????0??2017-05-07?20:55??kinectandopencvget_singledepth\Debug\
?????文件???????66048??2017-05-13?09:49??kinectandopencvget_singledepth\Debug\test1.exe
?????文件??????351192??2017-05-13?09:49??kinectandopencvget_singledepth\Debug\test1.ilk
?????文件?????1691648??2017-05-13?09:49??kinectandopencvget_singledepth\Debug\test1.pdb
?????目錄???????????0??2017-05-07?20:55??kinectandopencvget_singledepth\test1\
?????目錄???????????0??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\
?????文件????????2712??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\test1.log
?????目錄???????????0??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\test1.tlog\
?????文件???????72078??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\test1.tlog\CL.read.1.tlog
?????文件????????1286??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\test1.tlog\CL.write.1.tlog
?????文件????????1682??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\test1.tlog\cl.command.1.tlog
?????文件????????4570??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\test1.tlog\link.command.1.tlog
?????文件???????11040??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\test1.tlog\link.read.1.tlog
?????文件????????1254??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\test1.tlog\link.write.1.tlog
?????文件?????????195??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\test1.tlog\test1.lastbuildstate
?????文件?????1666048??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\vc120.idb
?????文件?????1216512??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\vc120.pdb
?????文件??????179863??2017-05-13?09:49??kinectandopencvget_singledepth\test1\Debug\源.obj
?????文件???????10695??2017-03-20?00:03??kinectandopencvget_singledepth\test1\img.png
?????文件????????1779??2017-05-07?20:41??kinectandopencvget_singledepth\test1\opencv300.props
?????文件????????4478??2017-05-07?20:42??kinectandopencvget_singledepth\test1\test1.vcxproj
?????文件?????????944??2017-05-07?20:31??kinectandopencvget_singledepth\test1\test1.vcxproj.filters
?????文件?????????165??2017-05-07?20:28??kinectandopencvget_singledepth\test1\test1.vcxproj.user
?????文件????????1445??2017-05-07?20:54??kinectandopencvget_singledepth\test1\源.cpp
?????文件????40239104??2017-05-13?09:50??kinectandopencvget_singledepth\test1.sdf
?????文件?????????961??2017-05-07?20:28??kinectandopencvget_singledepth\test1.sln
?????文件???????25088??2017-05-13?09:50??kinectandopencvget_singledepth\test1.v12.suo

評(píng)論

共有 條評(píng)論