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 the data dimension #41

Open
xhs400 opened this issue Dec 15, 2019 · 0 comments
Open

Question about the data dimension #41

xhs400 opened this issue Dec 15, 2019 · 0 comments

Comments

@xhs400
Copy link

xhs400 commented Dec 15, 2019

Thanks for providing the code and this is really a great work.

I have one question about the data dimension in the code, which confuses me.
The get_data function in nibabel exports the data in [x, y, z] and from your code it looks like the depth corresponds to the z-dimension. However, in the resize function in the dataloader brains18.py, it maps the depth to the first element of the data.shape.

def __resize_data__(self, data):
    """
    Resize the data to the input size
    """ 
    [depth, height, width] = data.shape
    scale = [self.input_D*1.0/depth, self.input_H*1.0/height, self.input_W*1.0/width]  

Can you clarify a little bit here, or am I mis-understand something?

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