24 Aralık 2016 Cumartesi

OpenCv connectedComponents

Giriş
Açıklaması şöyle
Connected component labeling is a procedure for assigning a unique label to each object (a group of
connected components) in an image. These labels are the keys for any subsequent analysis procedure and are used for distinguishing and referencing the objects. This makes connected component labeling an indispensable part of nearly all applications in pattern recognition and computer
vision. For example, before a computer can detect or classify any object in an image, be it a car,
a person, or a lesion, groups of similar pixels are identified and labeled. Each group is generally
referred to as an object.

Identifying all pixels in a group enables one to compute the information required for subsequent processing, such as area size, height, width, and perimeter. Clearly, connected component labeling is one of the most fundamental algorithms of image analysis. In many cases, it is also one of the most time-consuming tasks among other pattern-recognition algorithms. For these reasons, connected component labeling continues to remain an active area of research.
API'nin açıklaması şöyle. İki tane algoritma sunuyor. CCL_WU 4 bağlantı varsa kullanılır. CCL_GRANA sadece 8 tane bağlantı varsa kullanılır.
       \  connectivity   4    |   8
        \                     |
type     \                    |
                              |
CCL_DEFAULT              Wu   |  Grana
CCL_WU                   Wu   |  Wu
CCL_GRANA                Wu   |  Grana

Hiç yorum yok:

Yorum Gönder