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

resample function of ACDCLoaders() fail for resampling 4d data #3

Open
feiwu77777 opened this issue Oct 9, 2020 · 0 comments
Open

Comments

@feiwu77777
Copy link

The function resample_raw_image() for the ACDCLoaders class defines new_res = (1.37, 1.37).

It works for 3d data but when using 4d data it fails at this step:
"rescaled = transform.rescale(im, scale_vector, order=order, preserve_range=True, mode='constant')"

Because scale_vector = [x, x] and im.shape = (256,256,10). Making scale_vector = [x, x, 1] should solve this issue.

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

1 participant