glszm: Gray level size zone matrix.

Description Usage Arguments Details Value References Examples

View source: R/GLSZM.R

Description

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

Usage

1
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.

Details

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

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.

References

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

Examples

1
2
3
4
5
6
7
8
## Not run: 
image(psf)
glszm(psf)

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

## End(Not run)

joelcarlson/radiomics documentation built on May 19, 2019, 2:59 p.m.