CERN / TIGRE

TIGRE: Tomographic Iterative GPU-based Reconstruction Toolbox
BSD 3-Clause "New" or "Revised" License
527 stars 180 forks source link

Geometric parameter settings in the tigre? #524

Closed liq760 closed 3 months ago

liq760 commented 3 months ago

Hello, I would like to ask how the world coordinate system in Tigre is defined, and how to determine the origin, X-axis, Y-axis and Z-axis of the coordinate system. What is the origin coordinate O based on?

AnderBiguri commented 3 months ago

Hi @liq760 , as all coordinates are relative, the origin is just a decision to where it is. In TIGRE, 0,0,0 is the point in the middle of the image, and the axis of rotation of the machine goes through it by default. Have a look at the paper and the demos for more details

liq760 commented 3 months ago

How do I find the center point of an object that is not symmetrical? I know that the axis of rotation is the Z axis in the world coordinate system, and the point pointing to the ray source point S is the x axis. So, is the origin O of the coordinate system determined based on the axis of rotation and the straight line perpendicular to the axis of rotation and passing through S? Or is it still looking for the Image center?

AnderBiguri commented 3 months ago

@liq760 I'm not sure what do you mean "it is not symmetrical". The image/object is a cube of pixels, its impossible for it not to be symmetrical.

You defined the location of the origin perfectly w.r.t. the source and the axis of rotation. Is in this origin where the image center lives too. So both are true.

liq760 commented 3 months ago

屏幕截图 2024-03-14 164747 For example, for the above three parameters, geo.offOrigin =[0;0;0]; is the offset of the object in the world coordinate system. So, geo.offDetector=[0; 0], is it about the offset of the detector's own coordinate system? If so, where is its origin? geo.rotDetector=[0;0;0]; is the rotation of the detector. It rotates according to which coordinate system. Where is the origin?

AnderBiguri commented 3 months ago

@liq760 have you had a look at the TIGRE paper, containing a nice diagram of the geometry? Demo 1 also has it. Maybe that helps?