RegisteringImages


NameRegisteringImages JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/brianmanderson/RegisteringImages
SummaryTools for reading DICOM registration file along with two SimpleITK Images (probably from DICOM) and resampling the moving image. Major help from Bastien Rigaud in creation.
upload_time2024-03-06 02:40:05
maintainer
docs_urlNone
authorBrian Mark Anderson
requires_python
license
keywords
VCS
bugtrack_url
requirements SimpleITK numpy pydicom
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # This code provides functionality for registering a fixed and moving image based on the Dicom Registration file
# Installation guide
    pip install RegisteringImages
## Highly recommend to also have DicomRTTool installed
    pip install DicomRTTool
Example:

    from DicomRTTool import DicomReaderWriter
    from RegisterImages.WithDicomReg import register_images_with_dicom_reg, pydicom, sitk

    fixed_reader = DicomReaderWriter()
    moving_reader = DicomReaderWriter()

    registration_file = 'some_path_to_registration'
    dicom_registration = pydicom.read_file(registration_file)

    fixed_path = 'some_path_to_fixed_image'
    moving_path = 'some_path_to_moving_image'

    fixed_reader.down_folder(primary_path)
    moving_reader.down_folder(secondary_path)
    fixed_image = sitk.Cast(primary_reader.dicom_handle, sitk.sitkFloat32)
    moving_image = sitk.Cast(secondary_reader.dicom_handle, sitk.sitkFloat32)

    resampled_moving = register_images_with_reg(fixed_image=fixed_image, moving_image=moving_image, dicom_registration=dicom_registration)




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/brianmanderson/RegisteringImages",
    "name": "RegisteringImages",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Brian Mark Anderson",
    "author_email": "markba122@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cb/a6/02043761cec8fd7aba9627a83c2bb0eb1b4bb431315c7361a895bc7b98f8/RegisteringImages-0.1.3.tar.gz",
    "platform": null,
    "description": "# This code provides functionality for registering a fixed and moving image based on the Dicom Registration file\r\n# Installation guide\r\n    pip install RegisteringImages\r\n## Highly recommend to also have DicomRTTool installed\r\n    pip install DicomRTTool\r\nExample:\r\n\r\n    from DicomRTTool import DicomReaderWriter\r\n    from RegisterImages.WithDicomReg import register_images_with_dicom_reg, pydicom, sitk\r\n\r\n    fixed_reader = DicomReaderWriter()\r\n    moving_reader = DicomReaderWriter()\r\n\r\n    registration_file = 'some_path_to_registration'\r\n    dicom_registration = pydicom.read_file(registration_file)\r\n\r\n    fixed_path = 'some_path_to_fixed_image'\r\n    moving_path = 'some_path_to_moving_image'\r\n\r\n    fixed_reader.down_folder(primary_path)\r\n    moving_reader.down_folder(secondary_path)\r\n    fixed_image = sitk.Cast(primary_reader.dicom_handle, sitk.sitkFloat32)\r\n    moving_image = sitk.Cast(secondary_reader.dicom_handle, sitk.sitkFloat32)\r\n\r\n    resampled_moving = register_images_with_reg(fixed_image=fixed_image, moving_image=moving_image, dicom_registration=dicom_registration)\r\n\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Tools for reading DICOM registration file along with two SimpleITK Images (probably from DICOM) and resampling the moving image. Major help from Bastien Rigaud in creation.",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/brianmanderson/RegisteringImages"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b4f109f4eccec7193f558a1cf39037e8818ee881888d483bcace135a6f92a9ec",
                "md5": "6ae1699e5e19ebdac2ff0462323bc0f1",
                "sha256": "8ad20b80c5ef26053d052e877c8667e45d8299bc22d5e2f96ddc93a82341bac3"
            },
            "downloads": -1,
            "filename": "RegisteringImages-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6ae1699e5e19ebdac2ff0462323bc0f1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 15642,
            "upload_time": "2024-03-06T02:40:03",
            "upload_time_iso_8601": "2024-03-06T02:40:03.344160Z",
            "url": "https://files.pythonhosted.org/packages/b4/f1/09f4eccec7193f558a1cf39037e8818ee881888d483bcace135a6f92a9ec/RegisteringImages-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cba602043761cec8fd7aba9627a83c2bb0eb1b4bb431315c7361a895bc7b98f8",
                "md5": "3cf7bd29740d756a2a2f36e3517dc3c7",
                "sha256": "8bb622caf69d5749dc30680618abbdfd3348ee780e9a1fe7a182747d95dc482e"
            },
            "downloads": -1,
            "filename": "RegisteringImages-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "3cf7bd29740d756a2a2f36e3517dc3c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2992,
            "upload_time": "2024-03-06T02:40:05",
            "upload_time_iso_8601": "2024-03-06T02:40:05.559779Z",
            "url": "https://files.pythonhosted.org/packages/cb/a6/02043761cec8fd7aba9627a83c2bb0eb1b4bb431315c7361a895bc7b98f8/RegisteringImages-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-06 02:40:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "brianmanderson",
    "github_project": "RegisteringImages",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "SimpleITK",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "pydicom",
            "specs": []
        }
    ],
    "lcname": "registeringimages"
}
        
Elapsed time: 0.19306s