]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
fixed bug in calcHist sample code (ticket #127). thanks to flkleber
authorvp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Fri, 2 Apr 2010 21:45:44 +0000 (21:45 +0000)
committervp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Fri, 2 Apr 2010 21:45:44 +0000 (21:45 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@2976 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

opencv/doc/cv_histograms.tex

index 9ec9abc724d95b39219ce9cc470cb6a58c5840a0..8a06a55e7098ac91f2bfc3ad2f58670702b4ecfd 100644 (file)
@@ -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};