Part of ants registration suite
LabelOverlapMeasures \,imageDimension sourceImage targetImage \/[\,outputCSVFormat=0\/]
If output format should be csv-compatible, set outputCSVFormat to 1.