GithubHelp home page GithubHelp logo

Comments (1)

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

Hi PanosProv,

I'm very glad you are getting a lot of use out of cc3d!

I would start by comparing the centroids (also provided by stats), just because it's easier to manage than with the entire bounding box. Just look for the minimum distance centroids. This won't necessarily be a perfect metric, but it'll get you started. You can use scipy to perform a distance calculation between two collections of points.

https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.cdist.html

The real right way to make this comparison will likely depend on your data, but you can try checking that the number, size, and centroids of the regions are approximately the same. You can also compute e.g. voxel-wise F1 scores by comparing the number of false-positive, false-negative, true-positive, and true-negative voxels for each component. There may be other appropriate metrics you can use too, such as variation of information. However, voxel-wise scores can miss useful connectivity information (something my field deals with). So many years ago, we started using RAND scores, and then even more obscure metrics.

Unfortunately, cc3d only provides basic information and the rest is kind of up to you.

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.