SimilarityPrecision Enum

The samples that ImageSimilarity compares, whatever the pixel formats of the frames.

public enum SimilarityPrecision

Fields

NameValueDescription
EightBit08-bit samples (peak 255), as Image.CloneAs converts the frames to Rgba32: 16-bit samples are rounded, and floating-point samples must be numbers in [0, 1]. This is the default.
SixteenBit116-bit samples (peak 65,535), as Image.CloneAs converts the frames to Rgba64: 8-bit samples are expanded exactly (v × 257), 16-bit samples are kept, and floating-point samples must be numbers in [0, 1].
FloatingPoint2The samples as fractions of their range, in double precision: v / 255 and v / 65,535 for the integer formats, the stored value for the floating-point formats, which can be outside [0, 1] (high dynamic range) but must be finite. The peak is ImageSimilarityOptions.DataRange.