More sophisticated version of rolling ball using mathematical morphology concepts
rolling_ball_morphology(x, radius, smooth = TRUE)
A list with three components:
Numeric vector containing the estimated baseline values using morphological operations
Numeric vector containing the baseline-corrected signal (original - baseline)
Numeric vector containing the original input signal
Numeric vector containing the spectrum/signal values
Radius of the structuring ball
Apply additional smoothing (logical)