Skip to main content

A Python package for converting medical imaging files between different formats.

Project description

File Conversion Tool

This Python package provides tools for converting medical imaging files between different formats.

Installation

You can install FileConversionTool via pip:

pip install FileConversionTool
Note: It is recommended to use FileConversionTool on Python 3.7 and above.

Installation

To install the package, you can use pip:

pip install fileconversiontool

Usage

Call FileConversionTool directly from Python

NiFTI2ImageTool
This tool is used to convert a NIfTI format file into a series of images in PNG format.
from FileConversionTool import NifTI2ImageTool

# Usage example
NifTI2ImageTool(input_directory='input_directory_path', output_directory='output_directory_path')
DICOM2ImageTool

This tool is used to convert a series of DICOM format files into a series of images in PNG format.

from FileConversionTool import DICOM2ImageTool

# Usage example
DICOM2ImageTool(input_directory='input_directory_path', output_directory='output_directory_path', brightness=0.2)
NIFTI2DICOMTool

This tool is used to convert a series of NIfTI format files into a series of DICOM format files.

from FileConversionTool import NIFTI2DICOMTool

# Usage example
NIFTI2DICOMTool(input_directory='input_directory_path', output_directory='output_directory_path')
Image2NifTITool

This tool is used to convert a series of image files into a NIfTI format file.

from FileConversionTool import Image2NifTITool

# Usage example
Image2NifTITool(input_directory='input_directory_path', output_directory='output_directory_path', nifti_filename='output_nifti_filename.nii.gz')
DICOM2NifTITool

This tool is used to convert a series of DICOM format files into a NIfTI format file.

from FileConversionTool import DICOM2NifTITool

# Usage example
DICOM2NifTITool(input_directory='input_directory_path', output_directory='output_directory_path', nifti_filename='output_nifti_filename.nii.gz')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fileconversiontool-1.2.2.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fileconversiontool-1.2.2-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file fileconversiontool-1.2.2.tar.gz.

File metadata

  • Download URL: fileconversiontool-1.2.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.19

File hashes

Hashes for fileconversiontool-1.2.2.tar.gz
Algorithm Hash digest
SHA256 455973e5d8f9cc6a9faa2316a1c2cadc23a3de9ef9a68ce69caba96cd17e80c6
MD5 0e994260bc88d449d01ab37bea4a6e81
BLAKE2b-256 f341c30ee20edbe5361e28871c139deea8aba32fa80fad4cc8f1a4bc7cb7a86f

See more details on using hashes here.

File details

Details for the file fileconversiontool-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fileconversiontool-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d68fbb8cd6fc8252851503a1faa9585493887f4accbde27faaad71101c3fa15
MD5 e7d5c094708f63dc92839d8eae3dc88d
BLAKE2b-256 f1b53dc8d6b706c9d956b6aba58cec3bdab0ab985b5bd0a0600eebc40ab81414

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page