Git Product home page Git Product logo

Comments (10)

MarTiXcz avatar MarTiXcz commented on August 17, 2024 2

Hi,
I am trying to do the same thing. Just need to get PCD file from it :)
It's in InfiniTAM-master\InfiniTAM\ITMLib\Utils\ITMLibDefines.h

/// Kinect2 support is disabled by default (to not add the Kinect2 SDK dependency)
#ifndef COMPILE_WITHOUT_Kinect2
#define COMPILE_WITHOUT_Kinect2
#endif

Also, I think you don't need to calibrate Kinect2 as it's using Kinect SDK instead of OpenNI. (use no arguments)

They commented out part of Kinect2Engine.cpp

Specifically: Kinect2Engine::getImages(...)
in this commit.
I will try to get it to work tomorrow. Or I will use OpenNI like you did (thanks btw, didn't know it would work with Kinect v2).

Saving

Based on UIEngine.cpp ln 211

case 'w':
        printf("saving mesh to disk ...");
        uiEngine->SaveSceneToMesh("mesh.stl");
        printf(" done\n");

So it's w key. There is also support for .OBJ just go to definition of SaveSceneToMesh (F12 in VS) and further.

from infinitam.

MarkZurkberg avatar MarkZurkberg commented on August 17, 2024 1

Thanks! ^_^ I checked FindOpenNI.cmake, and I notice there is a line of code said "OPEN_NI_ROOT /usr/local" . I think this is the key, and I should set "usr/local" to my OpenNI path "c:/pragram files/openni2", right? @connerbrooks

from infinitam.

MarkZurkberg avatar MarkZurkberg commented on August 17, 2024

Have you tried to compile InfiniTAM in Ubuntu?

from infinitam.

Attreyu avatar Attreyu commented on August 17, 2024

No, I need it in Windows.

from infinitam.

connerbrooks avatar connerbrooks commented on August 17, 2024

@Attreyu, @MarTiXcz have you taken a look at #33 and the associated PR: #34?

from infinitam.

MarTiXcz avatar MarTiXcz commented on August 17, 2024

@connerbrooks +1. Thanks. I'm not sure how I missed that. I guess I was a bit tired.

from infinitam.

MarkZurkberg avatar MarkZurkberg commented on August 17, 2024

Hi, I am tryting to compile InfiniTAM also, and I came cross the same problems as yours.
My Kinect 2 have connected with computer successfully, and I have installed OpenNI2 at C:\Programs Files\OpenNI2, (btw, when I use Cmake to configure and generate , Cmake GUI always said can't find OpenNI, and what's worse, I can't set the path that pointing OPENI_ROOT). The InfiniTAM_cli.exe always said "compiled without Kinect 2 support" and "compiled without openNI support" . I wonder if you can tell me how you fixed this problem. Thanks! ^_^ @Attreyu @MarTiXcz

from infinitam.

connerbrooks avatar connerbrooks commented on August 17, 2024

You need to make changes to FindOpenNI.cmake. It does not work by default, this version includes modifications to make it work on windows.

from infinitam.

connerbrooks avatar connerbrooks commented on August 17, 2024

You may need to make a few more changes to match the folder structure of the binary installation, but those are present in the modified version in my gist.

from infinitam.

mississippia avatar mississippia commented on August 17, 2024

I linked freenect2 to infiniTAM on linux.
tested as following image:
infiniTAM_pc

you are welcome to try my fix:
InfiniTAM.zip

from infinitam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.