pyhistology
Python package that uses colorspace-based segmentation to analyze histopathology images.
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.2%) to scientific vocabulary
Keywords
Repository
Python package that uses colorspace-based segmentation to analyze histopathology images.
Basic Info
- Host: GitHub
- Owner: ajinkya-kulkarni
- License: gpl-3.0
- Language: Python
- Default Branch: main
- Homepage: https://pyhistology.streamlit.app/
- Size: 73.1 MB
Statistics
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 0
- Releases: 3
Topics
Metadata Files
README.md
Color Space Segmentation using PyHistology
PyHistology is a package for color space segmentation of a user-uploaded 2D RGB image using the PyHistology package. It uses colorspace-based segmentation to analyze histopathology images. With the help of this package, you can easily calculate the amount of staining present in histopathology images. The application is also available as a Streamlit app and provides an interactive user interface.
Prerequisites
- Python 3.7 or higher
- Streamlit library
- numpy
- cv2
- PIL
- scikit-image
- matplotlib
Installation
- Install Python 3.7 or higher
- Install the required packages:
pip install streamlit numpy opencv-python-headless pillow scikit-image matplotlib
App Overview
A web application developed using Streamlit is available at https://pyhistology.streamlit.app/

Usage
- Clone the repository or download the source code
- Navigate to the project directory and run the following command:
streamlit run PyHistology_StreamlitApp.py - The application will open in your default web browser. Upload a 2D RGB image to be analyzed and refer to the Hue and Saturation plot to estimate the Hue and Saturation co-ordinates of the desired color to be extracted. Use the sliders to adjust the threshold value, Hue, Saturation, and Value parameters for the lower and upper bound of the desired color. Click on the "Analyze" button to initiate the segmentation process.
- The application will display the uploaded image, the HSV image, and the isolated pixels from the uploaded image. The isolated pixels are highlighted with a white color, and the percentage of the image area covered by the isolated pixels is displayed in the title of the output image.
License
This application is licensed under the GNU Affero General Public License, Version 3. See the LICENSE file for more information.
Owner
- Name: Ajinkya Kulkarni
- Login: ajinkya-kulkarni
- Kind: user
- Location: Göttingen
- Company: Max Planck Institute for Multidisciplinary Sciences
- Website: https://orcid.org/0000-0003-1423-3676
- Twitter: kulkajinkya
- Repositories: 5
- Profile: https://github.com/ajinkya-kulkarni
Image Data Scientist @mpi_nat working in Translational Oncology
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Kulkarni" given-names: "Ajinkya" orcid: "https://orcid.org/0000-0003-1423-3676" title: "PyHistology" version: 1.0.0 doi: 10.5281/zenodo.7581582 date-released: 2023-01-29 url: "https://github.com/ajinkya-kulkarni/PyHistology"
GitHub Events
Total
- Watch event: 1
- Fork event: 1
Last Year
- Watch event: 1
- Fork event: 1