From: vp153 Date: Fri, 2 Apr 2010 21:45:44 +0000 (+0000) Subject: fixed bug in calcHist sample code (ticket #127). thanks to flkleber X-Git-Url: https://rtime.felk.cvut.cz/gitweb/opencv.git/commitdiff_plain/c0b49d3774954841b29ba0761f0a65f2964f5772 fixed bug in calcHist sample code (ticket #127). thanks to flkleber git-svn-id: https://code.ros.org/svn/opencv/trunk@2976 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08 --- diff --git a/opencv/doc/cv_histograms.tex b/opencv/doc/cv_histograms.tex index 9ec9abc7..8a06a55e 100644 --- a/opencv/doc/cv_histograms.tex +++ b/opencv/doc/cv_histograms.tex @@ -589,7 +589,7 @@ int main( int argc, char** argv ) // saturation varies from 0 (black-gray-white) to // 255 (pure spectrum color) float sranges[] = { 0, 256 }; - float* ranges[] = { hranges, sranges }; + const float* ranges[] = { hranges, sranges }; MatND hist; // we compute the histogram from the 0-th and 1-st channels int channels[] = {0, 1};