Where tp is true positive, fp is false positive and fn is false negative value. True positive are the pixels that lie on the boundary and are correctly identified as the boundary pixels by the algorithm. False positive are the pixels that are not the boundary pixels but lie on the contour. False negative are the pixels that lie on the boundary but are not identified by the algorithm and are not the part of the contour.