works at 100 percent when transforming region need to add settings for gaussian
added parameters in settings
combined the smoothed and unsmoothed methods into one function yay