LEAP icon indicating copy to clipboard operation
LEAP copied to clipboard

How to use custom geometry

Open jxhno1 opened this issue 8 months ago • 5 comments

Hi Kyle: Great job as LEAP did and doing! I just want to know how can I use the geometry in RTK pattern, as I have a custom geometry file in RTK pattern, because this geometry is more accurate than theory case. Thank you for your project again.

jxhno1 avatar Apr 24 '25 02:04 jxhno1

Hello,

I am not sure what the "RTK" pattern is? In LEAP, if you want to specify a non-regular geometry, you can use the "modular-beam" geometry. There are a few sample scripts in the demo directory to show you how to use this; one example is here.

kylechampley avatar Apr 24 '25 13:04 kylechampley

Thank you for your reply.RTK geo pattern like this(https://docs.openrtk.org/en/latest/documentation/docs/Geometry.html):

Image

119.438644891247 -119.38 742.461499338114 1209.95562144366 0.461499338114294 0.461499338114294 3.17336208608908 -2.26525646321635 0.406201574567947 -1.96330939396645 -1083.90188625077 180.365928205996 506.581477145682 2571.84740030446 536.871266591724 427.680793986758 996.422813178911 -1466.11748214093 -0.0222206068745311 0.92395070120484 -0.381865612975575 -742.461499338114 118.518340815155 -118.57 742.461626854011 1209.31165399586 0.461626854011113 0.461626854011113 2.68769186086107 -2.07876208499909 0.444909530707463 -1.98433243396077 -1072.91988848083 207.107950951096 -518.062584453588 2211.01858082169 -419.455365044276 440.979409056781 1045.00501797344 -1327.89057014637 0.305109770846917 0.915705566594875 -0.26151738573353 -742.461626854011 . . . . Two frames example above,thank you! And I want to know how your system set this parameter 0.444909530707463 ,your default is 0?

jxhno1 avatar Apr 25 '25 02:04 jxhno1

I don't know the RTX geometry, so I can't really help with this.

I recommend you look at the demo scripts I recommended in my last post. The modular-beam geometry in LEAP is explicit. You don't specify shifts or rotations; you just give the true positions of things and the vectors that point along the detector rows and columns. See the modular-beam description here.

kylechampley avatar Apr 25 '25 13:04 kylechampley

OK,I see.yours code mainly works on CT system, my system is DSA's CTLike(rotation scan from C-arm).so just have some difference . you known,ASTRA toolbox is based on RTK.

jxhno1 avatar Apr 29 '25 03:04 jxhno1

I guess that the in-plane angle means the angle of detector's rotation, just for your reference.

jeffhwang02 avatar May 21 '25 21:05 jeffhwang02