Learn R Programming

radiomics (version 0.1.3)

glszm: Gray level size zone matrix.

Description

glszm returns a gray level size zone matrix for a given matrix.

Usage

glszm(data, n_grey = 32, truncate = TRUE, ...)

Arguments

data

A numeric 2D matrix.

n_grey

an integer value, the number of grey levels the image should be quantized into.

truncate

Logical. Remove values for sizes that have no entries

...

Can be given verbose=FALSE to suppress output from the n_grey conversion.

Value

a matrix of dimension n_grey by region size, the GLSZM. The column names represent the region size, row names represent grey level, and the entries represent the count of how many times a given size of given grey level occur.

Details

Can be visualized using image(glszm(data)). For visualization info see ?image.radiomics

References

http://thibault.biz/Research/ThibaultMatrices/GLSZM/GLSZM.html

Examples

Run this code
# NOT RUN {
image(psf)
glszm(psf)

image(discretizeImage(psf, n_grey=5, verbose=F))
glszm(psf, n_grey=5, verbose=F) 
# }

Run the code above in your browser using DataLab