I have two image regions (RGB). I want to find an overlapping score S is defined in equation below to measure the common area between the true region and the detected region. S =𝑛(𝑇 ∩ 𝐷)/𝑛(𝑇⋃𝐷)
Where T corresponds to the ground truth image and D is the segmented candidate region and n (.) is the number of pixels in a region.
how to do this in MATLAB? Please any one can help...