Giter VIP home page Giter VIP logo

Comments (5)

1999kevin avatar 1999kevin commented on June 4, 2024

Solve it by expanding 2D to 3D by adding one axis

from connected-components-3d.

william-silversmith avatar william-silversmith commented on June 4, 2024

I wasn't sure if anyone was going to use voxel connectivity graph in 3d let alone 2d. I'm glad you found it helpful! It was made for a very specific purpose I had in mind (and still have yet to do). I'll consider fixing it up in 2D.

from connected-components-3d.

william-silversmith avatar william-silversmith commented on June 4, 2024

Can you share an example of the code that broke? Nevermind, I think voxel_connectivity_graph should work, but I can see why contacts and region_graph are breaking in 2D.

from connected-components-3d.

1999kevin avatar 1999kevin commented on June 4, 2024

Can you share an example of the code that broke? Nevermind, I think voxel_connectivity_graph should work, but I can see why contacts and region_graph are breaking in 2D.

Thank you for your reply. A 2D input array with dimension (h,w) can produce such a bug. However, I make contacts work by expanding one axis using such a command: a = np.expand_dims(a, axis=2).

I develop an greedy algorigm to convert a segmentation map with a lot of labels to a map with specific number of labels, and I find your contacts is useful to find the neighbor for each label

from connected-components-3d.

william-silversmith avatar william-silversmith commented on June 4, 2024

The new version of cc3d should have this fixed. Let me know if you need more help!

from connected-components-3d.

Related Issues (20)

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.