





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of image segmentation, a process that subdivides an image into its constituent regions or objects. Various segmentation approaches, including edge detection, thresholding, region-based segmentation, and morphological watersheds. Edge detection algorithms are discussed, with a focus on prewitt and sobel gradient operators. The effects of noise and illumination on edge detection are also explored. The document then discusses edge linking and thresholding methods for assembling edge pixels into meaningful edges. Region-based segmentation is covered, with a focus on region growing and split-and-merge algorithms. Morphological watershed segmentation is also discussed, which involves finding watershed lines to distinguish regions in an image.
Typology: Study notes
1 / 9
This page cannot be seen from the preview
Don't miss anything!






ECE 6258 Russell M. Mersereau
ECE 6258 Russell M. Mersereau
^
ECE 6258 Russell M. Mersereau
This operation is inherently noisy ^ Different types of results depending upon the edge type. ^ Edges are frequently broken. ^ Many “edges” do not correspond to boundaries.
ECE 6258 Russell M. Mersereau
ECE 6258 Russell M. Mersereau
Prewitt and Sobel Gradient Operators ^ Each tries to smooth in the direction along the edge.
ECE 6258 Russell M. Mersereau Results
ECE 6258 Russell M. Mersereau
With initial 5x5 Pre-smoothing
ECE 6258 Russell M. Mersereau Edge Linking ^ Edge detection algorithms are typically followed by linkingprocedures to assemble edge pixels into meaningful edges. ^ One approach ^ Edge points that share one or more criteria are linked ^ Edge strength in response to edge operator. ^ Direction of the gradient vector
Other approaches ^ Hough transforms ^ Graph theoretic approaches
Edges are more commonly used in conjunction withother methods.
ECE 6258 Russell M. Mersereau
Region-Based Segmentation ^ The objective is to partition an image into disjointhomogeneous regions. ^ Let R represent the entire image and R the subregions. i These are defined by for some logical predicate P (.)
ECE 6258 Russell M. Mersereau Region growing Region growing groups pixels or subregionsinto larger regions. Approach starts with a set of “seed” pixelsand appends neighboring pixels that havesimilar properties. 11/26/ ECE 6258 Russell M. Mersereau
Result
ECE 6258 Russell M. Mersereau Split-and-Merge Algorithms ^ An alternative to region growing is to subdivide an image initially intoa set of arbitrary disjoint regions and then split or merge the regionsin an attempt to make them more homogeneous. ^ The most common implementation subdivides square regions intoquadrants (quadtrees).
ECE 6258 Russell M. Mersereau
Algorithm 1. Split into four disjoint regions and region for which 2. Merge any adjacent regions R and j R k^ for which 3. Stop when no further splitting or merging is possible.
ECE 6258 Russell M. Mersereau Split-and-Merge Result original thresholding result Split-and-Merge result 11/26/ ECE 6258 Russell M. Mersereau
Segmentation by Morphological Watersheds ^ Think of the image as a 3-D map, with thecoordinates corresponding to longitude and latitudeand the gray-value corresponding to altitude. ^ We can distinguish three types of points: ^ (a) local minima ^ (b) points where, a drop of water placed at that point wouldflow to a unique local minimum. These points form the watershed of the minimum. ^ (c) points at which the water would be equally likely to flowto two or more minima. ( divide lines or watershed lines .) ^ These segmentation algorithms try to find thewatershed lines.
ECE 6258 Russell M. Mersereau Approach 1. Punch a hole in the surface at each regionalminimum.
Allow water to flow into the hole at a uniformrate.
When the rising water in different catchmentbasins is about to merge, construct a damto prevent the merging.
When only the tops of the dams are visibleabove the watersheds, stop. These are thewatershed lines.
ECE 6258 Russell M. Mersereau
Oversegmentation image oversegmentation
ECE 6258 Russell M. Mersereau Using markers to limit oversegmentation^ ^ Define a marker as a region surrounded by “higher points”, that is aconnected component, in which all points in the component have thesame value.
ECE 6258 Russell M. Mersereau
Region labeling and counting ^ How many bacteria are there in this picture? (region counting) ^ Which pixels belong to the same object (region labeling)? ^ How large is each object (region statistics)? Original Bacteria image After thresholding
ECE 6258 Russell M. Mersereau ^ A region is a set of pixels, where each pixel can be reached fromany other pixel in the region by a finite number of steps, where eachstep starts at a pixel and ends in the neighborhood of the pixel. ^ These typically lead to the same regions, except when a region isonly connected across diagonally adjacent pixels. Neighborhoods 4-neighborhood 8-neighborhood
ECE 6258 Russell M. Mersereau
Region labeling algorithm (4-neighborhood) ^ Loop through all pixels x [ n , n 1 ], left to right, top to bottom. 2 ^ If^ x [ n^1 , n ]=0, do nothing. 2 ^ If^ x [ n^1 , n ]=1, distinguish four cases 2 ^ Generatenew regionlabel Second pass through image to consolidate equivalent labels.
ECE 6258 Russell M. Mersereau Example: region labeling 11/26/ ECE 6258 Russell M. Mersereau
Region statistics ^ Measures the size of each region of a labeledimage. ^ Initialize counter ( label )=0 for all label ^ Loop through all pixels x [ n , 1 n ], left to right, top to 2 bottom ^ If^ x [ n^1 , n ]=0, do nothing. 2 ^ If^ x [ n^1 , n ]= 2 1 , increment counter ( label [ n , n 1 ]). 2
ECE 6258 Russell M. Mersereau Small region removal ^ Loop through all pixels x [ n , 1 n^2 ], left to right, top to bottom ^ If^ x [ n^1 , n ]=0, do nothing. 2 ^ If^ x [ n^1 , n ]=1 and counter(label( 2 x [ n^1 , n ]))<S, then set 2 x [ n , n 1 ]=0. 2 ^ Removes all regions smaller than S pixels .