3
$\begingroup$

Is there any function in Mathematica that I can use for comparing the image histogram ? There is a built-in function in OpenCV cv2.compareHist for distance measures like chi-squared, correlation, intersection and Bhattacharya distance, but what about Mathematica?

$\endgroup$
  • $\begingroup$ How about starting with ImageHistogram? $\endgroup$ – bill s Apr 28 '18 at 4:02
  • $\begingroup$ I know. But the point of my question is how you compare ImageHistogram of 2 Images for classification tasks ? There is a build-in function in OpenCV for distance measure like Chi-sqr, Correlation, intersection and BHATTACHARYYA distance , but what's about Mathematica ? $\endgroup$ – Dat Pham Hoang Apr 28 '18 at 4:15
  • 6
    $\begingroup$ ImageDistance seems to implement these histogram comparisons: MutualInformationVariation, NormalizedMutualInformationVariation, DifferenceNormalizedEntropy, EarthMoverDistance $\endgroup$ – Niki Estner Apr 28 '18 at 7:32
5
$\begingroup$

Quoting Niki's comment:

ImageDistance seems to implement these histogram comparisons: "MutualInformationVariation", "NormalizedMutualInformationVariation", "DifferenceNormalizedEntropy", "EarthMoverDistance".

ImageDistance can be used to compare image histograms.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.