Mathematical Morphology

Mathematical Morphology

<p> 5. Image Segmentation</p><p>Mathematical morphology</p><p>Principle: an image is scanned with a structuring element on which a min/max operator is used. A structuring element B is a configuration of pixels (a matrix of pixels) on which is defined an origin. When B is applied on image I at pixel (x,y), a set of pixels values BI(x,y) is returned.</p><p>Erosion (where the structuring element ‘fit’ the image):  B (I)  min BI (x, y) </p><p>Dilation (where the structuring element ‘hit’ the image):  B (I)  max BI (x, y)</p><p>Opening:  B (I)   B ( B (I)) Closing:  B (I)   B ( B (I))</p><p>Some properties: c c c   B (I)   B (I ) with I  MAX (I)  I</p><p>  B (I)   B ( B (I))</p><p>  B (I)   B ( B (I))</p><p>Beucher gradient:  B (I)   B (I)   B (I)</p><p>White top-hat:  Bw (I)  I  B (I)</p><p>Black top-hat:  Bb (I)   B (I)  I Connected component analysis</p><p>To extract the blobs (set of connected pixels having value “1”) in a binary image. The input is therefore a binary image and the output is a list of connected components (blobs) with their properties.</p><p>Basic algorithm:</p><p> At each pixel location, three pixels are considered: o C: the current pixel o U: the pixel above C o L: the pixel on the left of C  obj: We also need a vector of pointers to the structure containing the information we want to extract about each connected component (cc). In the following example, only the size is assumed to be required, so obj is a vector of pointers to integers.  n: is the current component number. It is initialize to 1. For all pixel C, do: if (C==1) {</p><p> if (U==0 && L==0) { C=n; obj[n]= new cc; (*(obj[n]))++; n++; } else if (L!=0 && U==0) { C=L; (*(obj[L]))++; } else if ((L==0 && U!=0) || (obj[L]==obj[U])) { C=U; (*(obj[U]))++; } else if (L!=0 && U!=0) { tmp= *(obj[U]) + *(obj[L]); *(obj[U]) = *(obj[L])= tmp; ptr= obj[L]; for (int i=0; i<n; i++) { if (obj[i]==ptr) { obj[i]= obj[U]; } delete ptr; C=U; (*(obj[U]))++; } } Image moments</p><p>Centroid= (M10/M00 , M01/M00)</p><p>Central moment (translation invariant) :</p><p>Scale-invariant moments:</p><p>Hu moments (rotation invariant): Region Similarity segmentation</p><p>Objective: to segment the image into uniform regions. This is done using a uniformity predicate H(R)</p><p>Example 1: if (i,j) and (m,n) are two neighbors in R: H (R)  true if I(i, j)  I(m,n)  T</p><p>Example 2: if  R is the mean gray level of the pixels in R:</p><p>H (R)  true if I(i, j)   R  T</p><p>We want to minimize M such that the four following criteria are fulfilled: M - I  Rk k1</p><p>- Ri ∩ R j  </p><p>- H (Ri )  true</p><p>- H (Ri  R j )  false</p><p> Region growing:</p><p>Objective: use a seed pixel to grow a uniform connected region. A neighboring pixel is added based on the four criteria enumerated above. </p><p> Split and merge:</p><p>1. Subdivide the image into a certain number of subregions of same size. 2. Split each non-uniform region into 4 subregions 3. Merge any two adjacent regions if the combined region is uniform. </p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    7 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us