False Positive value

I have a binary image (background = 0) and to see how False positive works, I applied the dilation to the image (as a test image) and calculated the False Positive.


The left image is the reference and the right one is the test. I got the False positive value of 0. Shouldn’t be a value bigger than zero? I appreciate any comment. Thanks

That image should have many false positives, and no false negatives. If you reverse the reference/test image, than there should be many false negatives and no false positives. Double check what you are using as reference, and try it the other way around for sanity check.

1 Like

Right! that will fix the problem.
The document says: “LabelOverlapMeasuresImageFilte computes overlap measures between the set same set of labels of pixels of two images. Background is assumed to be 0”.
To wrap up, while for some metrics like Dice, it is not important how to pass the Test and Reference images, it can affect False positive/Negative results.