-
Notifications
You must be signed in to change notification settings - Fork 240
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
Histogram standardization changes image shape after transformation #933
Labels
bug
Something isn't working
Comments
Thanks, @kondratevakate. This is very strange. Could you please share some data and code to reproduce? |
Image after histogram standartization: Attaching files and landmarks |
Any updates on that? I am getting the same problem in other datasets - it change the shape after the transformation. |
Can you please share a code snippet I can run to reproduce the issue? I can't reproduce with what you've shared: In [1]: import torch
In [2]: landmarks = torch.load('gbm_dict.pth')
In [4]: import torchio as tio
In [5]: subject = tio.Subject(ct1=tio.ScalarImage('CT1_orig.nii.gz'))
In [6]: transform = tio.HistogramStandardization(landmarks)
In [7]: subject.shape
Out[7]: (1, 240, 240, 168)
In [8]: transform(subject).shape
Out[8]: (1, 240, 240, 168) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Bug summary
So I am learning landmarks and applyiong for the dataset TCIA GBM (102 subjects, T1, T2,FLAIR and CT1)
And on the one subject TCGA-06-0142 for all images after transformation I will get different image shape. Which was not planned :)
Original:
Actual outcome
Outputs image with cropped size
Error messages
Expected outcome
Will output the image of original space
System info
No response
The text was updated successfully, but these errors were encountered: