Skip to content

apokerce/HistogramComparer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Explanation

In this class implementation histogram of the image is calculated and compared with similar objects histogram to see the performance of histogram. Histograms are created based on counting the meaningful data such as how many red color is presented in the image.

Run

g++ main.cpp -o output -std=c++11 `pkg-config --cflags --libs opencv`
./output

Output

test1

Methods and Results (%):
   Correlation: 0.828934 Chi-square: 14.8917 Intersection: 3.79908 Bhattacharyya: 0.42884

test2

Methods and Results (%):
  Correlation: 0.773925 Chi-square: 6.77688 Intersection: 4.65409 Bhattacharyya: 0.345393

Observation

As it can be seen from results of the comparison between 10 kuruş and 10 kuruş is similar to comparison between 10 kuruş and 5 kuruş implying that it is not a good way to check the only the histogram for similarity.

Source

https://docs.opencv.org/3.4/d8/dbc/tutorial_histogram_calculation.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages