SimilarityPrecision Enum
The samples that ImageSimilarity compares, whatever the pixel formats of the frames.
public enum SimilarityPrecisionFields
| Name | Value | Description |
|---|---|---|
EightBit | 0 | 8-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. |
SixteenBit | 1 | 16-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]. |
FloatingPoint | 2 | The 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. |