Changed soft threshold functors from class to struct since all members are public by default