|
static void | ComputeImageDifferenceABS (const xiiImageView &imageA, const xiiImageView &imageB, xiiImage &out_difference) |
| Returns the image with the difference (absolute values) between ImageA and ImageB.
|
|
static void | ComputeImageDifferenceABSRelaxed (const xiiImageView &imageA, const xiiImageView &imageB, xiiImage &out_difference) |
| Same as ComputeImageDifferenceABS, but for every pixel in imageA, the minimum diff in imageB is searched in a 1-pixel radius, allowing pixels in B to shift slightly without incurring a difference.
|
|
static xiiUInt32 | ComputeMeanSquareError (const xiiImageView &differenceImage, xiiUInt8 uiBlockSize, xiiUInt32 uiOffsetx, xiiUInt32 uiOffsety) |
| Computes the mean square error for the block at (offsetx, offsety) to (offsetx + uiBlockSize, offsety + uiBlockSize). DifferenceImage is expected to be an image that represents the difference between two images.
|
|
static xiiUInt32 | ComputeMeanSquareError (const xiiImageView &differenceImage, xiiUInt8 uiBlockSize) |
| Computes the mean square error of DifferenceImage, by computing the MSE for blocks of uiBlockSize and returning the maximum MSE that was found.
|
|
static void | Normalize (xiiImage &ref_image) |
| Rescales pixel values to use the full value range by scaling from [min, max] to [0, 255]. Computes combined min/max for RGB and separate min/max for alpha.
|
|
static void | Normalize (xiiImage &ref_image, xiiUInt8 &ref_uiMinRgb, xiiUInt8 &ref_uiMaxRgb, xiiUInt8 &ref_uiMinAlpha, xiiUInt8 &ref_uiMaxAlpha) |
|
static void | ExtractAlphaChannel (const xiiImageView &inputImage, xiiImage &ref_outputImage) |
| Extracts the alpha channel from 8bpp 4 channel images into a 8bpp single channel image.
|
|
static void | CropImage (const xiiImageView &input, const xiiVec2I32 &vOffset, const xiiSizeU32 &newsize, xiiImage &ref_output) |
| Returns the sub-image of input that starts at offset and has the size newsize.
|
|
static void | RotateSubImage180 (xiiImage &ref_image, xiiUInt32 uiMipLevel=0, xiiUInt32 uiFace=0, xiiUInt32 uiArrayIndex=0) |
| rotates a sub image by 180 degrees in place. Only works with uncompressed images.
|
|
static xiiResult | Copy (const xiiImageView &srcImg, const xiiRectU32 &srcRect, xiiImage &ref_dstImg, const xiiVec3U32 &vDstOffset, xiiUInt32 uiDstMipLevel=0, xiiUInt32 uiDstFace=0, xiiUInt32 uiDstArrayIndex=0) |
| Copies the source image into the destination image at the specified location.
|
|
static xiiResult | ExtractLowerMipChain (const xiiImageView &src, xiiImage &ref_dst, xiiUInt32 uiNumMips) |
| Copies the lower uiNumMips data of a 2D image into another one.
|
|
static xiiResult | Scale (const xiiImageView &source, xiiImage &ref_target, xiiUInt32 uiWidth, xiiUInt32 uiHeight, const xiiImageFilter *pFilter=nullptr, xiiImageAddressMode::Enum addressModeU=xiiImageAddressMode::Clamp, xiiImageAddressMode::Enum addressModeV=xiiImageAddressMode::Clamp, const xiiColor &borderColor=xiiColor::Black) |
| Scales the image.
|
|
static xiiResult | Scale3D (const xiiImageView &source, xiiImage &ref_target, xiiUInt32 uiWidth, xiiUInt32 uiHeight, xiiUInt32 uiDepth, const xiiImageFilter *pFilter=nullptr, xiiImageAddressMode::Enum addressModeU=xiiImageAddressMode::Clamp, xiiImageAddressMode::Enum addressModeV=xiiImageAddressMode::Clamp, xiiImageAddressMode::Enum addressModeW=xiiImageAddressMode::Clamp, const xiiColor &borderColor=xiiColor::Black) |
| Scales the image.
|
|
static void | GenerateMipMaps (const xiiImageView &source, xiiImage &ref_target, const MipMapOptions &options) |
| Genererates the mip maps for the image. The input texture must be in xiiImageFormat::R32_G32_B32_A32_FLOAT.
|
|
static void | ReconstructNormalZ (xiiImage &ref_source) |
| Assumes that the Red and Green components of an image contain XY of an unit length normal and reconstructs the Z component into B.
|
|
static void | RenormalizeNormalMap (xiiImage &ref_image) |
| Renormalizes a normal map to unit length.
|
|
static void | AdjustRoughness (xiiImage &ref_roughnessMap, const xiiImageView &normalMap) |
| Adjust the roughness in lower mip levels so it maintains the same look from all distances.
|
|
static void | ChangeExposure (xiiImage &ref_image, float fBias) |
| Changes the exposure of an HDR image by 2^bias.
|
|
static xiiResult | CreateCubemapFromSingleFile (xiiImage &ref_dstImg, const xiiImageView &srcImg) |
| Creates a cubemap from srcImg and stores it in dstImg.
|
|
static xiiResult | CreateCubemapFrom6Files (xiiImage &ref_dstImg, const xiiImageView *pSourceImages) |
| Copies the 6 given source images to the faces of dstImg.
|
|
static xiiResult | CreateVolumeTextureFromSingleFile (xiiImage &ref_dstImg, const xiiImageView &srcImg) |
|
static xiiUInt32 | GetSampleIndex (xiiUInt32 uiNumTexels, xiiInt32 iIndex, xiiImageAddressMode::Enum addressMode, bool &out_bUseBorderColor) |
|
static xiiColor | NearestSample (const xiiImageView &image, xiiImageAddressMode::Enum addressMode, xiiVec2 vUv) |
| Samples the image at the given UV coordinates with nearest filtering.
|
|
static xiiColor | NearestSample (const xiiColor *pPixelPointer, xiiUInt32 uiWidth, xiiUInt32 uiHeight, xiiImageAddressMode::Enum addressMode, xiiVec2 vUv) |
| Samples the image at the given UV coordinates with nearest filtering.
|
|
static xiiColor | BilinearSample (const xiiImageView &image, xiiImageAddressMode::Enum addressMode, xiiVec2 vUv) |
| Samples the image at the given UV coordinates with bilinear filtering.
|
|
static xiiColor | BilinearSample (const xiiColor *pPixelPointer, xiiUInt32 uiWidth, xiiUInt32 uiHeight, xiiImageAddressMode::Enum addressMode, xiiVec2 vUv) |
| Samples the image at the given UV coordinates with bilinear filtering.
|
|
static xiiResult | CopyChannel (xiiImage &ref_dstImg, xiiUInt8 uiDstChannelIdx, const xiiImage &srcImg, xiiUInt8 uiSrcChannelIdx) |
| Copies channel 0, 1, 2 or 3 from srcImg into dstImg.
|
|
static void | EmbedImageData (xiiStringBuilder &out_sHtml, const xiiImage &image) |
| Embeds the image as Base64 encoded text into an HTML file.
|
|
static void | CreateImageDiffHtml (xiiStringBuilder &out_sHtml, xiiStringView sTitle, const xiiImage &referenceImgRgb, const xiiImage &referenceImgAlpha, const xiiImage &capturedImgRgb, const xiiImage &capturedImgAlpha, const xiiImage &diffImgRgb, const xiiImage &diffImgAlpha, xiiUInt32 uiError, xiiUInt32 uiThreshold, xiiUInt8 uiMinDiffRgb, xiiUInt8 uiMaxDiffRgb, xiiUInt8 uiMinDiffAlpha, xiiUInt8 uiMaxDiffAlpha) |
| Generates an HTML file containing the given images with mouse-over functionality to compare them.
|
|