1 / 71

Extração de Características

Extração de Características. cap 4 – Trucco e Verri. Características de uma imagem. Globais : histograma, conteúdo de freqüências, etc... Locais : regiões com determinada propriedade, arestas, cantos, curvas, etc. Arestas e cantos. Locais de mudanças significativas na intensidade da imagem.

Télécharger la présentation

Extração de Características

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Extração de Características cap 4 – Trucco e Verri

  2. Características de uma imagem • Globais: histograma, conteúdo de freqüências, etc... • Locais: regiões com determinada propriedade, arestas, cantos, curvas, etc...

  3. Arestas e cantos • Locais de mudanças significativas na intensidade da imagem

  4. Edgedels = edge elements

  5. Tipos de arestas degrau(step) rampa(ramp) cume(roof) impulso(spike)

  6. Gráfico sem e com ruído

  7. Derivadas e arestas f(x) f(x)+n(x) | f'(x)+n'(x) | f"(x)+n"(x)

  8. Série de Taylor Com x=1, f(x)=fi e f(x+x)=fi+1 (a) Com x=-1, f(x)=fi e f(x+x)=fi-1 (b)

  9. f(x) fi fi+1 fi-1 i-1 i+1 i x Aproximações para derivadas (a-b)  (a+b) 

  10. Em 2D Gradiente Convolution Kernels Laplaciano

  11. Laplaciano • Sometimes we are interested only in changing magnitude without regard to the changing orientation. • A linear differential operator called the Laplacian may be used. • The Laplacian has the same properties in all directions and is therefore invariant to rotation in the image. http://www.cee.hw.ac.uk/hipr/html/log.html http://ct.radiology.uiowa.edu/~jiangm/courses/dip/html/node83.html

  12. Finite differences Khurram Hassan-Shafique

  13. Classical Operators Prewitt’s Operator Differentiate Smooth Khurram Hassan-Shafique

  14. Classical Operators Sobel’s Operator Differentiate Smooth Khurram Hassan-Shafique

  15. Detecting Edges in Image • Sobel Edge Detector Edges Threshold Image I Khurram Hassan-Shafique

  16. Sobel Edge Detector Khurram Hassan-Shafique

  17. Sobel Edge Detector Khurram Hassan-Shafique

  18. Marr and Hildreth Edge Operator • Smooth by Gaussian • Use Laplacian to find derivatives Khurram Hassan-Shafique

  19. Marr and Hildreth Edge Operator Khurram Hassan-Shafique

  20. Marr and Hildreth Edge Operator Y X Khurram Hassan-Shafique

  21. Marr and Hildreth Edge Operator Edge Image Zero Crossings Detection Zero Crossings Khurram Hassan-Shafique

  22. Khurram Hassan-Shafique

  23. Quality of an Edge Detector • Robustness to Noise • Localization • Too Many/Too less Responses True Edge Poor localization Too many responses Poor robustness to noise Khurram Hassan-Shafique

  24. Canny Edge Detector • Criterion 1: Good Detection: The optimal detector must minimize the probability of false positives as well as false negatives. • Criterion 2: Good Localization: The edges detected must be as close as possible to the true edges. • Single Response Constraint: The detector must return one point only for each edge point. Khurram Hassan-Shafique

  25. Hai Tao

  26. The result • General form of the filter (N.B. the filter is odd so h(x) = -h(-x) the following expression is for x < 0 only) Camillo J. Taylor

  27. Approximation • Canny’s filter can be approximated by the derivative of a Gaussian Canny Derivative of Gaussian Camillo J. Taylor

  28. Canny Edge Detector • Convolution with derivative of Gaussian • Non-maximum Suppression • Hysteresis Thresholding Khurram Hassan-Shafique

  29. Algorithm Canny_Enhancer • Smooth by Gaussian • Compute x and y derivatives • Compute gradient magnitude and orientation Khurram Hassan-Shafique

  30. Canny Edge Operator Khurram Hassan-Shafique

  31. Canny Edge Detector Khurram Hassan-Shafique

  32. Canny Edge Detector Khurram Hassan-Shafique

  33. Algorithm Non-Maximum Suppression We wish to mark points along the curve where the magnitude is biggest. We can do this by looking for a maximum along a slice normal to the curve (non-maximum suppression). These points should form a curve. There are then two algorithmic issues: at which point is the maximum, and where is the next one? Khurram Hassan-Shafique

  34. Non-Maximum Suppression • Suppress the pixels in ‘Gradient Magnitude Image’ which are not local maximum Khurram Hassan-Shafique

  35. Non-Maximum Suppression Khurram Hassan-Shafique

  36. Non-Maximum Suppression Khurram Hassan-Shafique

  37. Hysteresis Thresholding Khurram Hassan-Shafique

  38. Hysteresis Thresholding • If the gradient at a pixel is above ‘High’, declare it an ‘edge pixel’ • If the gradient at a pixel is below ‘Low’, declare it a ‘non-edge-pixel’ • If the gradient at a pixel is between ‘Low’ and ‘High’ then declare it an ‘edge pixel’ if and only if it is connected to an ‘edge pixel’ directly or via pixels between ‘Low’ and ‘ High’ Khurram Hassan-Shafique

  39. Hysteresis Thresholding Khurram Hassan-Shafique

  40. Resultado de algoritmo de histerese

  41. Subpixel Localization • One can try to further localize the position of the edge within a pixel by analyzing the response to the edge enhancement filter • One common approach is to fit a quadratic polynomial to the filter response in the region of a maxima and compute the true maximum. -1 0 1

  42. Derivadas direcionais f(x,y) y x

  43. Detecting corners • If Ex and Ey denote the gradients of the intensity image, E(x,y), in the x and y directions then the behavior of the gradients in a region around a point can be obtained by considering the following matrix Camillo J. Taylor

  44. Examining the matrix • One way to decide on the presence of a corner is to look at the eigenvalues of the 2 by 2 matrix C. • If the area is a region of constant intensity we would expect both eigenvalues to be small • If it contains a edge we expect one large eigenvalue and one small one • If it contains edges at two or more orientations we expect 2 large eigenvalues Camillo J. Taylor

  45. Finding corners • One approach to finding corners is to find locations where the smaller eigenvalue is greater than some threshold • We could also imagine considering the ratio of the two eigenvalues

  46. Computing Image Gradients

  47. The ellipses indicate the eignvalues and eigenvectors of the C matrices Corner Analysis

  48. Juiz Virtual Tese de Flávio Szenberg

  49. Modelos • Os modelos utilizados na tese: Modelo de um campo de futebol Modelo sem simetria

  50. Filtragem para realce de linhas • O filtro Laplaciano da Gaussiana (LoG) é aplicado à imagem, baseado na luminância. filtro gaussiano filtro laplaciano

More Related