| .selfsim | R Documentation |
Returns the self-similarity of an image matrix as the degree to which the slope of the log-log power spectrum falls with power according to the value of 2.
.selfsim(img, full, raw, logplot, resize = TRUE)
img |
A matrix of numeric values or integer values, preferably of square size. |
full |
logical. Should the full frequency range be used for interpolation? |
raw |
logical. Should the raw value of the regression slope be returned? |
logplot |
logical. Should the log-log power spectrum of the image be plotted? |
resize |
logical. Should an image that is not square be resized to a
square? If |
a list with the self-similarity (self_sim), the number of
spatial frequencies used for the regression (n_freq), and, if
logplot = TRUE, the values for the log-log plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.