How can I find the overlap between two binary volumes?
13 views (last 30 days)
Show older comments
I'm trying to compare two volumes consisting of 3D white shapes on a black background using matlab 2013 for windows.
1) I want to know how much they overlap over all. Correct me if I'm wrong but I think I can use the nnz function to do that.
2) I want to know where the volumes do not overlap. I have no clue how to accomplish this.
Any help is appreciated.
0 Comments
Accepted Answer
Image Analyst
on 19 Jul 2013
Define "find the overlap". To get the overlap image:
overlapImage = binaryVolume1 & binaryVolume2;
% To count number of pixels
numOverlapPixels = nnz(overlapImage);
4 Comments
More Answers (0)
See Also
Categories
Find more on 3-D Volumetric Image Processing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!