none
KinectFusionAPI with Creative Senz3D? RRS feed

  • Question

  • Is it possible to use the KinectFusionAPI without a Kinect device?

    I'm trying to make a program that will use the NuiKinectFusionAPI for 3D reconstruction with a Creative Senz3D camera.

    However when I call NuiFusionCreateColorReconstruction() it returns:

    HRESULT_FROM_WIN32(ERROR_DEVICE_NOT_CONNECTED) : The device is not connected.

    Here is a portion of my code:

       
     	HRESULT hr = S_OK;
    	WCHAR description[MAX_PATH];
    	WCHAR instancePath[MAX_PATH];
    	UINT memorySize = 0;
    	
    	NUI_FUSION_RECONSTRUCTION_PROCESSOR_TYPE m_processorType = NUI_FUSION_RECONSTRUCTION_PROCESSOR_TYPE_AMP;
    	int m_deviceIndex = -1;
    	
    	NUI_FUSION_RECONSTRUCTION_PARAMETERS m_reconstructionParams;
    	m_reconstructionParams.voxelsPerMeter = 256;
    	m_reconstructionParams.voxelCountX = 512;
    	m_reconstructionParams.voxelCountY = 384;
    	m_reconstructionParams.voxelCountZ = 512;
    
    	Matrix4 m_worldToCameraTransform;
    	SetIdentityMatrix(m_worldToCameraTransform);
    	INuiFusionColorReconstruction* m_pVolume;
    
    	hr = NuiFusionGetDeviceInfo(m_processorType, m_deviceIndex, &description[0], ARRAYSIZE(description), &instancePath[0], ARRAYSIZE(instancePath), &memorySize);
    	hr = NuiFusionCreateColorReconstruction(&m_reconstructionParams, m_processorType, m_deviceIndex, &m_worldToCameraTransform, &m_pVolume);
    

    Friday, June 20, 2014 12:17 PM

Answers