A simple image processing toolkit for resizing, histogram transfer, and difference detection.
Project description
PixFlow: Image Processing Package
🖼️ Descrição
Este é um pacote de processamento de imagens em Python, desenvolvido para simplificar tarefas comuns como:
- Redimensionamento
- Transferência de histograma entre imagens
- Detecção de diferenças estruturais (SSIM)
- Leitura e salvamento de imagens
- Plotagem de imagens e histogramas
O pacote é construído utilizando bibliotecas como scikit-image, matplotlib e numpy.
📦 Funcionalidades
- 🔸 Leitura e salvamento de imagens: Suporte para formatos como
.jpg,.pnge outros. - 🔸 Redimensionamento de imagem: Por proporção relativa.
- 🔸 Transferência de histograma: Ajusta os tons de uma imagem para combinar com outra.
- 🔸 Diferença estrutural (SSIM): Detecta e visualiza diferenças entre duas imagens.
- 🔸 Plotagem:
- Exibição de imagens
- Comparação de múltiplas imagens lado a lado
- Visualização de histogramas dos canais RGB
🚀 Instalação
Instale diretamente do PyPI:
pip install my-image-processing
Ou instale localmente clonando o repositório:
git clone https://github.com/A-Chioquetta/pixflow.git
cd seu-repositorio
pip install -e .
Dependências:
- Numpy
- matplotlib
- scikit-image
Instale com:
pip install -r requirements.txt
Como utilizar
Exemplo básico (contém na pasta)
from my_image_processing import (
read_image, save_image,
resize_image, transfer_histogram, find_difference,
plot_image, plot_result, plot_histogram
)
# Leitura
image1 = read_image('flor1.jpg')
image2 = read_image('flor2.jpg')
image3 = read_image('flor1_alterada.jpg')
# Redimensionamento
resized = resize_image(image1, proportion=0.5)
plot_image(resized, title="Imagem Redimensionada")
# Transferência de histograma
matched = transfer_histogram(image1, image2)
plot_result(image1, image2, matched, title="Transferência de Histograma")
# Diferença estrutural
difference = find_difference(image1, image3)
plot_result(image1, image3, difference, title="Diferença Estrutural")
# Histograma
plot_histogram(image1)
# Salvamento
save_image(resized, 'resized_image.jpg')
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pixflow-0.1.0.tar.gz.
File metadata
- Download URL: pixflow-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5938fec42616f10af0ac260808fbcd6c863cef76817a92e144e16b5277279c84
|
|
| MD5 |
48f4d1e9aaa4216c69405342ba9b6401
|
|
| BLAKE2b-256 |
c938a3b1f5560e129ee2ea4d4bfde54dd069d334116e379638ed22c23eafa71a
|
File details
Details for the file pixflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pixflow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05bc535c6e755bb2c0517b4c49d818e95f21adaf5670d0046e231e158fb315db
|
|
| MD5 |
14e4bc622a069870c83329922e9ae6b5
|
|
| BLAKE2b-256 |
f5005c9db0a77d913c6e93d1954b2ad67f426d5e164c70e246e506c74328e9f1
|