feat: 16-bit TIFF viewer with composable enhancement pipeline#1
Merged
Conversation
Agent-Logs-Url: https://github.com/ZBDat/TIFviewer-processor/sessions/ef995abf-5ed6-4141-895b-b4e52a095c80 Co-authored-by: ZBDat <58989732+ZBDat@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ZBDat
April 10, 2026 02:07
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a full-stack tool for viewing and interactively processing 16-bit grayscale TIFF images with a composable, reorderable enhancement pipeline.
Backend — FastAPI + Python (
backend/)POST /api/upload— reads 16-bit TIF viatifffile, stores asfloat32ndarray, returnsfile_idPOST /api/process— applies ordered enhancement pipeline, returns base64 PNG + 256-bin histogramGET /api/image/{file_id}/GET /api/histogram/{file_id}— individual render/histogram endpointsprocessors/histogram_eq.py—skimage.equalize_histon float-normalised 16-bit dataprocessors/local_contrast_norm.py—(x − μ_local) / (σ_local + ε)via Gaussian blur, rescaled to[0, 65535]Frontend — Vue 3 + Vite (
frontend/)EnhancementPanel— drag-to-reorder pipeline (vuedraggable), add from dropdown, remove with ×ParameterPanel/SliderRow— LCN exposes Sigma (0.30–32), Epsilon (log-scale,1e-4–0.5), Output Gain (0–4); changes debounced 300 ms before re-processingHistogram— Chart.js bar over full 16-bit range; tooltip:Value X / Distribution YImageViewer— scroll-to-zoom, drag-to-pan, fit-to-screenToolbar— file open, zoom controls, annotation mode placeholders/api→http://localhost:8000