DIP Lecture - 11
DIP Lecture - 11
• Region-based segmentation – partition an image into regions that are similar according to a set of predefined criteria.
Detection of Discontinuities
• Detect the three basic types of gray-level discontinuities
– The second order derives have a strong response to fine detail, such as thin lines and isolated points, and noise
– Laplacian operation
• Examples: – Horizontal mask has high response when a line passed through the middle row of the mask.
• Example: Let R1, R2, R3, R4 denotes the response of the horizontal, +45 degree, vertical and -45 degree masks,
respectively. if, at a certain point in the image |Ri| > |Rj|, for all j ≠i, that point is said to be more likely associated with
a line in the direction of mask i.
Line Detection
Edge Detection
• Edge detection is the approach for segmenting images based on abrupt changes in intensity.
• What is an edge – an edge is a set of connected pixels that lie on the boundary between two regions.
– an edge is a “local” concept whereas a region boundary, owing to the way it is defined, is a more global idea.
• Edge models – Step edge (Idea edge), ramp edge (thick edge), and roof edge.
• 1. The magnitude of the first derivative can be used to detect the presence of an edge at a point
• 2. Second derivative produces two values for every edge in an image. An imaginary straight line joining the extreme
positive and negative values of the second derivative would cross zero near the midpoint.