Giter Site home page Giter Site logo

Comments (3)

paskino avatar paskino commented on June 3, 2024

I guess we should also think whether we want to do this in C or in Python.
If in Python it shouldn't be too difficult.

from tomophantom.

dkazanc avatar dkazanc commented on June 3, 2024

yes, worth talking about it. Probably we should come up with a convenient parametrisation. If in python then this can be similar to this script, where just linear vertical shift is implemented. However the vector of shifts (translations, rotations) can be of any trajectory.

from tomophantom.

paskino avatar paskino commented on June 3, 2024

If we want to support a C API (or wrappers for other languages as MATLAB) would be the ability to set each parameter as:

  1. float or constant in time
  2. a tuple (p0,p1), implying linear change within the time frame
  3. a "list" of values the object assumes. In this case there is scope for interpolation when each parameter may vary with a different number of timeframes.

Worth having a look at what the CCPPETMR numerical simulation implementation.
https://youtu.be/UXrAVnTw7lo?t=3752

I suggest to change the current implementation which assumes equal steps to use generic arrays where the value of the parameter at each step is defined.

TODO, update these lines:

  1. for(tt=0; tt < steps; tt++) {
  2. float distance = sqrtf(pow((x1 - x0),2) + pow((y1 - y0),2));
  3. float distance = sqrtf(pow((x1 - x0),2) + pow((y1 - y0),2));
  4. float distance = sqrtf(pow((x1 - x0), 2) + pow((y1 - y0), 2) + pow((z1 - z0), 2));

from tomophantom.

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.