Then, it is possible to obtain fromconfusion matrix, the total accuracy
(overall accuracy) which represents a parameter that indicates the
number of pixels correctly classified (i.e. the sum of the cells in the diagonal matrix of confusion) divided by total number of analysed
pixels: