How to compare two 3D volumes using dice metric?
Afficher commentaires plus anciens
Hello everyone,
I am trying to compare two segmentations regarding their overlap.
Each Segmentation is defined by N 3D coordinates (2 examples attached)
1) I want to interpolate a volume for every segmentation.
2) I want to create a binary mask for each segmentation (everything inside the volume = 1, outside = 0).
3) I want to calculate the dice metric between volume A and volume B.
So far I have:
% Extract points for the current segmentation
points = ROIs(19).points; %ROIs contains n=30 segmentation,
% Remove duplicate points
unique_points = unique(points, 'rows');
% Calculate the volume of the convex hull
[k1, volume] = convhull(unique_points(:,1), unique_points(:,2), unique_points(:,3));
volumes(i) = volume;
% visualize segmentation volume
figure(1)
trisurf(k1,unique_points(:,1), unique_points(:,2), unique_points(:,3))
How would you create a 3D binary mask and compare two volumes using dice metric.
Many thanks in advance!
Max
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Triangulations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!