Ask Your Question

AdhilIqbal's profile - activity

2020-01-14 02:03:40 -0600 received badge  Famous Question (source)
2019-04-05 06:21:16 -0600 received badge  Notable Question (source)
2018-11-05 10:11:24 -0600 received badge  Popular Question (source)
2017-11-26 06:36:48 -0600 asked a question How to find a spot inside circle

How to find a spot inside circle Hi I am trying to process image1 so that I can find the spot as shown in image2 image1

2017-11-26 06:29:19 -0600 commented answer How to find circles in an image

thanks I figured it out

2017-11-26 00:38:23 -0600 marked best answer How to find circles in an image

Hi in the below image how do you find and mark all the circles and identify the defect, my vs is vs2010 and opencv 2.4.10

image description

this is my code so far, but it doesnt detect anything:

static void findCircles2(const Mat& image)
{
    vector<Vec3f> circles;
    int thresh1 = 5;
    Mat pyr, timg, gray0(image.size(), CV_8U), gray;
    pyrDown(image, pyr, Size(image.cols/2, image.rows/2));
    pyrUp(pyr, timg, image.size());
    for( int c = 0; c < 3; c++ )
    {
        int ch[] = {c, 0};
        mixChannels(&timg, 1, &gray0, 1, ch, 1);
        Canny(gray0, gray, 0, thresh1, 5);
        //dilate(gray, gray, Mat(), Point(-1,-1));
        gray = gray0 >= (1)*255/N;
        gray = gray0 >= (2)*255/N;
        gray = gray0 >= (6)*255/N;
        namedWindow( "Hough Circle Transform Demo 1", CV_WINDOW_AUTOSIZE );
        imshow( "Hough Circle Transform Demo 1", gray );
        waitKey(0);

        HoughCircles( gray, circles, CV_HOUGH_GRADIENT, 1, gray.rows/8, 200, 100, 0, 0 );
        cout<<"size of circles: "<<circles.size()<<endl;
        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( gray, center, 3, Scalar(0,255,0), -1, 8, 0 );
            circle( gray, center, radius, Scalar(0,0,255), 3, 8, 0 );
        }

  /// Show your results
        namedWindow( "Hough Circle Transform Demo 2", CV_WINDOW_AUTOSIZE );
        imshow( "Hough Circle Transform Demo 2", gray );

         waitKey(0);

    }
}
2017-11-26 00:38:23 -0600 received badge  Scholar (source)
2017-11-25 22:56:53 -0600 commented answer How to find circles in an image

how did you setup the floodfill command? thanks by the way

2017-11-25 09:52:20 -0600 commented question How to find circles in an image

@sjhalayka sorry you had to resort to foul language, but thank you for pointing out that I hadn't said thank you. someti

2017-11-25 09:49:31 -0600 commented answer how to detect object and pattern and retrieve the angle of orientation

thanks guys for your help, do you have any tuts on how to build binaries for vs2010

2017-11-25 07:28:09 -0600 asked a question How to find a defect in an Image

How to find a defect in an Image Hi I am trying to use the reference image to find defects in the second image. how do I

2017-11-25 06:50:50 -0600 edited question How to find circles in an image

How to find circles in an image Hi in the below image how do you find and mark all the circles and identify the defect,

2017-11-25 06:49:30 -0600 received badge  Editor (source)
2017-11-25 06:49:30 -0600 edited question How to find circles in an image

How to find circles in an image Hi in the below image how do you find and mark all the circles and identify the defect,

2017-11-25 06:47:35 -0600 asked a question How to find circles in an image

How to find circles in an image Hi in the below image how do you find and mark all the circles and identify the defect,

2017-11-25 06:47:34 -0600 asked a question How to find circles in an image

How to find circles in an image Hi in the below image how do you find and mark all the circles and identify the defect,

2017-11-24 07:07:06 -0600 commented answer how to detect object and pattern and retrieve the angle of orientation

do you have any code, I can start on as i am new to opencv, I am sorry if you find such a request contemptuous... but pl

2017-11-24 07:02:35 -0600 commented answer how to detect object and pattern and retrieve the angle of orientation

hi, my version of OpenCV does not support opencv_world331.lib as its version is 2.4.10, I can only use this version as m

2017-11-23 09:22:36 -0600 asked a question how to detect object and pattern and retrieve the angle of orientation

how to detect object and pattern and retrieve the angle of orientation I am new to OpenCV I want to know how i can detec