galino_gonzales_p-system-simulator

Python Implementation of a Single Celled P-system for the Guo-Hall Skeletonization Algorithm

https://github.com/koniiro/galino_gonzales_p-system-simulator

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 3 DOI reference(s) in README
  • Academic publication links
    Links to: springer.com
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Python Implementation of a Single Celled P-system for the Guo-Hall Skeletonization Algorithm

Basic Info
  • Host: GitHub
  • Owner: Koniiro
  • License: 0bsd
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 290 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created over 1 year ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.md

GalinoGonzalesP-system-simulator

This simulator is a Python implementation of the Single Cell P-system proposed by Radu Nicolescu in Parallel Thinning With Complex Objects and Actors in 2014. This model is one of three proposed membrane computing models of the Guo-Hall Skeletonization

Algorithm in the same paper.

The program primarily consists of three files:
1. SCP System G_H Implementation.py - Primary Implementation File 2. neighbor_gen_module.py - Calculates the coordinates of the neighbors of a specified cell 3. rule_module.py - Implementation of Rules described in Nicolescu 2014

Installation

It is recommended to use a virtual environment for installing dependencies. You can create a virtual environment using the following command. python python -m venv .venv source .venv/bin/activate This project needs numpy and pillow. You may install them using the following command: python pip install numpy pillow

Usage

To run the project, just run SCP_System-G_H-Implementation.py. It requires several arguments. python python SCP_System-G_H-Implementation.py <path> -t <threshold> <-n> - path - Path to the image to be skeletonized. Required - -t <threshold> - The threshold for binarization. Must be from 0 to 255. Optional, defauts to 127 - -n - Add this flag if the inverse of the image will be skeletonized. Optional.

How to setup experiments

  • Test Case 3 Get the image at https://drive.google.com/file/d/1FI0KbZYQwI6UBn-FpoeVZPv64TipWNzX/view?usp=sharing. You can run the skeletonization using the following command. python python SCP_System-G_H-Implementation.py <path to image> -t 100 # for normal python SCP_System-G_H-Implementation.py <path to image> -t 100 -n # for inversed

Multiprocessed Version

The multiprocess version of the project can be found at the multiProc4Segment branch of the repository.

Authors

References

  • Nicolescu, R. (2014). Parallel Thinning with Complex Objects and Actors. In: Gheorghe, M., Rozenberg, G., Salomaa, A., Sosík, P., Zandron, C. (eds) Membrane Computing. CMC 2014. Lecture Notes in Computer Science(), vol 8961. Springer, Cham. https://doi.org/10.1007/978-3-319-14370-5_21

Owner

  • Login: Koniiro
  • Kind: user
  • Location: Milkyway Galaxy
  • Company: University of the Philippines - Diliman

2nd Year BS CompSci student

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: ' Galino_Gonzales_P-system-simulator '
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: John Henry
    family-names: Galino
    email: jagalino@up.edu.ph
    affiliation: University of the Philippines Diliman
  - given-names: Isaiah Nikolo
    family-names: Gonzales
    email: iagonzales1@up.edu.ph
    affiliation: University of the Philippines Diliman
repository-code: >-
  https://github.com/Koniiro/Galino_Gonzales_P-system-simulator
license: 0BSD

GitHub Events

Total
  • Push event: 31
  • Public event: 1
  • Pull request review event: 1
  • Pull request event: 2
  • Create event: 4
Last Year
  • Push event: 31
  • Public event: 1
  • Pull request review event: 1
  • Pull request event: 2
  • Create event: 4