From dda3b534ada60f44a451c136a434b7b3cd1d40ae Mon Sep 17 00:00:00 2001 From: Adrien BAK Date: Wed, 13 Nov 2013 16:21:09 +0900 Subject: [PATCH] fix indent --- .../ImgTrans/HoughCircle_Demo.cpp | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/samples/cpp/tutorial_code/ImgTrans/HoughCircle_Demo.cpp b/samples/cpp/tutorial_code/ImgTrans/HoughCircle_Demo.cpp index ee512414d..5cfcbd34b 100644 --- a/samples/cpp/tutorial_code/ImgTrans/HoughCircle_Demo.cpp +++ b/samples/cpp/tutorial_code/ImgTrans/HoughCircle_Demo.cpp @@ -25,42 +25,42 @@ namespace void HoughDetection(const Mat& src_gray, const Mat& src_display, int cannyThreshold, int accumulatorThreshold) { - // will hold the results of the detection - std::vector circles; - // runs the actual detection - HoughCircles( src_gray, circles, HOUGH_GRADIENT, 1, src_gray.rows/8, cannyThreshold, accumulatorThreshold, 0, 0 ); + // will hold the results of the detection + std::vector circles; + // runs the actual detection + HoughCircles( src_gray, circles, HOUGH_GRADIENT, 1, src_gray.rows/8, cannyThreshold, accumulatorThreshold, 0, 0 ); - // clone the colour, input image for displaying purposes - Mat display = src_display.clone(); - for( size_t i = 0; i < circles.size(); i++ ) - { + // clone the colour, input image for displaying purposes + Mat display = src_display.clone(); + for( size_t i = 0; i < circles.size(); i++ ) + { Point center(cvRound(circles[i][0]), cvRound(circles[i][1])); int radius = cvRound(circles[i][2]); // circle center circle( display, center, 3, Scalar(0,255,0), -1, 8, 0 ); // circle outline circle( display, center, radius, Scalar(0,0,255), 3, 8, 0 ); - } + } - // shows the results - imshow( windowName, display); + // shows the results + imshow( windowName, display); } } int main(int, char** argv) { - Mat src, src_gray; + Mat src, src_gray; // Read the image src = imread( argv[1], 1 ); - if( !src.data ) - { - std::cerr<<"Invalid input image\n"; - std::cout<<"Usage : tutorial_HoughCircle_Demo \n"; - return -1; - } + if( !src.data ) + { + std::cerr<<"Invalid input image\n"; + std::cout<<"Usage : tutorial_HoughCircle_Demo \n"; + return -1; + } // Convert it to gray cvtColor( src, src_gray, COLOR_BGR2GRAY );