Traditional Culture Encyclopedia - Photography and portraiture - How to extract and analyze the texture features of remote sensing images by using the gray * * * generation matrix in MATLAB?

How to extract and analyze the texture features of remote sensing images by using the gray * * * generation matrix in MATLAB?

1. Divide the image into blocks (texture can't exist at one point), and get the * * * generating matrix of each block with graycomatrix.

2.graycoprops is used to obtain the corresponding characteristics of the birth matrix, that is, the contrast-related energy uniformity.

For example:

g=graycoprops(graycomatrix(C{i,j},' offset ',[0d; -D D; -D 0; -D-D]));

Pg = [g. contrast g. correlation g. energy g. uniformity];