Function to perform MNF

mnf(X, coordPix = NULL, retx = TRUE)

Arguments

X

numeric. matrix to apply MNF on

coordPix

dataframe to compute noise, cf get_random_subset_from_image

retx

boolean.

Value

results of MNF applied on matrix