Skip to main content

SDP3 CIRFLDSSvDL Documentation

This document describes the functions available through the SDP3 libraries for data augmentation and model training.

Translation

int translations(input_file, translation_amount) This method is used to create translated augmentations of a sinogram whose file path is passed through the input_file parameter. The amount translated is passed through the translation_amount parameter, note this amount must be an integer value. Upon successful completion, the method returns a value of 0, otherwise a value of 1 is returned to signify an error occurred. Given an error is not raised, the method performs vertical and horizontal translations in both positive and negative directions, saving the four new augmented sinograms in the same path as input_file.

Subresolution

int subresolution(file) This method is used to create upscaled augmentations by splicing the original sinogram whose file path is passed through the file parameter, and then upscaling these spliced images. The four augmented sinograms produced are saved in the same directory as file. The method returns a 0 upon successful completion, and returns a 1 otherwise.

Poisson Noise

poisson_noise(image_path, seed=None) This method applies poisson noise to the sinogram whose path is given through the image_path parameter, and the single augmented sinogram is saved in the same directory as image_path. The optional seed parameter allows the user to set a seed for the random number generation used, otherwise no seed is explicitly set. The method does not return anything.

Poisson Noise for Subresolution

subres_poisson_noise(image_path) This method combines the functionality of both the subresolution and poisson noise methods. It takes the sinogram whose path is passed through the image_path parameter, and splices it into four quarter-resolution sinograms, which are then all upscaled back up to the original’s resolution. Then, all four have poisson noise applied to them before being saved in the same directory as image_path. This method does not return anything.

Z-Axis Rotation

z_rotate(image_path, frames) This method produces an augmented sinogram that is rotated around the z-axis. The sinogram that is augmented has its path passed through the image_path parameter, and the number of frames the sinogram is rotated is passed through the frames parameter. Note that an integer must be passed through frames, and that for a 120-frame sinogram, 1 frame is equal to 3 degrees of rotation. The augmented sinogram is saved in the same directory as image_path. This method does not return anything.

Metadata

Release files for sdp3-generation 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for sdp3-generation 1.0.1
File Interpreter ABI Platform Actions
sdp3_generation-1.0.1-py3-none-any.whl Python 3 none any Details for sdp3_generation-1.0.1-py3-none-any.whl

Release files / sdp3_generation-1.0.1-py3-none-any.whl

Download URL sdp3_generation-1.0.1-py3-none-any.whl
Size 41.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a8139b43182d3c9861b8bd61fa2d7ae43f06bc7e51a083b39eb5b20d7275966
BLAKE2b-256 checksum
How to use checksums
fb8f52bfa752955d6fe44dca0f6f62ad52bb3e8f0c0f3d64b6286e49f5ceb3cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for sdp3-generation 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page