[Rtk-users] 3D CT scan to 2D DRR

2020-04-07 Thread Henry Cope
Hello, I'm working on a project to turn a 3D CT scan into a 2D DRR. I'm starting with the rtk forward projection, and then adding things like simulated geometry and a slice extraction filter to it. Currently, all I get as my DRR output is a black PNG. I'm not sure where

[Rtk-users] DRR from 3d CT and projection of lung contour mesh onto it

2022-09-22 Thread qod rec
Hello! I have some 3d chest CTs and its lung contour is labeled. I generate the contour meshes and want to project their vertices (points) onto the DRR. I use the following parameters to generate DRR using JosephForwardProjectionImageFilter in RTK. # Input inputVolume = itk.imread('ches

Re: [Rtk-users] DRR from 3d CT and projection of lung contour mesh onto it

2022-09-23 Thread Simon Rit via Rtk-users
CTs and its lung contour is labeled. I generate the > contour meshes and want to project their vertices (points) onto the DRR. > I use the following parameters to generate DRR using > JosephForwardProjectionImageFilter in RTK. > > # Input > inputVolume = itk.imread('chest.

Re: [Rtk-users] DRR with limited FOV from 3D-CT

2022-11-09 Thread Isuru Suranga Wijesinghe
ction angle (with FOV origin [117.085998535, 3.948999882]), it will rotate in the worng axis. For this step, I simply replace the gantryAngle parameter with 324 and set the new projOffsetX and projOffsetY. I've attached the updated code, the reoriented CT volume, the correct DRR at projection angle

Re: [Rtk-users] 3D CT scan to 2D DRR

2020-04-07 Thread Simon Rit
enry Cope wrote: > Hello, > > I'm working on a project to turn a 3D CT scan into a 2D DRR. I'm starting > with the rtk forward projection, and then adding things like simulated > geometry and a slice extraction filter to it. Currently, all I get as my > DRR output is a b

Re: [Rtk-users] DRR with limited FOV from 3D-CT

2022-11-09 Thread Simon Rit
Hi, The first input of JosephForwardProjectionImageFilter is the image in which you'll calculate the DRR, typically an empty projection (filled with zeros). In your code, this is computed with constantImageSource but you're setting the volume origin, spacing size which is probably wro

Re: [Rtk-users] DRR with limited FOV from 3D-CT

2022-11-09 Thread Isuru Suranga Wijesinghe
Can I ask any possible solution to my issue please (I just want to get the DRR with the limited FOV based on the machine parameters attached above) ??? On Tue, Nov 8, 2022 at 2:12 PM Isuru Suranga Wijesinghe < isurusuranga.wijesin...@gmail.com> wrote: > In addition to that I want to

Re: [Rtk-users] 3D CT scan to 2D DRR

2020-04-07 Thread Henry Cope
re > <http://www.openrtk.org/Doxygen/DocGeo3D.html>. > If you don't succeed, please provide the target.mhd (without raw) and we > can check what's going on. > Simon > > On Tue, Apr 7, 2020 at 8:43 PM Henry Cope > wrote: > >> Hello, >> >> I&#

Re: [Rtk-users] DRR with limited FOV from 3D-CT

2022-11-09 Thread Simon Rit via Rtk-users
p, I simply replace the gantryAngle parameter with 324 and set > the new projOffsetX and projOffsetY. > > I've attached the updated code, the reoriented CT volume, the correct DRR > at projection angle zero, and the incorrect DRR at projection angle 324. > > Can you assist me in

Re: [Rtk-users] DRR with limited FOV from 3D-CT

2022-11-11 Thread Simon Rit via Rtk-users
;> parameter to 90 degrees. >>> >>> However, If I project through a 324 (degrees) projection angle (with FOV >>> origin [117.085998535, 3.948999882]), it will rotate in the worng axis. >>> For this step, I simply replace the gantryAngle parameter with 324 and >&

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-20 Thread Simon Rit
ndex.php/RTK/Examples/ElektaReconstruction> if you can get access to the database. Simon On Mon, Apr 20, 2020 at 9:31 PM Isuru Suranga Wijesinghe < isurusuranga.wijesin...@gmail.com> wrote: > Hi, > > I'm currently looking rtkforwardprojections example [1] to generate DRR > images fr

Re: [Rtk-users] DRR with limited FOV from 3D-CT

2022-11-08 Thread Isuru Suranga Wijesinghe
In addition to that I want to generate DRRs with a limited field of view as attached in the sample real kV Xray image. I've included a sample CT volume that I'm currently using to generate such DRR images using the machine parameters. Please assist in resolving this matter. Thank you

Re: [Rtk-users] DRR with limited FOV from 3D-CT

2022-11-11 Thread Isuru Suranga Wijesinghe
FOV >> origin [117.085998535, 3.948999882]), it will rotate in the worng axis. >> For this step, I simply replace the gantryAngle parameter with 324 and >> set the new projOffsetX and projOffsetY. >> >> I've attached the updated code, the reoriented CT volume, the c

Re: [Rtk-users] 3D CT scan to 2D DRR

2020-04-08 Thread Simon Rit
Great! ___ Rtk-users mailing list Rtk-users@public.kitware.com https://public.kitware.com/mailman/listinfo/rtk-users

Re: [Rtk-users] DRR with limited FOV from 3D-CT

2022-11-30 Thread Simon Rit
on angle zero) to >>>>> adjust the correct field of view for projection angle zero (FOV origin >>>>> [116.368270874, 3.837730408]). I simply replace the default values of >>>>> projOffsetX and projOffsetY with the values shown below. >>>>

Re: [Rtk-users] How to fill an outer space with air in forward projection

2020-11-20 Thread Simon Rit via Rtk-users
All these operations can be pipelined with ITK filters except the forward projection. It sounds like a very nice project, thanks for doing it and please let us know how it goes. Simon On Fri, Nov 20, 2020 at 7:40 AM pmkc...@yandex.ru wrote: > Hello, > > I'm making a DRR computation

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-21 Thread Isuru Suranga Wijesinghe
anga Wijesinghe < > isurusuranga.wijesin...@gmail.com> wrote: > >> Hi, >> >> I'm currently looking rtkforwardprojections example [1] to generate DRR >> images from 3D-CT volumes. My question is how can I set custom geometric >> configurations as in the

[Rtk-users] DRR with limited FOV from 3D-CT

2022-11-08 Thread Isuru Suranga Wijesinghe
Hi, I have a 3D-CT volume and want to obtain the DRR projection by adjusting the machine parameters as shown in the image below. Here's my code, and I didn't get the expected DRRs with the limited FOV. Is there anything missing from the parameter setup? Could you please assist me in

[Rtk-users] How to configure beam characteristics such as filtration

2020-04-18 Thread Isuru Suranga Wijesinghe
Hi, I’m currently working on generating DRR image from 3D CT volumes. Is there a way to configure beam characteristics such as filtration ? That is for an example we use a 120kVp beam, and the filtration is given as 16.25mmAl at 120kVp. Does RTK versions has two parameters to keep these two

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-21 Thread Simon Rit
/index.php/RTK/Examples/ElektaReconstruction> if >> you can get access to the database. >> Simon >> >> On Mon, Apr 20, 2020 at 9:31 PM Isuru Suranga Wijesinghe < >> isurusuranga.wijesin...@gmail.com> wrote: >> >>> Hi, >>> >>> I&

[Rtk-users] rtk::ThreeDCircularProjectionGeometry:: VerifyAngles() epsilon question

2022-04-27 Thread Brandon LaCava via Rtk-users
tes source/detector positions for DRR generation via the CUDA forward projector. For certain combinations of source/detector positions/orientations, rtk::ThreeDCircularProjectionGeometry::AddProjection() fails because rtk::ThreeDCircularProjectionGeometry::VerifyAngles() fails and then subseq

Re: [Rtk-users] Creating DRRs with RTK in python

2021-08-12 Thread Simon Rit
> > What I do in my code: > >- Load 3D CT image and change it to float Image Type ( >sitk.sitkFloat32) >- Define the image type I want for DRR >- Create a stack of empty projection images using ConstantImageSource, >using ImageType of DRR >- Define

[Rtk-users] Forward projection rotation matrix from gantry and couch angles

2022-02-25 Thread pmkc...@yandex.ru
Dear developers, For DRR image calculation i use a ThreeDCircularProjectionGeometry class with AddProjection method. The default rotation direction is around Y-axis in LPS coordinates (Z-axis in RAS coordinates in 3D Slicer) as i understand from the documentation. Should i calculate rotation

Re: [Rtk-users] rtk::ThreeDCircularProjectionGeometry:: VerifyAngles() epsilon question

2022-05-06 Thread Simon Rit
the epsilon value in > rtk::ThreeDCircularProjectionGeometry::VerifyAngles(). This is a bit > cumbersome to describe so I'll go slow and kinda walk through it. > > We have some software that iterates source/detector positions for DRR > generation via the CUDA forward projector. > For

Re: [Rtk-users] About CR(Computed Radiography)

2017-03-24 Thread Simon Rit
Hi, If you mean Digitally Reconstructed Radiograph (DRR), this is what is called forward projection in RTK. See e.g. http://wiki.openrtk.org/index.php/RTK/Scripts/ForwardProjection Simon On Fri, Mar 24, 2017 at 9:54 AM, Cyril Mory wrote: > Hi Sam, > > > I think you need to ask a

Re: [Rtk-users] Creating DRRs with RTK in python

2021-08-23 Thread Simon Rit
50023c370ed996a7985b69/applications/rtkforwardprojections/rtkforwardprojections.cxx > for forward projections. However, I find this very hard to read since I > don’t know C++ so I hope you can help. I have also read > https://discourse.itk.org/t/itk-to-rtk-migration-forward-projection-issues-question

Re: [Rtk-users] How to configure beam characteristics such as filtration

2020-04-20 Thread Simon Rit
:21 PM Isuru Suranga Wijesinghe < isurusuranga.wijesin...@gmail.com> wrote: > Hi, > > I’m currently working on generating DRR image from 3D CT volumes. > Is there a way to configure beam characteristics such as filtration ? > That is for an example we use a 120kVp beam, and the f

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Andreas Andersen
try.html#a39d6a67147cac1f2b5d75f5958a48f9a> >>>> takes several parameters. Given your scheme, it should look like >>>> AddProjection(1000, 1536, angle, +/-190 etc) >>>> It looks like an Elekta geometry given the distances, check the example >>>> he

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Isuru Suranga Wijesinghe
ularProjectionGeometry.html#a39d6a67147cac1f2b5d75f5958a48f9a> >>>>> takes several parameters. Given your scheme, it should look like >>>>> AddProjection(1000, 1536, angle, +/-190 etc) >>>>> It looks like an Elekta geometry given the

[Rtk-users] Ray-tracing through a binary mask image volume

2022-11-28 Thread Suranga W
correct result. Could anyone please assist me in resolving this problem ? What kind of change should I make to generate these DRRs ? The code, resulted DRR versions for CT and mask, CT volume and the binary mask volume attached herewith for your further reference. reference_CT.nii.gz <ht

Re: [Rtk-users] Ray-tracing through a binary mask image volume

2022-11-29 Thread Simon Rit
ed from the CT volume, but when I passed > the binary mask volume, I did not get the correct result. > > Could anyone please assist me in resolving this problem ? What kind of > change should I make to generate these DRRs ? > > The code, resulted DRR versions for CT and mask, CT

Re: [Rtk-users] Forward projection rotation matrix from gantry and couch angles

2022-02-25 Thread Simon Rit
yandex.ru wrote: > Dear developers, > > For DRR image calculation i use a ThreeDCircularProjectionGeometry class > with AddProjection method. The default rotation direction is around > Y-axis in LPS coordinates (Z-axis in RAS coordinates in 3D Slicer) as i > understand from the

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Simon Rit
e >>>>>> <http://www.openrtk.org/Doxygen/DocGeo3D.html> and >>>>>> rtksimulatedgeometry >>>>>> <https://github.com/SimonRit/RTK/tree/master/applications/rtksimulatedgeometry> >>>>>> for creating one file. AddProjection >>>&g

Re: [Rtk-users] ITK ERROR: Geometry is empty error when generating DRRs

2022-12-15 Thread Suranga W
s not rotating on the correct axis. Could you please guide me on resolving this issue please ? I herewith attached the code, drr at gantry angle 0 and 324 (in degrees) for your further reference. On Wed, Dec 14, 2022 at 8:41 AM Simon Rit wrote: > Hi, > 1) AddProjection with source / detecto

[Rtk-users] 答复: About CR(Computed Radiography)

2017-03-24 Thread 商 宏杰
: 2017年3月24日 17:33 收件人: Cyril Mory 抄送: 商 宏杰; rtk-users@public.kitware.com 主题: Re: [Rtk-users] About CR(Computed Radiography) Hi, If you mean Digitally Reconstructed Radiograph (DRR), this is what is called forward projection in RTK. See e.g. http://wiki.openrtk.org/index.php/RTK/Scripts

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Isuru Suranga Wijesinghe
>>> simon@creatis.insa-lyon.fr> wrote: >>>>>> >>>>>>> Hi, >>>>>>> Look at the doc on the geometry file >>>>>>> <http://www.openrtk.org/Doxygen/DocGeo3D.html> and >>>>>>> rtksimu

Re: [Rtk-users] 答复: About CR(Computed Radiography)

2017-03-25 Thread Simon Rit
*收件人:* Cyril Mory > *抄送:* 商 宏杰; rtk-users@public.kitware.com > *主题:* Re: [Rtk-users] About CR(Computed Radiography) > > Hi, > If you mean Digitally Reconstructed Radiograph (DRR), this is what is > called forward projection in RTK. See e.g. > http://wiki.openrtk.org/index.ph

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Isuru Suranga Wijesinghe
s. Given your scheme, it should look like >>> AddProjection(1000, 1536, angle, +/-190 etc) >>> It looks like an Elekta geometry given the distances, check the example >>> here >>> <http://wiki.openrtk.org/index.php/RTK/Examples/ElektaReconstruction> >>> if you can ge

Re: [Rtk-users] DRR image generation from 3D CT

2020-04-22 Thread Simon Rit
gt;>>>>>> But there is nothing in the output location. I have attached >>>>>>> herewith my geomtry.xml as well. >>>>>>> >>>>>>> D:/RTK/Build/bin/Release>rtkforwardprojections -g D:/geomtry.xml -i >>>&

Re: [Rtk-users] ITK ERROR: Geometry is empty error when generating DRRs

2022-12-19 Thread Suranga W
when I changed the gantry > angle, I discovered that the gantry was not rotating on the correct axis. > Could you please guide me on resolving this issue please ? > > I herewith attached the code, drr at gantry angle 0 and 324 (in degrees) > for your further reference. > > On Wed,

Re: [Rtk-users] ITK ERROR: Geometry is empty error when generating DRRs

2022-12-12 Thread Suranga W
Hi Simon, Many thanks. I have another few questions though. 1.) How can I pass different gantry angles if I use the aforementioned AddProjection method, which lacks the gantryAngle parameter? What I want is to generate DRR images for angles 36, 72, 108, and so on. 2.) If I have the field of

Re: [Rtk-users] ITK ERROR: Geometry is empty error when generating DRRs

2022-12-12 Thread Simon Rit
; > 1.) How can I pass different gantry angles if I use the aforementioned > AddProjection method, which lacks the gantryAngle parameter? What I want is > to generate DRR images for angles 36, 72, 108, and so on. > > 2.) If I have the field of view origin from a corresponding kV X-

[Rtk-users] Creating DRRs with RTK in python

2021-08-09 Thread Milou de Boer
or type of arguments for overloaded function 'itkImageToImageFilterIF3IF3_SetInput'. Probably since I have used the ImageType of the DRR (2D) for the constantImageSource. Additionally, it seems that the setInput(1) = CT also doesn’t work, maybe because I have used sitk.sitkFloat32) to g

Re: [Rtk-users] ITK ERROR: Geometry is empty error when generating DRRs

2022-12-13 Thread Suranga W
any thanks. I have another few questions though. >> >> 1.) How can I pass different gantry angles if I use the aforementioned >> AddProjection method, which lacks the gantryAngle parameter? What I want is >> to generate DRR images for angles 36, 72, 108, and so on. >> &

Re: [Rtk-users] ITK ERROR: Geometry is empty error when generating DRRs

2022-12-14 Thread Simon Rit via Rtk-users
; Many thanks. I have another few questions though. >>> >>> 1.) How can I pass different gantry angles if I use the aforementioned >>> AddProjection method, which lacks the gantryAngle parameter? What I want is >>> to generate DRR images for angles 36, 72, 108,