Skip to content

Feature/code reorg#53

Merged
jarmoruuth merged 19 commits intomasterfrom
feature/code-reorg
Jan 6, 2026
Merged

Feature/code reorg#53
jarmoruuth merged 19 commits intomasterfrom
feature/code-reorg

Conversation

@jarmoruuth
Copy link
Owner

@jarmoruuth jarmoruuth commented Jan 6, 2026

Pull request overview
This is a major code reorganization PR that introduces standalone tools and improves the AutoIntegrate codebase structure. The changes include creating independent scripts for specific tasks, renaming parameters from "extra" to "enhancements" for clarity, and adding proper include guards throughout the codebase.

Key changes:

  • Created 4 new standalone scripts (Narrowband Combinations, Image Stretching, Image Enhancements, Gradient Correction)
  • Removed the VeraLux standalone script (now integrated into Image Stretching)
  • Major refactoring: renamed "extra" parameters to "enhancements" for better clarity
  • Added include guards to prevent multiple inclusions
  • Extracted GUI tools and flowchart functionality into separate modules

Merge branch 'master' into feature/code-reorg
A large rename so the code follows the new naming
Mostly the same as Enhancements tab in AutoIntegrate.,
Lots of code reorganization for that
- Enhancement option to decrease saturation
- Skip ACDNR if using AI noise reduction
It uses predefined mapping in AutoIntegrate.
- Save and load settings on standalone tools
- Reset to defaults on standalone tools
- Added sliders for some stretching tool settings
There are too many stretching options so made stretching sections collapsible.
Use MultiscaleAdaptiveStretch as default if the process is available.
- Support for simple test automation for standalone scripts
- Fixes
- A new standalone Gradient Correction script
- Removed Veralux script, it is included in Image Stretching script
- Fixes
- Debug checks
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This is a major code reorganization PR that introduces standalone tools and improves the AutoIntegrate codebase structure. The changes include creating independent scripts for specific tasks, renaming parameters from "extra" to "enhancements" for clarity, and adding proper include guards throughout the codebase.

Key changes:

  • Created 4 new standalone scripts (Narrowband Combinations, Image Stretching, Image Enhancements, Gradient Correction)
  • Removed the VeraLux standalone script (now integrated into Image Stretching)
  • Major refactoring: renamed "extra" parameters to "enhancements" for better clarity
  • Added include guards to prevent multiple inclusions
  • Extracted GUI tools and flowchart functionality into separate modules

Reviewed changes

Copilot reviewed 18 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
VeraLux_HyperMetric_Stretch.js Deleted standalone VeraLux script, functionality moved to Image Stretching
BasicPreviewControl.js Deleted custom preview control, using AutoIntegratePreviewControl instead
NarrowbandCombinations.js New standalone script for narrowband palette combinations
ImageStretching.js New standalone script for image stretching operations
ImageEnhancements.js New standalone script for image enhancements
GradientCorrection.js New standalone script for gradient correction
AutoIntegrateUtil.js Enhanced with parameter persistence, logging callbacks, and standalone initialization
AutoIntegrateGlobal.js Major refactoring with "extra" → "enhancements" rename, version bump to 1.82
AutoIntegrateVeraLuxHMS.js Fixed percentile calculation, improved adaptive anchor, added include guards
AutoIntegrateGUITools.js New file extracted from main GUI code for better modularity
AutoIntegrateFlowchart.js New file extracted flowchart visualization logic
AutoIntegrate.js Updated imports, simplified parameter reading, test infrastructure improvements
AutoIntegrateTutorial.js Copyright year update, added include guards
AutoIntegratePreview.js Added standalone mode support, include guards
AutoIntegrateMetricsVisualizer.js Moved constant definition, added include guards
AutoIntegrateLDD.js Added include guards
AutoIntegrateExclusionArea.js Added include guards
AutoIntegrateBanding.js Added include guards

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jarmoruuth jarmoruuth merged commit f3f3bb9 into master Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants