verrannt / Input_sequences_mERG

Generate hexagonic image sequences used in multifocal electroretinography (mERG) recordings and retina modeling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Input sequences mERG

License: GPL v3

This python script generates a sequence (of custom length) of hexagonic inputs that can be used in multifocal electroretinography studies or computational modeling of the human eye.

Usage

Navigate to the directory the python script was put into. Then do:

python generate.py *mode* *radius* *size_x* *size_y* *output_directory* *output_size*
  • mode is the image type (e.g. RGB or 1 for 1-bit black-white, check Pillow Documentation for more info)
  • radius is the radius for each hexagon (all have the same)
  • size_x and size_y the dimensions of the image
  • output_directory is the directory the images will be saved in
  • output_size is the amount of images to generate

Showcase of images

This image is colored to better depict the rings of eccentricity

Colored Hexagon

This is how an image generated by the script looks that can be used as input

Black White Hexagon

About

Generate hexagonic image sequences used in multifocal electroretinography (mERG) recordings and retina modeling


Languages

Language:Python 100.0%