Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Graph program OpenCV
Title: RemoveBlackConnectedComponents Download
  • Category:
  • OpenCV
  • Tags:
  • [Text]
  • File Size:
  • 1kb
  • Update:
  • 2012-11-26
  • Downloads:
  • 0 Times
  • Uploaded by:
 Description: Using opencv binary image to remove the black connected components smaller. Program statement tmparea = fabs (cvContourArea (contour)) can get the current connected component of the area, when this area is less than the threshold when it filled with white. rect = cvBoundingRect (contour, 0) get is a box to live in the smallest rectangle connected domains, part of the black rectangle to fill with white, but this is the case, connected components 6 and 4 are filled into two connected components of white rectangle, which obviously does not meet our requirements, so we must determine if the connected domain is black or white Unicom domain connected domain, the approach is to test the center of the rectangle, if it is black, is that the black connected components connected domain, otherwise the domain of white Unicom, China Unicom for the black white fill field we deal with them, for the white Unicom domain remains unchanged.
 Downloaders recently: [More information of uploader ]
 To Search: bg detect opencv
File list (Check if you may need any files):
使用opencv去掉二值化图像中黑色面积较小的连通域.txt
    

CodeBus www.codebus.net