Skip to main content

A simple image processing toolkit for resizing, histogram transfer, and difference detection.

Project description

PixFlow: Image Processing Toolkit

PyPI version
License: MIT

Simple, lightweight, and easy-to-use image processing toolkit in Python.
Resize images, transfer histograms, and detect structural differences with just a few lines of code.


🖼️ Description

PixFlow is a Python package designed to simplify common image processing tasks, including:

  • Image resizing
  • Histogram matching between images
  • Structural difference detection (SSIM)
  • Image reading and saving
  • Plotting images and histograms

Built on top of scikit-image, matplotlib, and numpy.


📦 Features

  • 🔸 Image reading and saving — Supports formats like .jpg, .png, etc.
  • 🔸 Image resizing — Resizes by relative proportion.
  • 🔸 Histogram matching — Adjusts the tones of one image to match another.
  • 🔸 Structural difference detection (SSIM) — Detects and visualizes structural differences between images.
  • 🔸 Plot utilities:
    • Display single images
    • Compare multiple images side by side
    • Plot RGB histograms

🚀 Installation

Install from PyPI:

pip install pixflow

Or install locally from the repository:

git clone https://github.com/A-Chioquetta/pixflow.git
cd pixflow
pip install -e .

🔧 Dependencies

  • numpy
  • matplotlib
  • scikit-image

These will be automatically installed with pip install pixflow.
Or install manually with:

pip install -r requirements.txt

🛠️ Usage Example

from pixflow import (
    read_image, save_image,
    resize_image, transfer_histogram, find_difference,
    plot_image, plot_result, plot_histogram
)

# Read images
image1 = read_image('flor1.jpg')
image2 = read_image('flor2.jpg')
image3 = read_image('flor1_alterada.jpg')

# Resize
resized = resize_image(image1, proportion=0.5)
plot_image(resized, title="Resized Image")

# Histogram matching
matched = transfer_histogram(image1, image2)
plot_result(image1, image2, matched, title="Histogram Matching")

# Structural difference (SSIM)
difference = find_difference(image1, image3)
plot_result(image1, image3, difference, title="Structural Difference")

# Histogram plot
plot_histogram(image1)

# Save resized image
save_image(resized, 'resized_image.jpg')

🗂️ Project Structure

pixflow/
├── pixflow/
│   ├── processing/
│   ├── utils/
│   └── __init__.py
├── examples/
├── tests/
├── README.md
├── setup.py
├── LICENSE.txt
└── requirements.txt

📄 License

This project is licensed under the MIT License.


🔗 Links

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

pixflow-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

pixflow-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pixflow-0.1.1.tar.gz.

File metadata

  • Download URL: pixflow-0.1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pixflow-0.1.1.tar.gz
Algorithm Hash digest
SHA256 906a62c3f5893622ca6fefed07373271913ae1110d722775d82dbcb12e0d1ac6
MD5 f857a5010e81c02ad0b3936980dc3759
BLAKE2b-256 8526b94654f5dd42be5fb6c38c7736a79a0d95ae2f0666d0b6d5d58dfae857e8

See more details on using hashes here.

File details

Details for the file pixflow-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pixflow-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pixflow-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9260e2dfd89a53d12c929919768907f2d547ca8a5f527b277a06fce2cbc80870
MD5 4c2cf6efd963e018eed1e9e3db518ebe
BLAKE2b-256 8e0c67491815584f97aa31f05bf1f71584ca8265c61b318c2a0ab9126286dc38

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