generate_param: Generate the input parameter of apply_to_image based on the...

Description Usage Arguments Value Note References See Also Examples

View source: R/Image_application.R

Description

Generate the input parameter of apply_to_image based on the built-in or user-defined centroids

Usage

1
2
3
generate_param(wl)

generate_param_ex(centroids, m = 1.36)

Arguments

wl

wavelength of subsetting

centroids

The centorids values required for fuzzy clustering on images. Its colnames should be converted to numeric wavelength. The format should be like Rrs_clusters.default.

m

The fuzzifier value of FCM. Default as 1.36.

Value

The return of generate_param or generate_param_ex is a list used for function apply_to_image.

Note

generate_param only support the cluster centroids proposed by Bi et al. (2019). However, the generate_param_ex could be used for user-defined centroids if you want.

References

See Also

Other Fuzzy cluster functions: FCM.new(), FuzzifierDetermination(), apply_FCM_m(), apply_to_image(), cal_memb(), plot_spec_from_df()

Examples

1
2
3
library(FCMm)
wl = c(413, 443, 490, 510, 560, 620, 665, 674, 681, 709, 754, 779, 865, 885)
res = generate_param(wl)

bishun945/FCMm documentation built on Oct. 15, 2021, 6:43 p.m.