我已經安裝了openni2.2,nite2.2和kinect SDK 1.6以及Simpleopenni庫進行處理。一切工作正常,除了紅外圖像 - 它根本就不存在。這真的很奇怪,因爲同時我可以清楚地看到深度圖像(並且深度圖像在邏輯上需要紅外熱像儀和投影儀工作才能運行)。所以我認爲驅動程序或軟件存在問題?我想用kinect作爲紅外相機。請幫助,下面我附上我的測試代碼:Kinect infra圖像沒有顯示 - 爲什麼?
/* --------------------------------------------------------------------------
* SimpleOpenNI IR Test
* --------------------------------------------------------------------------
* Processing Wrapper for the OpenNI/Kinect library
* http://code.google.com/p/simple-openni
* --------------------------------------------------------------------------
* prog: Max Rheiner/Interaction Design/zhdk/http://iad.zhdk.ch/
* date: 02/16/2011 (m/d/y)
* ----------------------------------------------------------------------------
*/
import SimpleOpenNI.*;
SimpleOpenNI context;
void setup()
{
context = new SimpleOpenNI(this);
// enable depthMap generation
if(context.enableDepth() == false)
{
println("Can't open the depthMap, maybe the camera is not connected!");
exit();
return;
}
// enable ir generation
if(context.enableIR() == false)
{
println("Can't open the depthMap, maybe the camera is not connected!");
exit();
return;
}
background(200,0,0);
size(context.depthWidth() + context.irWidth() + 10, context.depthHeight());
}
void draw()
{
// update the cam
context.update();
// draw depthImageMap
image(context.depthImage(),0,0);
// draw irImageMap
image(context.irImage(),context.depthWidth() + 10,0);
}
圖像顯示錯誤:http://i.imgur.com/jzdqbXN.jpg?1 – doku