Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
507 stars 226 forks source link

cvCalcHist probably a problem of declaration #87

Closed HuguesDug closed 7 years ago

HuguesDug commented 7 years ago

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