calc_features: Calculate texture and first order statistics.

Description Usage Arguments Details Value Methods (by class) References See Also Examples

Description

calc_features Calculates features of given texture matrix. If a simple matrix is given, will calculate first order features. If desired, user may input the features they wish to calculate for a given matrix type by passing them as a vector of strings to the features argument.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
calc_features(object, features = c())

## S4 method for signature 'matrix'
calc_features(object, features = c())

## S4 method for signature 'glcm'
calc_features(object, features = c())

## S4 method for signature 'glrlm'
calc_features(object, features = c())

## S4 method for signature 'glszm'
calc_features(object, features = c())

## S4 method for signature 'mglszm'
calc_features(object, features = c())

Arguments

object

An object of class "matrix", "glcm", "glrlm", "glszm", or "mglszm"

features

A vector containing the features the user wishes to calculate for a given matrix type.

Details

Lists of features available for each matrix type can be accessed through ?first_order_features ?glcm_features, ?glrlm_features, ?glszm_features.

Matrices of class mglszm accept features belonging to the glszm.

Value

A data frame with a single observation. The columns of the dataframe correspond to the calculated features.

Methods (by class)

References

http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0102107

See Also

glcm glrlm glszm mglszm

Examples

1
2
3
4
5
6
## Not run: 
calc_features(glcm(hallbey))
calc_features(glrlm(psf, n_grey=10))
calc_features(glcm(hallbey), features=c("glcm_mean", "glcm_variance", "pickles"))

## End(Not run)

radiomics documentation built on May 2, 2019, 3:36 p.m.