|
This example shows how to find gray level co-occurrence matrix from pixel value input array.
There are 3 vis inside this example:1. glcm_main.vi will find the maximum pixel value to initialize gray level co-occurence matrix array (glcm). Then, it'll extract each pixel value inside array, together with right and below pixel value. The extracted values are used for determining which row and column inside glcm needs an increment.2. cell_value.vi extracts pixel value on right and below of current cell. If an index is invalid, it'll output -1.3. update_array.vi increments value in glcm according to its input row and column. If row or column is equal to -1 which means invalid index, it'll just pass input array to output array.
There are no comments on this document