Gray Level Run Length Image Statistics

Compute image statistics from the gray level run length matrix.
1K Downloads
Updated 24 Aug 2015

View License

This matlab program computes several image statistics from a gray scale image using the gray level run length matrix, these are:
1. SHORT RUN EMPHASIS (SRE)
2. LONG RUN EMPHASIS(LRE)
3. GRAY LEVEL NON-UNIFORMITY (GLN)
4. RUN PERCENTAGE (RP)
5. RUN LENGTH NON-UNIFORMITY (RLN)
6. LOW GRAY LEVEL RUN EMPHASIS (LGRE)
7. HIGH GRAY LEVEL RUN EMPHASIS (HGRE)

The function also accepts a mask to enable the user to analyze only certain regions of the image. See the script for a complete describtion.

Example:

I = imread('cameraman.tif'); % read an image
imshow(I) % show the image
mask = ones(size(I(:,:,1))); % we want to analyze the whole image
quantize = 16; % quantize the image into 16 levels
[SRE,LRE,GLN,RP,RLN,LGRE,HGRE] = glrlm(I,quantize,mask) % compute the statistics

Cite As

Wout Oude Elferink (2024). Gray Level Run Length Image Statistics (https://www.mathworks.com/matlabcentral/fileexchange/52640-gray-level-run-length-image-statistics), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0