Re: squares.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: squares.c

jeyram jadenthradevan
i finally figure out entire coding.
sorry for asking such simple question

-jeyram

On Mon, Dec 22, 2008 at 5:12 AM, jeyram jadenthradevan
<[hidden email]>wrote:

> hi,
>
> i am novice to opencv.
> i am going through the squares.c  (which is provide in a opencv example).
>
> this is a part of that coding
>
>  // approximate contour with accuracy proportional
>                 // to the contour perimeter
>                 result = cvApproxPoly( contours, sizeof(CvContour),
> storage,
>                     CV_POLY_APPROX_DP, cvContourPerimeter(contours)*0.02, 0
> );
>                 // square contours should have 4 vertices after
> approximation
>                 // relatively large area (to filter out noisy contours)
>                 // and be convex.
>                 // Note: absolute value of an area is used because
>                 // area may be positive or negative - in accordance with
> the
>                 // contour orientation
>
>
> i am struggling to understand this line.
>
> result = cvApproxPoly( contours, sizeof(CvContour), storage,
>                     CV_POLY_APPROX_DP, cvContourPerimeter(contours)*0.02, 0
> );
>
> specially  cvContourPerimeter(contours)*0.02
>
> please some one tell me why is this? and how it's effecting to our
> goal(finding squares) ?
>
> thanks in advance.
>
> regards
> jeyram
>
>
>


[Non-text portions of this message have been removed]

Loading...