Ask Your Question

pulungpurwo's profile - activity

2020-04-27 22:38:49 -0600 received badge  Notable Question (source)
2018-06-06 11:00:37 -0600 received badge  Popular Question (source)
2017-09-18 10:14:52 -0600 received badge  Student (source)
2014-11-06 08:54:32 -0600 asked a question OpenNI2.dll is missing from your computer

I have source code like this:

#include "stdafx.h"
#include "opencv2\highgui\highgui.hpp"
#include "cv.h"
#include "OpenNI.h"
#include <stdio.h>
#include <iostream>


using namespace std;
using namespace cv;
using namespace openni;

int main()
{
 openni::Device device;
 openni::VideoStream depth, color,ir;

 openni::OpenNI::initialize();
 device.open(openni::ANY_DEVICE);

 ir.create(device,openni::SENSOR_IR);
 depth.create(device, openni::SENSOR_DEPTH);
 color.create(device, openni::SENSOR_COLOR);

 openni::VideoMode vm=depth.getVideoMode();

 int cols,rows;
 cols=vm.getResolutionX();
 rows=vm.getResolutionY();

 VideoStream* streams[]={&depth,&color,&ir};

 openni::VideoFrameRef frame;
 depth.readFrame(&frame);
 depth.start();
 color.readFrame(&frame);
 color.start();
 ir.readFrame(&frame); 
 ir.start();

 depth.stop();
 color.stop();
 ir.stop();

 openni::DepthPixel* dData = (openni::DepthPixel*)frame.getData();
 cv::Mat depthImage(rows, cols, CV_16UC1, dData);

 openni::OpenNI::shutdown();
  }

when i was compilling there's openNI2.dll is missing from your computer i haved configured propertyies directory in visual studio 2012 image description

i use openNI2, NiTE2, opencv249, visual studio 2012 c++

please help me to fix this problem,, thanks :)

2014-11-03 00:18:54 -0600 asked a question Stereo Vision Asus Xtion Pro Live

how to access the stereo camera using OpenCV and Visual Studio C ++. I have installed openNI and PrimeSense. whether there is an source code to access live video using a stereo camera and OpenCV with visual studio C++ ? please help me:) to solute this problem.. thanks very much

2014-10-30 09:54:54 -0600 asked a question fatal error C1189: #error : Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported!

image description

i have a problem when I was trying openni test like this :

fatal error C1189: #error : Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported!

And then I remove this function in line 57 or 58 in XnPlatform

if _MSC_VER > 1600 // After MSVC8 (2010)

        #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported!
    #endif

but when I building this code, the new XnPlatform can't save in it's folder

what should I do, to solute this error ?