Git Product home page Git Product logo

Comments (10)

xtrigold avatar xtrigold commented on August 18, 2024

We don't have your mentioned issue. Do you show your image in Greyscale?

from alzheimer-project.

lcnnnn avatar lcnnnn commented on August 18, 2024

yes, the max value is 255 and the min is 0

from alzheimer-project.

lcnnnn avatar lcnnnn commented on August 18, 2024

Did you do the preprocessing of the input image? and is the size of the input 3D image D, H, W, 1?

from alzheimer-project.

xtrigold avatar xtrigold commented on August 18, 2024

Did you do the preprocessing of the input image? and is the size of the input 3D image D, H, W, 1?

I checked my script, I think the output should be DxHxWx1.

from alzheimer-project.

xtrigold avatar xtrigold commented on August 18, 2024

Did you do the preprocessing of the input image? and is the size of the input 3D image D, H, W, 1?

Try RGB to show the image.

from alzheimer-project.

xtrigold avatar xtrigold commented on August 18, 2024

Did you do the preprocessing of the input image? and is the size of the input 3D image D, H, W, 1?

No, the input should be 1, H, W, D. I used the pytroch default setting on the channel.

I found that the shape printed in ''ADNI2_MRI_AD_niiData.ipynb'' file is 110,110,110,1,and the code in ''Dynamic_image_Vgg11.ipynb'' file is just "im = np.load(full_path) im = get_dynamic_image(im) "; Is the shape of "im" 1,H,W,D?

What's your current output size?

from alzheimer-project.

lcnnnn avatar lcnnnn commented on August 18, 2024

Did you do the preprocessing of the input image? and is the size of the input 3D image D, H, W, 1?

No, the input should be 1, H, W, D. I used the pytroch default setting on the channel.

I found that the shape printed in ''ADNI2_MRI_AD_niiData.ipynb'' file is 110,110,110,1,and the code in ''Dynamic_image_Vgg11.ipynb'' file is just "im = np.load(full_path) im = get_dynamic_image(im) "; Is the shape of "im" 1,H,W,D?

What's your current output size?

Input 3D CT image is D,H,W,1 and output is H,W

from alzheimer-project.

xtrigold avatar xtrigold commented on August 18, 2024

Did you do the preprocessing of the input image? and is the size of the input 3D image D, H, W, 1?

No, the input should be 1, H, W, D. I used the pytroch default setting on the channel.

I found that the shape printed in ''ADNI2_MRI_AD_niiData.ipynb'' file is 110,110,110,1,and the code in ''Dynamic_image_Vgg11.ipynb'' file is just "im = np.load(full_path) im = get_dynamic_image(im) "; Is the shape of "im" 1,H,W,D?

What's your current output size?

Input 3D CT image is D,H,W,1 and output is H,W

OK, I think the input is correct, try this
im = np.expand_dims(im,0)
im = np.concatenate([im,im,im], 0)
I extended the image to a RGB-style image (3, H, W). You need to transpose (H, W, 3) then imshow it. Let me know does it work.

from alzheimer-project.

xtrigold avatar xtrigold commented on August 18, 2024

Did you do the preprocessing of the input image? and is the size of the input 3D image D, H, W, 1?

No, the input should be 1, H, W, D. I used the pytroch default setting on the channel.

I found that the shape printed in ''ADNI2_MRI_AD_niiData.ipynb'' file is 110,110,110,1,and the code in ''Dynamic_image_Vgg11.ipynb'' file is just "im = np.load(full_path) im = get_dynamic_image(im) "; Is the shape of "im" 1,H,W,D?

What's your current output size?

Input 3D CT image is D,H,W,1 and output is H,W

OK, I think the input is correct, try this im = np.expand_dims(im,0) im = np.concatenate([im,im,im], 0) I extended the image to a RGB-style image (3, H, W). You need to transpose (H, W, 3) then imshow it. Let me know does it work.

After the dynamic image processing, then condut the aformentioned operation.

from alzheimer-project.

lcnnnn avatar lcnnnn commented on August 18, 2024

Did you do the preprocessing of the input image? and is the size of the input 3D image D, H, W, 1?

No, the input should be 1, H, W, D. I used the pytroch default setting on the channel.

I found that the shape printed in ''ADNI2_MRI_AD_niiData.ipynb'' file is 110,110,110,1,and the code in ''Dynamic_image_Vgg11.ipynb'' file is just "im = np.load(full_path) im = get_dynamic_image(im) "; Is the shape of "im" 1,H,W,D?

What's your current output size?

Input 3D CT image is D,H,W,1 and output is H,W

OK, I think the input is correct, try this im = np.expand_dims(im,0) im = np.concatenate([im,im,im], 0) I extended the image to a RGB-style image (3, H, W). You need to transpose (H, W, 3) then imshow it. Let me know does it work.

I turned the grayscale map into an RGB image, but it seems that the result has not changed. And I check the value again, founding that the background value is 135, and the value 0 is in other location. Maybe is the reason for CT image, Thank you very much for your guidance.

from alzheimer-project.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.