...
This repository gives you access to the code necessary to:
- Train a Neural Network for converting images in a common latent space.
- Register images that were converted in the common latent space.
We use two datasets:
- Zurich Summer Dataset: https://sites.google.com/site/michelevolpiresearch/data/zurich-dataset
- Multimodal Biomedical Dataset for Evaluating Registration Methods: https://zenodo.org/record/3874362
All the results related to the Zurich sattelite images dataset can be reproduced with the train-zurich.ipynb notebook. For reproducing the biological dataset follow the instructions below:
Important: for each script make sure you update the paths to load the correct datasets and export the results in your favorite directory.
Run the notebook named train-biodata.ipynb. This repository contains a Release which contains all our trained models. If you want to skip training, you can fetch the models named model_biodata_mse.pt or model_biodata_cosine.pt and generate the CoMIRs for the test set (last cell in the notebook).
Registration based on SIFT:
- Compute the SIFT registration between CoMIRs (using Fiji v1.52p):
fiji --ij2 --run scripts/compute_sift.py 'pathA="/path/*_A.tif”,pathB="/path/*_B.tif”,result=“SIFTResults.csv"'
- load the .csv file obtained by SIFT registration to Matlab
- run evaluateSIFT.m
Computing the registration with Mutual Information (using Matlab 2019b, use >2012a):
- run RegMI.m
- run Evaluation_RegMI.m
The script folder contains scripts useful for running the experiments, but also notebooks for generating some of the figures appearing in the paper.
Anonymized
Anonymized