Code Monkey home page Code Monkey logo

Comments (8)

ShixuanGu avatar ShixuanGu commented on June 18, 2024

sitk 2.0.2 should work, the error is caused by the wrong type of input. Please double-check the input lmage_array, and make sure the data type of its source array is int, i.e., input = input.astype(int), before excuting sitk.GetImageFromArray(input).

from ribseg.

1640477469 avatar 1640477469 commented on June 18, 2024

sitk 2.0.2 should work, the error is caused by the wrong type of input. Please double-check the input lmage_array, and make sure the data type of its source array is int, i.e., input = input.astype(int), before excuting sitk.GetImageFromArray(input).

HI,i have the same error,the type of its source array is int,how can i solve it?
image

from ribseg.

ShixuanGu avatar ShixuanGu commented on June 18, 2024

Thanks for your interest in our work.
I'm not sure why you may have this error, would you please send me one of your input files and the corresponding code? It's hard for me to debug without more info.
My email: [email protected]

from ribseg.

ShixuanGu avatar ShixuanGu commented on June 18, 2024

@1640477469 @wo-sour Fixed. The function sitk.BinaryDilate seems updated, changing the radius parameter from 3 to (3,3,3) should work, you can also try different kernel parameters for better results. Thanks for pointing out the bug.

from ribseg.

SCU-zly avatar SCU-zly commented on June 18, 2024

@1640477469 @wo-sour Fixed. The function sitk.BinaryDilate seems updated, changing the radius parameter from 3 to (3,3,3) should work, you can also try different kernel parameters for better results. Thanks for pointing out the bug.

Thanks again for your patience! The bug can also be fixed by using sitk 1.2.4.
However, when the rib segmentation is done, the result is not as good as yours: the rib surface is really uneven. I've tried a lot of methods to make the surface smooth, but the result is still not satisfactory. Could you give me some advice?

from ribseg.

ShixuanGu avatar ShixuanGu commented on June 18, 2024

from ribseg.

SCU-zly avatar SCU-zly commented on June 18, 2024

Try combination of morphological operations as the code commented. Repeated open and close operation should yield some nice results. This is a tricky part, a decent dice metric valve does not necessarily mean a visually satisfying result.

Thanks a lot! I'll try my best.

from ribseg.

BelieferQAQ avatar BelieferQAQ commented on June 18, 2024

I want to convert the point cloud data prediction file into a NII file. How can I modify the code? Thank you very much!

from ribseg.

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.