pyhistology

Python package that uses colorspace-based segmentation to analyze histopathology images.

https://github.com/ajinkya-kulkarni/pyhistology

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

collagen digital-pathology histology-images image-processing image-segmentation python segmentation
Last synced: 6 months ago · JSON representation ·

Repository

Python package that uses colorspace-based segmentation to analyze histopathology images.

Basic Info
Statistics
  • Stars: 13
  • Watchers: 2
  • Forks: 3
  • Open Issues: 0
  • Releases: 3
Topics
collagen digital-pathology histology-images image-processing image-segmentation python segmentation
Created about 3 years ago · Last pushed about 2 years ago
Metadata Files
Readme License Citation

README.md

Streamlit App License: GPL v3 DOI GitHub commit activity GitHub release (latest by date)

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

  1. Install Python 3.7 or higher
  2. 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/

alt text alt text

Usage

  1. Clone the repository or download the source code
  2. Navigate to the project directory and run the following command: streamlit run PyHistology_StreamlitApp.py
  3. 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.
  4. 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

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