GithubHelp home page GithubHelp logo

Comments (5)

daviddmc avatar daviddmc commented on July 20, 2024 1

Yes, res_s is the in-plane resolution of the simulated images, so it should be greater than the resolution of the source volume and the reconstructed volume..

from nesvor.

daviddmc avatar daviddmc commented on July 20, 2024

Hi @Edenzzzz, did you try to reconstruct using the default parameters, like this?

nesvor reconstruct \
    --input-stacks /incoming/stack-1.nii.gz ... /incoming/stack-N.nii.gz \
    --thicknesses <thick-1> ... <thick-N> \
    --output-volume /outgoing/volume.nii.gz

The segmentation model (MONAIfbs) is used to remove the maternal tissue in the images and the model was trained on data with maternal tissue. Therefore, If you apply it to an image without background. It might remove some of the brain.

Did you check the simulated stack data? Could you share the simulated files with me?

from nesvor.

Edenzzzz avatar Edenzzzz commented on July 20, 2024

feta_stack3_gap=3.nii.gz
feta_stack2_gap=3.nii.gz
feta_stack1_gap=3.nii.gz

Thanks for your reply. Here are my stack files sliced from FeTA and I'm looking into the options you mentioned.

from nesvor.

daviddmc avatar daviddmc commented on July 20, 2024

Hi, you may try to save each stack as follows.

from nesvor.image import Stack

Stack(
    slices, 
    transformation=transform, 
    resolution_x=res_s, 
    resolution_y=res_s,
    thickness=s_thick,
    gap=gap,
).get_volume().save('stack.nii')

You may find more information about the Stack class here.

from nesvor.

Edenzzzz avatar Edenzzzz commented on July 20, 2024

Hi, you may try to save each stack as follows.

from nesvor.image import Stack

Stack(
    slices, 
    transformation=transform, 
    resolution_x=res_s, 
    resolution_y=res_s,
    thickness=s_thick,
    gap=gap,
).get_volume().save('stack.nii')

You may find more information about the Stack class here.

Thanks for the reply! The result now looks closer to the input.
However just to be sure, based on my code is res_s always 1.5 or the resolution for the source volume (0.5 mm for FeTA) and res is the desired output stack resolution (0.8 according to the paper)? I've found only setting res_s to 1.5 produces reasonable results.

This repo is well-structured and promising, but I think users who are not expert in MRI processing may benefit from a bit more instruction on processing stacks and specifying resolutions. Thanks for your contribution!

from nesvor.

Related Issues (17)

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.