ezEngine  Milestone 7
ImageUtils.h
1 #pragma once
2 
3 #include <CoreUtils/Image/Image.h>
4 #include <Foundation/Math/Size.h>
5 
6 class EZ_COREUTILS_DLL ezImageUtils
7 {
8 public:
9 
11  static void ComputeImageDifferenceABS(const ezImage& ImageA, const ezImage& ImageB, ezImage& out_Difference);
12 
14  static ezUInt32 ComputeMeanSquareError(const ezImage& DifferenceImage, ezUInt8 uiBlockSize, ezUInt32 offsetx, ezUInt32 offsety);
15 
17  static ezUInt32 ComputeMeanSquareError(const ezImage& DifferenceImage, ezUInt8 uiBlockSize);
18 
20  static void CropImage(const ezImage& input, const ezVec2I32& offset, const ezSizeU32& newsize, ezImage& output);
21 
22  static void ScaleDownHalf(const ezImage& Image, ezImage& out_Result);
23 };
24