This toolbox contains all the functions necessary for extraction and registration of medical RTOG images using a cubic-B-spline free form deformation technique. The optimization routine uses a difference of squares along with smoothness and feature point designations as error criteria to minimize. Some code has been taken from CERR.
A GUI (FFD4D) is included for handling all the steps from extraction of data and contours to registration and deformation of the image.
The GUI requires contours be loaded of the organs being deformed in order to register them. If contours are not available a very rough automated segmentation routine is provided to outline skin and bone structures. These contours are what is used by the registration routine and are necessary, the original images are not, but can be deformed using the registration parameters after.
It is recommended that images be cropped identically (no larger than [400x400x100 pixels] and are globally registered before hand. A typical registration takes approx. 160 minutes to perform.
DICOM images can also be used, however there may still be many bugs associated with using DICOM.
I will add proper documentation soon. I apologize for now.
Please ensure the folder hierarchy is preserved when extracting these files.
Please let me know if you experience any problems. Don't forget to extract the zip file with the folder hierarchy intact or the gui will not function correctly.
This software should not be used clinically or commercially and is for research purposes only. Use at your own risk.