You declare cvCalcHist in two ways with 2 overloaded methods, one delcared with source PcvArr, the second one PIplImage. This is absolutly correct regarding opencv documentation (especially the one with PIplImage that is the official prototype).
However, this function as well accept PcvMat. The example given in documentation is given with PcMat.
However, if you try to call cvCalcHist with a PcvMat variable as image source, the compiler cannot handle it.
I had thie idea to delete the PIplimage prototype to keep only the PcvArr prototype (I think it would work but it does not). So you must add a third prototype with a PcvMat type as source.
Hello,
You declare cvCalcHist in two ways with 2 overloaded methods, one delcared with source PcvArr, the second one PIplImage. This is absolutly correct regarding opencv documentation (especially the one with PIplImage that is the official prototype).
However, this function as well accept PcvMat. The example given in documentation is given with PcMat.
However, if you try to call cvCalcHist with a PcvMat variable as image source, the compiler cannot handle it.
I had thie idea to delete the PIplimage prototype to keep only the PcvArr prototype (I think it would work but it does not). So you must add a third prototype with a PcvMat type as source.
Regards