imgsmply

Automatically generate sampling grid for photos

https://github.com/jazzbuck/imgsmply

Science Score: 44.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
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Automatically generate sampling grid for photos

Basic Info
  • Host: GitHub
  • Owner: jazzbuck
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 15.6 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed over 4 years ago
Metadata Files
Readme License Citation

README.md

imgsmply

Pronounced "image sarm-plee", imgsmply is a program that looks through a directory and samples every .tiff in that directory. It samples from a grid overlay, and then draws its sampled cells. Finally, it produces a csv with the grid locations.

installation

To install requirements:

shell pip install -r requirements.txt

running

To run:

python python main.py

configuration options

input_path: location of directory of .tiff files

output_dir: location where outputs will be placed

pixels_per_mm: scale, not used

grid_number: [number of cells in y direction, number of cells in x direction] - this divides the image equally. If choosing the size of an individual cell use grid_size instead and comment this out.

grid_size: [size of cell in pixels y direction, size of cell in pixels x direction] - this creates a grid based on cells of the chosen size. If dividing the image into equal divisions use grid_number instead and comment this out.

number_of_samples: number of cells to sample (without replacement)

downsample_ratio: relative size of outlined version of input file

seed: random seed for reproducibility

how: either "simple" or "rowwise" at the moment. Simple creates a sample of size number_of_samples from the entire grid, whilst rowwise takes a sample of size number_of_samples from each row of the image.

Owner

  • Login: jazzbuck
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Newton"
  given-names: "Alexander"
title: "imgsmply - create sampling grid for photos"
version: 0.0.1
date-released: 2022-01-20
url: "https://github.com/jazzbuck/imgsmply"

GitHub Events

Total
Last Year

Dependencies

requirements.txt pypi
  • numpy *
  • pillow *
  • pyyaml *
  • scikit-image *