BiaHub Registration & Stabilization Refactoring #162
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.
BiaHub Registration & Stabilization Refactoring Plan
Issue: #89
Continue work after: #98
Current Problems Identified
estimate-registration
,optimize-registration
,register
,estimate-stabilization
,stabilize
)Proposed Architecture
1. Core Abstraction: Unified Transformation Engine
Create a shared
Transform
system that handles both registration and stabilization.2. Implementation Strategy
Phase 1: Create Core Transform Engine
TransformEngine
base class with shared algorithmsTransform
data structures for parameter representationPhase 2: Refactor Registration
TransformEngine
Estimator
,Optimizer
,Applicator
biahub registration
CLI commandsPhase 3: Refactor Stabilization
TransformEngine
biahub stabilization
CLI commandsPhase 4: Migration & Cleanup
5. Configuration Unification
Create a unified configuration schema that works for:
6. Benefits of This Refactoring
7. Backward Compatibility Strategy
8. Success Metrics
Implementation Priority
TransformEngine
and shared algorithmsThis refactoring will significantly improve code maintainability while providing a clearer, more powerful interface for users performing image registration and stabilization tasks.