Fixed functions for hard and soft image classification