Skip to content

mgdaily/fits-histogram-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Histogram Playground

This is a client/server prototype for an image scaling tool that allows users to set the high and low points of an image and generate a RGB stack.

The frontend displays 3 images, taken in astronomical filters that map roughly to red/green/blue. There are high and low sliders to adjust the 16-bit value of the lowest (black) and highest (white) points, and scales and displays an 8 bit image accordingly.

Setup

  1. Install dependencies into virtual environment:
pip install -r requirements.txt
  1. Run a http server to host the static files
python -m http.server 8000
  1. In a separate terminal, run the flask backend
flask run
  1. Navigate to http://localhost:8000/frontend.html

  2. Have fun! Clicking "generate RGB image" will write a JPEG (rgb_image.jpg) to the current working directory. Adjustments will also be done on the fly as sliders are moved, but sometimes the backend has trouble keeping up with the rate of changes.

About

FITS Histogram Playground

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published