ProsRegNet: A Deep Learning Framework for Registration of MRI and Histopathology Images of the Prostate.
This is the PyTorch implementation of the following paper:
Shao, Wei, et al. "ProsRegNet: A Deep Learning Framework for Registration of MRI and Histopathology Images of the Prostate." [Medical Image Analysis (MedIA)]
Our source code has been modified from cnngeometric_pytorch, and have been tested successfully on Linux Mint, Cuda 10.0, RTX 2080 Ti, Anaconda Python 3.7, PyTorch 1.3.0.
The code is only for research purposes. If you have any questions regarding how to use this code, feel free to contact Wei Shao (weishao@stanford.edu).
PyTorch 1.3.0
Cuda 10.0
Anaconda Python 3.7
SimpleITK
cv2
skimage
- Clone the repository:
git clone https://github.com/pimed/ProsRegNet.git
cd ProsRegNet
- Download the [training dataset]:
uzip the compressed folder named "datasets", this folder contains two subfolders: "training" and "testing".
The small training dataset consists MRI and histopathology image slices of 25 subjects from [The Cancer Imaging Archive PROSTATE-MRI dataset]. The small testing dataset consists of one subject from [The Cancer Imaging Archive Prostate Fused-MRI-Pathology dataset].
- Training the affine and deformable registration models (optional):
python train.py --geometric-model affine
python train.py --geometric-model tps
- Evaluation:
run the registration_pipeline.ipynb jupyter notebok
Models trained with larger dataset, see details in our MedIA paper
[Trained ProsRegNet affine model] [Trained ProsRegNet deformable model]
If you use this code, please cite the following papers:
@article{Shao_2021,
doi = {10.1016/j.media.2020.101919},
url = {https://doi.org/10.1016%2Fj.media.2020.101919},
year = 2021,
month = {feb},
publisher = {Elsevier {BV}},
volume = {68},
pages = {101919},
author = {Wei Shao and Linda Banh and Christian A. Kunder and Richard E. Fan and Simon J.C. Soerensen and Jeffrey B. Wang and Nikola C. Teslovich and Nikhil Madhuripan and Anugayathri Jawahar and Pejman Ghanouni and James D. Brooks and Geoffrey A. Sonn and Mirabela Rusu},
title = {{ProsRegNet}: A deep learning framework for registration of {MRI} and histopathology images of the prostate},
journal = {Medical Image Analysis}
}
and
@InProceedings{Rocco17,
author = {Rocco, I. and Arandjelovi\'c, R. and Sivic, J.},
title = {Convolutional neural network architecture for geometric matching},
booktitle = {{Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition}},
year = {2017},
}