UtilImageGetPercentageDifference(String, String, Byte) Method
Gets a value indicating the percentage of difference between two images.
Namespace: DevCase.Core.Media.GraphicsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static float GetPercentageDifference(
string imageFilepath1,
string imageFilepath2,
byte threshold
)
Public Shared Function GetPercentageDifference (
imageFilepath1 As String,
imageFilepath2 As String,
threshold As Byte
) As Single
Dim imageFilepath1 As String
Dim imageFilepath2 As String
Dim threshold As Byte
Dim returnValue As Single
returnValue = UtilImage.GetPercentageDifference(imageFilepath1,
imageFilepath2, threshold)
public:
static float GetPercentageDifference(
String^ imageFilepath1,
String^ imageFilepath2,
unsigned char threshold
)
static member GetPercentageDifference :
imageFilepath1 : string *
imageFilepath2 : string *
threshold : byte -> float32
No code example is currently available or this language may not be supported.
- imageFilepath1 String
-
The filepath of the first image to compare.
- imageFilepath2 String
-
The filepath of the second image to compare with imageFilepath1.
- threshold Byte
-
A value from 0 to 255 indicating how big a difference will be ignored.
Single
The resulting percentage difference value between the two specified images.
This is a code example.
No code example is currently available or this language may not be supported.
Dim img1 As Image = "C:\Image1.jpg"
Dim img2 As Image = "C:\Image2.jpg"
Dim threshold As Integer = 1
Dim percentDiff As String =
String.Format("Percentage Difference: {0:0.00}%",
GetPercentageDifference(img1, img2, threshold))
MessageBox.Show(percentDiff)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.