A normal image(from nature) have a smooth transition.Then we can use ImageCooccurrence
to get a matrix(whose sum of all the elements is 1) like
img = ExampleData[{"TestImage", "Lena"}];
MatrixPlot[mat=ImageCooccurrence[img, 100]]
As we see,the mat
have a good degree of concentration on the diagonal.But if you just use img = RandomImage[]
to get a random image.you cannot get such result.It will be
My question is how to measure the degree of concentration of a matrix?
For example,this matrix: $$\left( \begin{array}{ccc} 0.5 & 0 & 0 \\ 0 & 0.2 & 0 \\ 0 & 0 & 0.3 \\ \end{array} \right)$$ I think its have a degree of concentration is 1.And this matrix: $$\left( \begin{array}{ccc} 0 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \\ \end{array} \right)$$ I think its have a degree of concentration on the diagonal is 0. Is a good solution can do this?