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

Question about dicom import #513

Closed
zeng99-jiu opened this issue Jun 18, 2021 · 2 comments
Closed

Question about dicom import #513

zeng99-jiu opened this issue Jun 18, 2021 · 2 comments
Labels

Comments

@zeng99-jiu
Copy link

zeng99-jiu commented Jun 18, 2021

Hello, I have a question that when I try to import ct dicom file with its default resolution, the output should be a 512x512x99 matrix but a 511x511x99 matrix is generated instead. I have read the 'matRad_importDicomCt.m 'and 'matRad_interpDicomCtCube.m' and I think the ct cube's dimensions be changed in 'matRad_interpDicomCtCube.m'. But I don't know why it would be like this since I do not change the output resolution. Or is there any solution that can help to get the right dimension matrix?

@wahln
Copy link
Contributor

wahln commented Jun 18, 2021

Hi! This is indeed a bug, which recently also @ahmadnish encountered when importing DICOM via the graphical importer, which was due to rounding issues of the resolution in the GUI which triggered interpolation (see #503 and the fix #509). The fix was merged into the dev branch, so best way to work around this bug is the code from there!

@zeng99-jiu
Copy link
Author

Thanks for your quick reply! It helps me a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants