Skip to content

Deforming a 3D image according to a given deformation vector field with Nadaraya-Watson regression; 3rd repo in a series of 3 repos associated with the research article "Prediction of the motion of chest internal points using an RNN trained with RTRL for latency compensation in lung cancer radiotherapy" (Pohl et al, Comput Med Imaging Graph, 2021)

License

Notifications You must be signed in to change notification settings

pohl-michel/3D-image-warping-using-Nadaraya-Watson-non-linear-regression

Repository files navigation

This repository is the third of a series of three repositories containing code that we used in the research corresponding to the following article:

Michel Pohl, Mitsuru Uesaka, Kazuyuki Demachi, Ritu Bhusal Chhatkuli, "Prediction of the motion of chest internal points using a recurrent neural network trained with real-time recurrent learning for latency compensation in lung cancer radiotherapy", Computerized Medical Imaging and Graphics, Volume 91, 2021, 101941, ISSN 0895-6111

You can access it with the following links:

The code in this repository deforms an original 3D image according to a certain deformation vector field (DVF), using Nadaraya-Watson regression. The two other repositories corresponding to the article mentioned above are the following:

Please kindly consider citing our published article if you use this code in your research. Also, please do not hesitate to look at the other two repositories mentioned above.

The left image below corresponds to the coronal cross-section of a 3D region of interest containing a lung tumor. The motion vectors representing the projection of a 3D motion field corresponding to breathing onto that cross-section are superimposed on the left image. That 3D motion field is defined at each voxel of the initial image. The output of the code is the warped 3D image, whose sagittal cross-section is displayed on the right.

This program can :

  • save cross sections and slices of the original images and the warped image
  • save the 3D warped image.
  • save the projection of the DVF along a y plane (for visualization).

The main script to execute is "Nadaraya_Watson_warping_main.m".

The behavior of the program is controlled by the beh_par structure, defined in load_behavior_parameters3D() and whose fields can be changed manually. The parameters for warping the initial image can be set manually inside the load_3Dwarp_par() function. The parameters concerning the display and the initial image are respectively contained inside the excel files "3Ddisp_par.xlsx" and "3Dim_seq_par.xlsx"

An input image example, named "original_image.dcm", as well as a deformation vector field, named "DVF_for_warping.mat" are provided. They represent the tumor of a patient with lung cancer and the motion of that tumor due to breathing. The image was acquired by a 16-slice helical CT simulator (Brilliance Big Bore, Philips Medical System) in Virginia Commonwealth University Massey Cancer Center, which comes from the 4D-Lung dataset of the Cancer Imaging Archive open database: https://wiki.cancerimagingarchive.net/display/Public/4D-Lung

The DVF is noisy along the edges of the initial image, as those areas respresent a challenge for optical flow methods.

About

Deforming a 3D image according to a given deformation vector field with Nadaraya-Watson regression; 3rd repo in a series of 3 repos associated with the research article "Prediction of the motion of chest internal points using an RNN trained with RTRL for latency compensation in lung cancer radiotherapy" (Pohl et al, Comput Med Imaging Graph, 2021)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages