Compare Histogram Activity
The Compare Histogram activity calculates the similarity between two images. It achieves this by analyzing their respective RGB color histograms, providing a quantitative measure of how alike the images are.
| Field | Description | Requirement |
|---|---|---|
| Image 1 | Specifies the full path, including filename and extension, of the first image for comparison. | Required |
| Image 2 | Specifies the full path, including filename and extension, of the second image for comparison. | Required |
| Result variable name | Defines the name of the variable to store the calculated similarity percentage. | Required |
Action Types & Examples
Similarity Percentage
- Format: digit (decimal)
- Example Result: 70.82
Implementation Examples
Field Setup - Image 1: C:RobustablueCar.png - Image 2: C:Robustalandscape.png
Execution Parameters - Result variable name: histogramValue
Technical Notes
The Compare Histogram activity computes image similarity by analyzing the statistical distribution of RGB color values (histograms) for the specified images. The resulting output is a floating-point number, expressed as a percentage, indicating the degree of similarity between the two images. A higher percentage value signifies a greater resemblance.