Closed dkazanc closed 6 years ago
Not clear what you need. Do you need to import utils.h?
I need to re-compile using phantom3d.pyx which should include "utils" module. I don't think the current state solves the dependency on "utils".
actually... i think I should also modify setup.py: the part where ext_modules = cythonize
you only need to add utils.c file to setup.py for the dependency.
if you need to add 2d phantom generators then you can create another phantom2d.pyx file similar to phantom3d.pyx
great, I'll do it then! Thanks Sri!
I've done some restructuring and also added utils.c to avoid repetition of code (MATLAB version works). Please help to modify phantom3d.pyx accordingly to compile code for python. I guess it should be added somewhere along those lines?
cdef extern float buildSino3D_core_single(float *A, int N, int P, float *Th, int AngTot, int CenTypeIn, int Object, float C0, float x0, float y0, float z0, float a, float b, float c, float phi_rot)