Ask Your Question

Revision history [back]

take a look at the documentation of calcHist

it says :

Parameters
    images  Source arrays. They all should have the same depth, CV_8U or CV_32F , and the same size. Each of them can have an arbitrary number of channels.

so your stromalHistogram is not suitable, maybe you could convert it to CV_32F