Comments (1)
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)
- Applying Dust and largest_k dtype output option HOT 2
- dust sugnature HOT 1
- Massive memory Leak HOT 7
- 1D Array of 4 Elements Incorrect HOT 5
- Cannot find reference 'dust' in 'cc3d.py' HOT 2
- Additional metrics support HOT 2
- Does cc3d also work with memmory-mapped numpy arrays and array-like data? HOT 14
- cc3d.statistics["bounding_boxes"] are wrong HOT 1
- largest_k fails for transposed arrays HOT 6
- About the lastest_k function HOT 4
- Statistics output HOT 7
- IndexError is generated when using cc3d.connected_components HOT 4
- Label Statistics HOT 7
- Add support to release linux aarch64 wheels HOT 2
- Add Remove Dust Function HOT 2
- cc3d.statistics['bounding_boxes'] is contains floats instead of int as slice positions HOT 2
- voxel_connectivity_graph and contacts can not be applied in 2D label HOT 5
- Build Equivalence Table Two Z Slices at a Time
- cc3d.dust fails HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connected-components-3d.