To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
Helo I have an segmented image , trying to find dice similarity index between the segmented image and ground truth.
How about this:
dice = 2*nnz(segIm&grndTruth)/(nnz(segIm) + nnz(grndTruth))
This expects segIm and grndTruth to be of the same size. They must also be numeric or logical.