Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pixel accuracy image segmentation python

import numpy as np
def mean_pixel_accuracy(pixel_correct, pixel_labeled):
    mean_pixel_accuracy = 1.0 * np.sum(pixel_correct) / (
            np.spacing(1) + np.sum(pixel_labeled))

    return mean_pixel_accuracy
Source by www.programcreek.com #
 
PREVIOUS NEXT
Tagged: #pixel #accuracy #image #segmentation #python
ADD COMMENT
Topic
Name
7+2 =