Giter Club home page Giter Club logo

Comments (4)

ph-code-repo avatar ph-code-repo commented on May 22, 2024 1

The functionality for it is already in the PoseHelper.h file, So I added a few lines to deinitBundleFusion in BundleFusion.cpp (few lines above and below given so you can find it in the source code):

#ifdef RUN_MULTITHREADED
g_bundler->exitBundlingThread();

g_imageManager->setBundlingFrameRdy();			//release all bundling locks
g_bundler->confirmProcessedInputFrame();		//release all bundling locks
ConditionManager::release ( ConditionManager::Recon ); // release bundling locks

//NEW CODE HERE
std::vector<mat4f> trajectory;
g_bundler->getTrajectoryManager()->getOptimizedTransforms ( trajectory );
PoseHelper::saveToPoseFile(GlobalAppState::get().s_generateMeshDir + "poseFile.txt",trajectory);

if ( bundlingThread->joinable() )
    bundlingThread->join();	//wait for the bundling thread to return;
#endif 

This should be run if you press 'q' to exit and shutdown the visualisation, and output poseFile.txt in the directory where a mesh would be saved, as specified by s_generateMeshDir in zParametersDefault.txt
Some of the code is copied from processInputRGBDFrame in BundlFusion.cpp, where there is a section for publish_mesh to the visualisation - it gets the trajectory, splits it into positions and camera poses to draw to the visualisation. I just sent the trajectories before splitting into the PoseHelper::saveToPoseFile function. Some of the values can be expressed in scientific notation.

from bundlefusion.

Tomas-Lee avatar Tomas-Lee commented on May 22, 2024

I want to know t, too

from bundlefusion.

Serena2018 avatar Serena2018 commented on May 22, 2024

You know that after bundlefusion is operated, frame-XXXXXX.pose.txt wrapped in your .sens file is updated. You can translate the newest .sens file into color ones, depth ones and pose ones, then you can each camera pose information for each frame.

from bundlefusion.

chethanab16 avatar chethanab16 commented on May 22, 2024

@Serena2018 could you elaborate more about "translate the newest .sens file into color ones, depth ones and pose ones, then you can each camera pose information for each frame. how to do it

@zhujiawen1994 @Tomas-Lee if any one know how to get the frame-XXXXXX.pose.txt please explain me know how to get it

from bundlefusion.

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.