1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Feature: Gray image comparison using histogram similarity with different metrics
Scenario Outline: Comparing a modified image to the original using histogram correlation
Given the images 'tests/data/pad_gaprao.png' and '<compare_image>' are loaded
When comparing the images using histogram 'correlation' as grayscale
Then the similarity score is <result>
Examples:
| compare_image | result |
| tests/data/pad_gaprao.png | 1.0 |
| tests/data/pad_gaprao_lighter.png | 0.4166225335699562 |
| tests/data/pad_gaprao_noise.png | -0.10678452274495025|
| tests/data/pad_gaprao_gray_inverted.png | 0.2529181079771206 |
Scenario Outline: Comparing a modified image to the original using histogram chisquare
Given the images 'tests/data/pad_gaprao.png' and '<compare_image>' are loaded
When comparing the images using histogram 'chisquare' as grayscale
Then the similarity score is <result>
Examples:
| compare_image | result |
| tests/data/pad_gaprao.png | 0.0 |
Scenario Outline: Comparing a modified image to the original using histogram intersection
Given the images 'tests/data/pad_gaprao.png' and '<compare_image>' are loaded
When comparing the images using histogram 'intersection' as grayscale
Then the similarity score is <result>
Examples:
| compare_image | result |
| tests/data/pad_gaprao.png | 480000.0 |
| tests/data/pad_gaprao_lighter.png | 391363.0 |
| tests/data/pad_gaprao_noise.png | 312255.0 |
| tests/data/pad_gaprao_gray_inverted.png | 364095.0 |
Scenario Outline: Comparing a modified image to the original using hellinger distance of histograms
Given the images 'tests/data/pad_gaprao.png' and '<compare_image>' are loaded
When comparing the images using histogram 'hellinger distance' as grayscale
Then the similarity score is <result>
Examples:
| compare_image | result |
| tests/data/pad_gaprao.png | 0.0 |
| tests/data/pad_gaprao_lighter.png | 0.21725162902677742 |
| tests/data/pad_gaprao_noise.png | 0.41048980725794537 |
| tests/data/pad_gaprao_gray_inverted.png | 0.22138675253275514 |