GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TMS-Namespace/DIRV-NET: 2D/3D Deformable Image registration using deep learning and convolutional variational networks, implemented using Tensorflow.

This repository was archived by the owner on Oct 23, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
source
source
 
 
support
support
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 

Repository files navigation

DIRV-Net

2D/3D Deformable Image registration using deep learning and convolutional variational networks, implemented using Tensorflow.

My master thesis in Machine learning and Image analysis.

Abstract

Deformable image registration is important for cancer treatments that utilize an MR-Linac (a linear accelerator with integrated magnetic resonance imaging).

Traditional methods of two- and three-dimensional image registration require equipment-specific, handcrafted approaches and lack the necessary image alignment speed for these applications.

We introduce a non-black-box deep learning convolutional variational network for two- and three-dimensional deformable medical image registration, called DIRV-Net, which can learn by utilizing either supervised or unsupervised approaches. The model uses variational networks, fields of experts, and image pyramids for iterative prediction of displacement fields.

Our model demonstrates its ability to register two- and three-dimensional images deformed with complex, smooth deformations to near maximum theoretical accuracy.

It also shows generalizability and robustness against various image structures and features, including previously unseen ones.

Detailed Report

A stripped version of my report with theoretical foundations of the DIRV-Net, and the experimental results, can be found in Deep-Learning Based 3D Deformable Registration of MR-Images.

The Code

Most of the code is in Python and uses Tensorflow mainly.

It is well commented, and self contained.

Some of the non-essential code in support folder for testing and experimenting individual functions may be broken due to some refactoring.

For installation and how to use see below.

Results Examples

A sample from the datasets used:

A sample of Synthetic gradient chessboard dataset

A sample of patched ANHIR dataset

An example of the synthetically generated ground truth and predicted displacement vector fields.

vector representation of the displacement fields

An example of the model training progress at each pyramid level.

Loss function progress

Model internals: shows predicted displacement fields in each variational unit at every pyramid level.

Per pyramid level, per variational unit displacement fields

An example of the learned activation functions.

Activation functions of the data term

Folder Structure Description

[Source] (Self-contained).
│
├── [Model]: The core functionality of the DIRV-Net (self-contained).
│   │
│   ├── [Main]: The variational model and fields of experts.
│   │    │
│   │    └── [Pipeline]: Classes to define pipeline.
│   │         │
│   │         └──  [Field of Experts]: Various fields of experts.
│   │
│   ├── [Settings]: Model configurations.
│   │
│   └── [Tools]: Helper functions for the core functionality.
│       │
│       └──  [Operators]: Various operator implementations.
│
└── [Framework]: Functions for model training/testing and data loading.
    │
    ├── [Main]: Functions for image registration and training.
    │   │
    │   ├── [Data Management]: To manage datasets, batches, etc.
    │   │
    │   ├── [Refinement]: Recurrent refinement implementation.
    │   │
    │   └── [Reporting]: Tensorboard and file logging functions.
    │       │
    │       └── [Generators]: Generators for Tensorboard images.
    │
    ├── [Settings]: Framework and model configurations.
    │   │
    │   └── [Surrogate Loss Functions]: various loss functions.
    │
    └── [Tools]: Helper functions for the framework functionality.
[Support]:
│
├── [Tests]: Various tests (some could be broken).
│
├── [Scripts]: Scripts to generate test data from medical images (some could be broken).
│
└── [Docs]: Documentation assets.

Setup

See Installation.

Usage

See Usage.

Contributors

  • TMS-Namespace
  • Claudio Fanconi

Code References

  • https://github.com/visva89/VarNetRecon
  • https://github.com/visva89/pTVreg/blob/master/ptv/ptv_register.m
  • https://github.com/daviddao/spatial-transformer-tensorflow/blob/master/spatial_transformer.py
  • https://github.com/linz94/mfin-cycle
  • https://github.com/sarthakksu/covid-low-income-bam/blob/a9ab0de05b525db3137570989fc4cef64130d659/factorize_a_city/libs/image_alignment.py

About

2D/3D Deformable Image registration using deep learning and convolutional variational networks, implemented using Tensorflow.

Topics

2d-images3d-imagesconvolutional-neural-networksdeep-learningdeep-neural-networksfields-of-expertsimage-registrationmachine-learningmachine-learning-algorithmstensorflowvariational-network

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.