diff --git a/tutorial/imgproc/brightness/tutorial-compare-auto-gamma.cpp b/tutorial/imgproc/brightness/tutorial-compare-auto-gamma.cpp index b9d9c98055..f25acdc3e8 100755 --- a/tutorial/imgproc/brightness/tutorial-compare-auto-gamma.cpp +++ b/tutorial/imgproc/brightness/tutorial-compare-auto-gamma.cpp @@ -49,8 +49,8 @@ void computeMeanMaxStdev(const vpImage &I, float &mean, float &max, float &st } void computeCanny(const vpImage &I, vpCannyEdgeDetection &cannyDetector, int gaussianKernelSize, - float gaussianStdev, int apertureSize, vpImageFilter::vpCannyFilteringAndGradientType filteringType, - vpImage &dIxy_uchar, vpImage &I_canny_visp) + float gaussianStdev, int apertureSize, vpImageFilter::vpCannyFilteringAndGradientType filteringType, + vpImage &dIxy_uchar, vpImage &I_canny_visp) { vpImage dIx, dIy, dIxy(I.getHeight(), I.getWidth()); vpImageFilter::computePartialDerivatives(I, dIx, dIy, true, true, true, gaussianKernelSize, gaussianStdev, @@ -304,8 +304,8 @@ int main(int argc, const char **argv) continue; } std::cout << VISP_NAMESPACE_NAME::vpGammaMethodToString(gamma_method) << ": mean=" - << vpMath::getMean(computation_times[gamma_idx+1]) << " ms ; median=" - << vpMath::getMedian(computation_times[gamma_idx+1]) << " ms" << std::endl; + << vpMath::getMean(computation_times[gamma_idx-1]) << " ms ; median=" + << vpMath::getMedian(computation_times[gamma_idx-1]) << " ms" << std::endl; } return EXIT_SUCCESS;