Code Monkey home page Code Monkey logo

anonnifti's Introduction

AnonNifti

This project is a small primer to a full anonymization framework project. With this script, I am testing the feasibility of converting the DICOM series to a NIFTI file which carries no patient information.

This project runs on my Windows Server 2022 server.

Dependency

  • dcm2nixx, a command line tool to convert dicom files to nifti.

You need to download the exe file, and specify the path to the file in the configuration file.

Configuration file

The CONFIG file is used to specify the variables for the script. The example file is presented below.

[DEFAULT]
dcm2niix_path = ./dcm2niix/dcm2niix.exe
input_dir = ./testDCM/
output_dir = ./output/
list_path = tesList.csv

dcm2niix_path points to the dcm2niix.exe executable; input_dir is where all studies are located. output_dir is the place to generate the nifti files. The list_path variable points to the list of anonymization lookup table.

CSV file

A file that specifies the folder name containing the study and its anonymized name. The first line of the file (header) shall not be changed.

RealName,AnonName
FDG0123,T001
FDG2345,T002
FDG3456,T003

Rights and permissions

This is too simple, and I claim no copyright.

anonnifti's People

Contributors

mengxiangxi avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.