# Homogeneity on rectangular frames

$Homogeneity_{mean}= \frac{\sum\limits^{^8}_{i=1} \left\vert \mu_i-\mu_r \right\vert}{8}$
$Homogeneity_{max diff}= \max\limits^{^8}_{i=1} \left\vert \mu_i-\mu_r \right\vert$
• $\mu_i$: mean pixel value of the i-th detail ROI
• $\mu_r$: mean pixel value of the reference ROI