Analyze the flux of images based on wavelength and frequency
Project description
Light-Distribution-Analysis
Overview
Light-Distribution-Analysis is a Python package that enables you to analyze the flux of images based on their wavelength and frequency. By utilizing OpenCV, NumPy, and Matplotlib, this package provides a simple yet effective way to process and save images as well as calculate flux values.
Features
- Convert RGB images to wavelength and frequency representations.
- Calculate the flux of images in terms of both wavelength and frequency.
- Save processed images and flux values.
- Export flux data to a CSV file for further analysis.
Installation
To install Light-Distribution-Analysis, run the following command in your terminal:
pip install light-distribution-analysis
Usage
Comparing Flux of Two Images The package includes a function compare_flux that allows you to compare the flux of two images and obtain a similarity score.
Here's a simple example to demonstrate its usage:
1. Import the package:
import light_distribution_analysis as lda
2. Provide Paths to Images:
Provide the paths to the two images you want to compare.
image_path1 = "path/to/your/first/image.jpg"
image_path2 = "path/to/your/second/image.jpg"
3. Compare the Flux:
Use the compare_flux function to compare the flux of the two images.
similarity_score = lda.compare_flux(image_path1, image_path2)
Interpreting the Similarity Score:
A similarity score close to 1 indicates that the images are highly similar in terms of their flux, whereas a score close to 0 suggests they are dissimilar.
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
Built Distribution
Hashes for light-distribution-analysis-0.1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5ae97aeb5c8abf1c408112fdbe87f46e2da6da8d90751a158b0bf75d7129575 |
|
MD5 | 3e35626c2540bde6bf19c60747441585 |
|
BLAKE2b-256 | 2341462f46ab01394c4cc31d23b0bd7080e9dfbf21d82b9fe9ca175f35bffb69 |
Hashes for light_distribution_analysis-0.1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8875a36adb6b9bd9cd6db59571c108f6fc36ea2d770e93e980bac329e1786b6e |
|
MD5 | fd02f58cd60e5f41048b010468a6f072 |
|
BLAKE2b-256 | ae596d3c4c490e5697fae18d3aa1a5387ccfc7718a3a2009fe8d676b13cec859 |