Implementing transfer function for volume classification