Haralick Textural Features: Difference between revisions

Line 33: Line 33:
For horizontal and vertical directions with resolution N, each row or column will have 2(N-1) neighbors. Thus in total, there will be <math>R=2 N_x(N_y-1)</math> or <math>R=2 N_y(N_x-1)</math> neighbors.<br>
For horizontal and vertical directions with resolution N, each row or column will have 2(N-1) neighbors. Thus in total, there will be <math>R=2 N_x(N_y-1)</math> or <math>R=2 N_y(N_x-1)</math> neighbors.<br>
For diagonal directions, there will be <math>R=2 (N_x - 1)(N_y-1)</math> neighbors.<br>
For diagonal directions, there will be <math>R=2 (N_x - 1)(N_y-1)</math> neighbors.<br>
Each co-occurance matrix <math>P</math> can be normalized by dividing each entry by R: <math> p= P/R</math>.
Each co-occurance matrix <math>P</math> can be normalized by dividing each entry by <math>R</math> to get <math> p= P/R</math>.


===Features===
===Features===