dsa_reg
This package approximately computes the offsets needed to register DSA (Digital Slide Archive) item thumbnails.
Installations
Through pypi package
$ pip install dsa-reg
From Source
$ git clone git@github.com:mmasoud1/dsa_reg.git
Usage
After the package is installed, main operation can be performed as follows:
Register by Thumbnails
from dsa_reg import rigidRegByThumb
#param refItemId (string): ref image Id
#param targetItemId (string): target image Id
#param xBaseUrl (string): DSA Server URL e.g. https://styx.neurology.emory.edu/girder/api/v1
#param xAuthentication: boolean (0,1)
#param xEnhancement: boolean (0,1)
#return (Dict): homography metrix, psnr, x offset, y offset, horizontal scaleX, vertical scaleY
rigidRegByThumb(refItemId, targetItemId, xBaseUrl)
# e.g.
rigidRegByThumb(refItemId = "5e361da534679044bda81b16",
targetItemId = "5e361-SOME-OTHER-ID",
xBaseUrl = "https://styx.neurology.emory.edu/girder/api/v1")
# if using a private DSA collection, set xAuthentication = 1 to provide login credentials:
rigidRegByThumb(refItemId = "5e361da534679044bda81b16",
targetItemId = "5e361-SOME-OTHER-ID",
xBaseUrl = "https://styx.neurology.emory.edu/girder/api/v1",
xAuthentication = 1,
xEnhancement = 0)
# If a preprocessing is needed such that the tile needs enhancement before registration, set xEnhancement boolean value to 1
Register by Magnification
from dsa_reg import rigidRegByMagnification
rigidRegByMagnification(refItemId, targetItemId, xBaseUrl)
#e.g.
rigidRegByMagnification(refItemId = "5e361da534679044bda81b16",
targetItemId = "5e361-SOME-OTHER-ID",
xBaseUrl = "https://styx.neurology.emory.edu/girder/api/v1")
# magnification default value is 1
rigidRegByMagnification(refItemId, targetItemId, xBaseUrl, magnification, xAuthentication)
# magnification can be smaller value < = 1 for fast processing and wise resources use
rigidRegByMagnification(refItemId, targetItemId, xBaseUrl, magnification, xAuthentication, xEnhancement)
#e.g.
rigidRegByMagnification(refItemId = "5e361da534679044bda81b16",
targetItemId = "5e361-SOME-OTHER-ID",
xBaseUrl = "https://styx.neurology.emory.edu/girder/api/v1",
magnification = 0.5,
xAuthentication = 1,
xEnhancement = 1)
For contributing, issues and suggestions
Your contribution to enhance the registration technique is welcomed, please start by new issue or pull a request.
Next:
- This is a demo of initial and approximated rigid registration results, the target is to extend the functionality to whole slide images registration in fast, accurate mode.
Metadata
Release files for dsa-reg 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dsa_reg-1.1.4.tar.gz | 4.0 kB | Without provenance | Details for dsa_reg-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dsa_reg-1.1.4-py2-none-any.whl | Python 2 | none | any | Details for dsa_reg-1.1.4-py2-none-any.whl |
Total release size: 9.0 kB
Release files / dsa_reg-1.1.4.tar.gz
| Download URL | dsa_reg-1.1.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7ee325dbbd99f40a20dba040a92e6a3d73857611fea9bc6724cb3c39c183c92
|
|
BLAKE2b-256 checksum How to use checksums |
2e5add76ca76a68db0412b4cd61cd140fc9fc37eeb32bb432aab9f667f35e60d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.4.2 requests/2.19.1 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
|
Release files / dsa_reg-1.1.4-py2-none-any.whl
| Download URL | dsa_reg-1.1.4-py2-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
747995104647cc0f30c0381e58c2b78811428ff544f20dbe082e7fd156219b85
|
|
BLAKE2b-256 checksum How to use checksums |
3821bfd2cf001d4c21f346be4ecf4821a48bf0d0514f2c9fada0bac1dbdf61aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.4.2 requests/2.19.1 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15
|
Security for dsa-reg 1.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.