-
Notifications
You must be signed in to change notification settings - Fork 3
Enhancements for Becker & Hickl SPCM Support #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cqian89
wants to merge
26
commits into
Fluorescence-Tools:development
Choose a base branch
from
cqian89:bh-spc130-pr
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
6da25ce
feat: enable pixel, line and frame marker processing for BH_RECORD_TY…
cqian89 2cd8942
Add BH SPC preprocessing helpers and tests
cqian89 55804fd
feat: implement pixel marker-based binning support in CLSMImage
cqian89 1fadc21
fix(clsm): handle last pixel in marker binning and optimize memory
cqian89 2693ade
Add BH CLSM helper functions for Frame 1 adjustment
cqian89 a8c8542
Add integration tests for BH pixel marker-based binning and fix bug i…
cqian89 5973d23
style(clsm): revert whitespace changes from e993834, keep functional …
cqian89 9c84069
Add CLSM_BH_SPC130 to ReadingRoutine and fix SP8 comment typo
cqian89 7278d35
Implement read_bh_set_file() in TTTRHeader to parse BH .set files
cqian89 c410db8
Auto-find and parse .set files for BH_SPC130_CONTAINER in TTTR::read_…
cqian89 16594d7
feat(clsm): apply BH defaults in CLSMImage constructor
cqian89 8538756
fix: refine BH SPC-130 default setting logic in CLSMImage
cqian89 373eaf4
Implement BH SPC-130 dimension inference, frame 1 adjustment, and det…
cqian89 00b8237
Revert BH-specific truncation in remove_incomplete_frames and add und…
cqian89 50fce02
Remove deprecated bh_helpers.py and update BH .set file parsing
cqian89 f751139
style: reduce non-functional diffs
cqian89 88abb8a
style: remove trailing whitespace in SPC-130 reader
cqian89 a1ca5bd
style: align whitespace with upstream
cqian89 eecd6e7
fix(clsm): fix BH SPC-130 line marker defaults and unify in Python
cqian89 0e47aea
fix(bh): recover truncated recordings by appending synthetic markers
cqian89 df40b20
Revert "fix(bh): recover truncated recordings by appending synthetic …
cqian89 a188a4d
fix(clsm): recover truncated BH SPC-130 recordings at CLSMImage level
cqian89 0674bbf
Fix core logic and API issues in CLSMImage
cqian89 75a3773
Improve safety and robustness
cqian89 03f91e7
Cleanup and documentation
cqian89 a083807
fix(clsm): default n_pixel_per_line to 0 to enable auto-detection
cqian89 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -21,11 +21,17 @@ | |||||
| #include "Correlator.h" | ||||||
|
|
||||||
|
|
||||||
| /// Sentinel value indicating no stop marker (BH SPC-130 start-only mode) | ||||||
| /// When marker_line_stop equals this value, lines are paired start-to-start | ||||||
| constexpr int CLSM_MARKER_NO_STOP = 255; | ||||||
|
|
||||||
|
|
||||||
| /// Different types of distances between two accessible volumes | ||||||
| typedef enum{ | ||||||
| CLSM_DEFAULT, /// Default reading compute_icsroutine | ||||||
| CLSM_DEFAULT, /// Default reading routine | ||||||
| CLSM_SP5, /// Leica SP5 | ||||||
| CLSM_SP8 /// Leica SP5 | ||||||
| CLSM_SP8, /// Leica SP8 | ||||||
| CLSM_BH_SPC130 /// Becker & Hickl SPC-130 | ||||||
| } ReadingRoutine; | ||||||
|
|
||||||
|
|
||||||
|
|
@@ -83,7 +89,7 @@ static std::pair<int, int> find_clsm_start_stop( | |||||
| class CLSMSettings { | ||||||
| friend class CLSMImage; | ||||||
|
|
||||||
| protected: | ||||||
| public: | ||||||
|
||||||
| public: | |
| protected: |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment on line 29 says "Different types of distances between two accessible volumes" but this enum actually defines reading routines for different CLSM hardware types. This is misleading documentation that was already present, but since the enum is being modified, the comment should be corrected to accurately describe what ReadingRoutine represents.