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.
Define "find the overlap". To get the overlap image:
overlapImage = binaryVolume1 & binaryVolume2; % To count number of pixels numOverlapPixels = nnz(overlapImage);