feat: sequence mode (cross-frame warm-start) + ROI/seed CLI#1
Merged
Conversation
…ontrols Enables cuNCorr to track real high-strain DIC sequences, where the previous fixed-reference, per-frame path collapsed once cumulative displacement exceeded the coarse seed-search radius. Sequence mode (the main change): - DicEngine::process_sequence / NcorrSession::process_frame_sequence / reset_sequence, plus CLI --sequence. Each grid point initialises from the previous frame's converged warp (cross-frame seed propagation); only cold points pay a coarse search. Reuses the existing GPU icgn_batch_cuda and CPU IC-GN cores unchanged. process_frame stays stateless for parity-oracle use. - On real coating data this holds coverage across the full 141-frame sequence (t7 frame 140: 345 -> 34,254 valid points) and matches the CppNCorr CPU reference to ~0.01 px median, while running faster than the fixed path (warm-start skips the per-frame coarse search): ~1.6 min on an A100 vs ~36 min for the 32-thread CPU pipeline. Supporting CLI/engine controls: - --roi (apply the ROI mask; previously the CLI ignored it and even fed the mask in as a frame), --seed X,Y (manual CPU seed, x=col/y=row), and --seed-search N (configurable coarse-search radius; was hard-wired to 15). - SessionConfig gains seed_x/seed_y/seed_search (cuNCorr extensions). Build fix: - dic_engine.cpp: add missing <stdexcept> (relied on transitive include under GCC 8.5; fails on GCC >= 13). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
feat(engine): sequence mode (cross-frame warm-start) + ROI/seed CLI controls
Enables cuNCorr to track real high-strain DIC sequences, where the previous fixed-reference, per-frame path collapsed once cumulative displacement exceeded the coarse seed-search radius.
Sequence mode (the main change):
Supporting CLI/engine controls:
Build fix: