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

multi input/modality augmentation #31

Open
jizhang02 opened this issue Oct 12, 2023 · 1 comment
Open

multi input/modality augmentation #31

jizhang02 opened this issue Oct 12, 2023 · 1 comment

Comments

@jizhang02
Copy link

Hello,

I would like to ask if the input images are CT and PET, as well as mask, how should I use the code below? Thank you.

# with mask
data = {'image': img, 'mask': lbl}
aug_data = aug(**data)
img, lbl = aug_data['image'], aug_data['mask']
@SergioRodLla
Copy link

Hi!

I was about to try to do the same. If your images are in NIfTI format I would suggest to read them with nibabel, convert then to numpy arrays, and apply the function of your code. Any ideas are welcome.

Regards,
Sergio

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

No branches or pull requests

2 participants