Description Usage Arguments Details Value Methods (by class) References See Also Examples
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.
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())
|
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. |
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.
A data frame with a single observation. The columns of the dataframe correspond to the calculated features.
matrix
: Calculate first order features of a numeric matrix
glcm
: Calculate texture features of a glcm matrix
glrlm
: Calculate texture features of a glrlm matrix
glszm
: Calculate texture features of a glszm matrix
mglszm
: Calculate texture features of an mglszm matrix
http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0102107
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.