NormType Fields |
The NormType type exposes the following members.
| Name | Description | |
|---|---|---|
| C |
if arr2 is NULL, norm = ||arr1||_C = max_I abs(arr1(I));
if arr2 is not NULL, norm = ||arr1-arr2||_C = max_I abs(arr1(I)-arr2(I))
| |
| Diff |
It is used in combination with either CV_C, CV_L1 or CV_L2
| |
| DiffC |
Diff C
| |
| DiffL1 |
Diff L1
| |
| DiffL2 |
Diff L2
| |
| L1 |
if arr2 is NULL, norm = ||arr1||_L1 = sum_I abs(arr1(I));
if arr2 is not NULL, norm = ||arr1-arr2||_L1 = sum_I abs(arr1(I)-arr2(I))
| |
| L2 |
if arr2 is NULL, norm = ||arr1||_L2 = sqrt( sum_I arr1(I)^2);
if arr2 is not NULL, norm = ||arr1-arr2||_L2 = sqrt( sum_I (arr1(I)-arr2(I))^2 )
| |
| MinMax |
Min Max
| |
| NormMask |
Norm mask
| |
| Relative |
It is used in combination with either CV_C, CV_L1 or CV_L2
| |
| RelativeC |
norm = ||arr1-arr2||_C/||arr2||_C
| |
| RelativeL1 |
norm = ||arr1-arr2||_L1/||arr2||_L1
| |
| RelativeL2 |
norm = ||arr1-arr2||_L2/||arr2||_L2
| |
| value__ |