A web-based tool for analyzing and visualizing optical filter stacks, quantum efficiency curves, and illuminant spectra. Built with NiceGUI for Full-Spectrum photography analysis.
Credit: 21.09.2025 Refactor based on 01luna's fork. Contains Vegetation Color Preview feature she created
- Combine multiple filters and see the resulting transmission
- View and compare RGB channel responses
- Analyze how filters affect different cameras, film stocks, and light sources
- Film emulation targets: slide, color negative, and B&W film profiles
- Import your own filter, QE, film, or illuminant data (TSV format)
- Export analysis as PNG reports
- Advanced search: filter by manufacturer, color, or transmission at specific wavelengths
- Fast caching system for instant data loading
- Interactive Plotly charts with zoom and hover details
Note: the reflectance workflow (Reflectors shelf, Scene Preview card, surface
white-balance references) ships disabled in this build — gated behind
FEATURES["reflectance"] in program/models/constants.py; flip the flag to
restore it.
- Python 3.10 or newer
- pip
- Clone this repository (with submodules for filter data):
Or download the latest Release
git clone --recursive https://github.com/YourUsername/FS-Filter-Lab.git
- Install dependencies:
Or use
pip install -r program/requirements.txt
install.bat(Windows) to auto-create a virtual environment. - Run the app:
Or use
python program/app.py
start.bat(Windows). - Open your browser to http://127.0.0.1:8080 (opens automatically)
- Select filters from the Filters shelf (right drawer)
- Adjust stack counts if you want multiple instances of a filter (sidebar stack editor)
- Pick a receiver profile (camera QE or film stock) and an illuminant (light source)
- View results: transmission charts, RGB response curves, color metrics
- Export PNG reports for documentation
- Advanced Filter Search: Filter by manufacturer, hex color, or transmission at specific wavelengths with live sparkline previews — results update live, with a per-row detail dialog and Show-more paging
- My Filters Manager: Curate your own filter collection with an "Owned only" toggle (quick and advanced search both honor it)
- Channel Mixer: Apply custom RGB channel mixing matrices
- Import Data: Add your own filters, illuminants, camera QE curves, or film profiles from the import cards on the Data tab
- Automatic Cache: Cached data rebuilds silently whenever data files change — nothing to manage
FS-FilterLab/
├── install.bat # Windows installer script
├── start.bat # Windows launcher
├── README.md # This file
├── USAGE.md # Detailed usage guide
└── program/
├── app.py # NiceGUI application entry point
├── requirements.txt # Python dependencies
├── TECHNICAL.md # Developer technical overview
├── models/ # Data structures and constants
├── services/ # Business logic (calculations, presenter, data loading, state)
├── views/ # NiceGUI UI components
├── tests/ # unittest suite
├── data/ # Spectral data files (git submodule)
│ ├── filters_data/
│ ├── QE_data/
│ ├── film_data/
│ ├── illuminants/
│ └── reflectors/
├── cache/ # Auto-generated (gitignored)
└── output/ # Generated reports (gitignored)
- Missing dependencies: Delete
.venv/, then runinstall.batto reinstall - Data not loading: Delete the
program/cache/folder — it rebuilds automatically on the next start - Port already in use: Edit
app.pyand change the port inui.run(port=8080) - App still running after closing the tab: Stop the server with
Ctrl+Cin its console (or close the console window) - Submodule data missing: Run
git submodule update --init --recursive
MIT License. See program/LICENSE file.