From 517fc5e2d2ed1b21530ae9e0c94fc52d07438dd3 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Wed, 6 Jun 2012 10:04:09 +0000 Subject: [PATCH] fixed typo in the tutorial code (thanks to Abid Rahman; ticket #2016) --- .../tutorial_code/Histograms_Matching/compareHist_Demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/cpp/tutorial_code/Histograms_Matching/compareHist_Demo.cpp b/samples/cpp/tutorial_code/Histograms_Matching/compareHist_Demo.cpp index 3bc60fefb..57ba3eac7 100644 --- a/samples/cpp/tutorial_code/Histograms_Matching/compareHist_Demo.cpp +++ b/samples/cpp/tutorial_code/Histograms_Matching/compareHist_Demo.cpp @@ -44,8 +44,8 @@ int main( int argc, char** argv ) int histSize[] = { h_bins, s_bins }; // hue varies from 0 to 256, saturation from 0 to 180 - float h_ranges[] = { 0, 256 }; - float s_ranges[] = { 0, 180 }; + float s_ranges[] = { 0, 256 }; + float h_ranges[] = { 0, 180 }; const float* ranges[] = { h_ranges, s_ranges };