2013-09-11 05:21:33 -0600 | commented answer | Displaying radius of a circle Another one more question, And what should I do if I have two circles in the image? It would be possible to show both radiu and discrimine it? |
2013-09-11 04:45:17 -0600 | commented answer | Displaying radius of a circle Thank you very much Moster!!! |
2013-09-11 04:11:03 -0600 | received badge | ● Editor (source) |
2013-09-11 04:10:26 -0600 | commented answer | Displaying radius of a circle I would like to show the radius in number, although I could show a line but also the number. I had tried with putText but in this function I only can show a constant string. I'll edit my post to upload my code. |
2013-09-11 04:02:54 -0600 | commented answer | Displaying radius of a circle I know I've alredy got the radius and the center to draw that circle, but I don't know how to display it in the image. |
2013-09-11 03:07:33 -0600 | asked a question | Displaying radius of a circle Hi everybody, I am learning OpenCV now and I have wrote a simple program which displays the bounding circle of a contour. Now I would like to know, how can I display in the same image the radius of that circle. I leave an image where you can see the bounding circle of a contour and where I would like to draw the radius of that circle. Any help would be apreciated. Thanks in advance. This is the code I've got: void CirculoMin(int, void* ) { Mat thresh_output; vector<vector<point> > contornos; vector<vec4i> jerarquia; for( uint i = 0; i < contornos.size(); i++ ){ } Mat dibujo = Mat::zeros( thresh_output.size(), CV_8UC3 ); for( uint i = 0; i< contornos.size(); i++ ){ }//for imshow( "Círculo mínimo", dibujo ); } |