Code Monkey home page Code Monkey logo

Comments (4)

WYVERN2742 avatar WYVERN2742 commented on August 24, 2024

Reproducable with config;
Image

Config-WebCT.json

Looks like the rotation is on the model axis, and not the worldspace; hence why this has not been encountered before.

from webct.

WYVERN2742 avatar WYVERN2742 commented on August 24, 2024

Current approach is using gvxr.rotateScene() to rotate all meshes during capture setup.

Image

And projections are generated by rotating "root";

Image

Probably a likely assumption that rotateScene causes root to rotate, resulting in the projections' rotation to be incorrect compared to the fixed detector and source

from webct.

WYVERN2742 avatar WYVERN2742 commented on August 24, 2024

One fix is to rotate each sample mesh, however:

  • Requires keeping track of all mesh nodes
  • What happens when meshes are added / removed before and after a translation
    • e.g, rotate meshes, mesh deleted, reset rotation breaks due to missing node...
    • rotate meshes, add mesh, un-rotate meshes, but new mesh is now in an incorrect position

Is there a better way to rotate all scene nodes, and rotate the scene separately? Will have to find out

from webct.

WYVERN2742 avatar WYVERN2742 commented on August 24, 2024

Use computeCTAcquisition with None for path
https://sourceforge.net/p/gvirtualxray/gitroot/ci/master/tree/SimpleGVXR/include/acquisition.h#l258

And then getLastProjectionSet to get projections
https://sourceforge.net/p/gvirtualxray/gitroot/ci/master/tree/SimpleGVXR/include/acquisition.h#l458

from webct.

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.