Skip to content
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

Add "labelmap" segmentations #234

Merged
merged 26 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f0f615e
Work in progress
CPBridge Jun 12, 2023
b976b2d
Add dimension indexing logic and frame loop, add tests
CPBridge Jun 13, 2023
4036b6b
Fix bits allocated bug
CPBridge Jun 14, 2023
5132d61
Fix building luts
CPBridge Jun 14, 2023
d356d35
Use frame label to index for labelmaps without frame of reference
CPBridge Jun 14, 2023
ef3696c
fixes after rebase
CPBridge Jan 28, 2024
9e6c376
Remove trailing whitespace
CPBridge Jan 28, 2024
2c7d9b8
Add labelmap to tiled tests, fixes
CPBridge Jan 28, 2024
eca9902
Add labelmap tiled_full test
CPBridge Jan 28, 2024
1d442f3
Update to allow providing a Palette color LUT or using MONOCHROME2
CPBridge Jan 30, 2024
f2bdc40
Style fixes
CPBridge Jan 30, 2024
49372ea
Fix failing LUT test
CPBridge Jan 30, 2024
4f4db40
Add import skipping
CPBridge Jan 31, 2024
de5667f
Fixes for 16bit and palette color LUTs
CPBridge Feb 1, 2024
081533f
Test fix for palette color LUT
CPBridge Feb 1, 2024
5d77c95
Add padding to ensure even LUT
CPBridge Feb 1, 2024
8bf2a24
Merge branch 'master' into feature/labelmap
CPBridge Sep 30, 2024
acd1d8b
Linter fixes
CPBridge Sep 30, 2024
5256f8e
Add import skips in labelmap tests
CPBridge Sep 30, 2024
37e21c1
Add new labelmap segmentation UID
CPBridge Oct 4, 2024
764d19d
Add pixel padding value
CPBridge Oct 4, 2024
602c91b
Update for DICOM standard 2024c
CPBridge Oct 4, 2024
002355e
Added display color to segment description
CPBridge Oct 4, 2024
10e34eb
Add background segment description
CPBridge Oct 4, 2024
73b289e
Generalize segment number logic
CPBridge Oct 4, 2024
33d586f
Linter fixes
CPBridge Oct 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion bin/create_iods_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,15 @@ def _create_modules(directory):
except KeyError:
logger.error(f'keyword not found for attribute "{tag}"')
continue
try:
kw_path = [dictionary_keyword(t) for t in path]
except KeyError:
logger.error(f'keyword in path of attribute "{tag}" not found')
continue
mapping = {
'keyword': keyword,
'type': item['type'],
'path': [dictionary_keyword(t) for t in path],
'path': kw_path,
}
modules[item['moduleId']].append(mapping)
return modules
Expand Down
Loading