Skip to content

Ribfrac#65

Open
LeonMeon wants to merge 4 commits into
devfrom
ribfrac
Open

Ribfrac#65
LeonMeon wants to merge 4 commits into
devfrom
ribfrac

Conversation

@LeonMeon

@LeonMeon LeonMeon commented Oct 3, 2023

Copy link
Copy Markdown
Collaborator

added RibSeg annotations (seg - segmentation mask and cl - ribs centerlines) for RibFrac dataset + meta dict about RibSeg

Comment thread amid/ribfrac/dataset.py
Comment on lines +113 to +121
def seg(i, _base):
seg_path = _base / 'seg' / f'{i}-rib-seg.nii.gz'
ribs = nibabel.load(seg_path).get_fdata()
return ribs.astype(np.int16)

def cl(i, _base):
cl_path = _base / 'cl' / f'{i}.npz'
cl = np.load(cl_path)['cl']
return cl.astype(np.int16)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's use longer names, than just seg and cl. It's not clear at all what they mean

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