Click here to Skip to main content
15,886,864 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
if(contourArea(contours[i]) > 500)
what does this function mean
Posted
Comments
Sergey Alexandrovich Kryukov 14-Feb-14 0:59am    
Why not asking OpenCV documentation?
—SA
Richard MacCutchan 14-Feb-14 4:55am    
The function checks some value and returns an integer.
The_Inventor 17-Feb-14 23:04pm    
Smoothing function.

1 solution

The function contourArea() returns the area (number of non-zero pixels) within the.
the condition
C++
(contourArea(contours[i]) > 500)

satisfies for outer contours which's area is larger than 500.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900