Intensity Histogram Loss Functions