Skip to main content

kzstack

kzstack is a package to stack images for many purposes.

There are many use cases, but it is especially important in long-exposure photography and astrophotography.

PyPI Downloads PyPI version

Author: Kevin Zhu

Features

  • ability to stack images
  • gamma correction accounted for
  • custom quality / denoising functions
  • image showing / saving
  • bias usage

Installation

To install kzstack, use pip: pip install kzstack.

However, many prefer to use a virtual environment.

macOS / Linux:

# make your desired directory
mkdir /path/to/your/directory
cd /path/to/your/directory

# setup the .venv (or whatever you want to name it)
pip install virtualenv
python3 -m venv .venv

# install kzstack
source .venv/bin/activate
pip install kzstack

deactivate # when you are completely done

Windows CMD:

# make your desired directory
mkdir C:path\to\your\directory
cd C:path\to\your\directory

# setup the .venv (or whatever you want to name it)
pip install virtualenv
python3 -m venv .venv

# install kzstack
.venv\Scripts\activate
pip install kzstack

deactivate # when you are completely done

Usage

PLEASE HAVE ALIGNED IMAGES!! STACKING WILL NOT TURN OUT GOOD OTHERWISE

First, import KZStack and all its functions (for denoising / quality).

Follow the provided stack_accumualte.ipynb for your data (change the path).

After, you may choose to use the average or input your own denoising / quality control functions.

These must be in the format of def func(image), without additional parameters. Other parameters (like a threshold) should not be args to the function.

License

The License is an MIT License found in the LICENSE file.

Metadata

Release files for kzstack 1.0.4

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

Source distribution (sdist)

Source distribution for kzstack 1.0.4
File Size Uploaded
kzstack-1.0.4.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kzstack 1.0.4
File Interpreter ABI Platform
kzstack-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / kzstack-1.0.4.tar.gz

Download URL kzstack-1.0.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
34dae88b2ae0da1d9da7666148dee2b659bad21cd3fc144f9df4ca8c330df617
BLAKE2b-256 checksum
How to use checksums
bc9b2c3dabc918e66a5a527f2fed93f7683b63d651f5e1b57b17222f08eeccf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release files / kzstack-1.0.4-py3-none-any.whl

Download URL kzstack-1.0.4-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
618dc35ff5bf5ce376b47b434727b509e2e71816f061907867e6d56f1e99f471
BLAKE2b-256 checksum
How to use checksums
fc85ebcfbd8350e88591320f22c9e836ede497f456b75a43a74e59d3f0875cab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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