An interactive Python-based program for the quantification of selected features of two-dimensional (2D) images/patterns (in either JPG/JPEG, PNG, GIF, BMP, or baseline TIF/TIFF formats) by means of calculations based on the pixel intensities in this data, their histograms, and user-selected sections of those histograms.
Project description
1. Installation
The code for Histropy can be downloaded at https://github.com/SMenon-14/Histropy.
After downloading the ZIP file and unzipping it, the Histropy program can be run through the command line or terminal. Before the Histropy code can be run, the following packages need to be downloaded. Navigate to the command line or terminal and then run the following commands.
Windows
pip install matplotlib
pip install easygui
pip install tabulate
pip install numpy
Mac OS
pip3 install matplotlib
pip3 install easygui
pip3 install tabulate
pip3 install numpy
Windows
cd to the Histropy-main folder through the command line Run the command python Histropy.py
Mac OS
cd to the Histropy-main folder through the command line
Run the command python3 Histropy.py
This command will open up a file dialogue. When prompted, select an image to open in Histropy (in either JPG, PNG, GIF, BMP, or TIFF formats).
2. Basics
The scale can be switched between linear and log base 10 using the buttons in the Scale selection space.
The y-limit of the histogram can be set using the textbox in the Scale selection space.
The upper and lower bounds for the calculation range can be set either by clicking on the histogram itself (the dark blue line is the lower bound and the cyan line is the upper bound) or by entering values directly into the textboxes in the Intensity Range selection space.
This range can be used for segmentation and performing calculations over specific ranges (peaks) of the image. The histogram coordinates that the mouse is hovering over can be seen in the bottom right corner of the window (this can be used when trying to click on the histogram to set the range).
The calculations will automatically update as the Intensity Range is updated
Histograms can be overlaid by clicking the “Add Image” button in the Histogram Overlays selection space. This will bring up a file dialogue where the user can select another image to overlay (in either JPG, PNG, GIF, BMP, or TIFF formats).
Histogram overlays can be removed using the “Clear Overlays” button.
3. Histropy Buttons
Zoom
When the magnifying glass button is clicked, you can drag a rectangle over the histogram to zoom in on a portion of the histogram. Note that to use the Intensity Range bound-setting function, you must click off the zoom button first.
Axes Pan
When the axes button is clicked, you can slide the axes of the histogram to pan across it (right, left, up and down). Once again, to use the Intensity Range bound-setting function you must click off the zoom button first.
Undo, Redo, and Home
The Arrow buttons will undo or redo an action taken by the zoom and axes pan buttons. The Home button will fully reset the histogram to its original state.
Save
The floppy disk button will save a PNG image of the full Histropy workspace as it is when the corresponding button is clicked.
Note: The button with the sliders is obsolete
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 histropy-0.0.6.tar.gz.
File metadata
- Download URL: histropy-0.0.6.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72f4bf300d21220ef9adc4dbdd91c4e043b29eb9edec9b995a927a9b30a27f5d
|
|
| MD5 |
c8775d37bb8a42b9131b8759ac20c607
|
|
| BLAKE2b-256 |
7b1f43ada68a47ddc555bc42fce0ea5e0cf2ce643c77758932439df99095221e
|
File details
Details for the file histropy-0.0.6-py3-none-any.whl.
File metadata
- Download URL: histropy-0.0.6-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4443dc184cc2e3d34910abb6fa1268d941e4ea9e277cbfde7673c7a16f8d9d9e
|
|
| MD5 |
5fa75699a15e408e513f3ee68e891942
|
|
| BLAKE2b-256 |
2a9b4051cee3de35cfcd5c5233385a658af4e4e1f5c2ae6725a6fa395bce06cf
|