Digital Image Processing: Image Segmentation
Theoretical Foundations and Mathematical Definition of Image Segmentation
Image segmentation partitions a digital image into its constituent, non-overlapping regions or objects. Formally, let represent the entire spatial region occupied by an image. Image segmentation is a process that partitions into sub-regions, , such that the following five fundamental conditions are satisfied:
Completeness:
Every pixel in the image must belong to a region; no pixels are left unassigned.
Connectivity:
The pixels within each partitioned sub-region must form a connected component in terms of spatial adjacency.
Disjointness (Mutually Exclusive Sub-regions):
Regions must be strictly disjoint, meaning no pixel can simultaneously belong to more than one region.
Regional Homogeneity (Predicate Satisfaction):
A logical predicate evaluates the uniformity of pixels in region (e.g., uniformity in intensity, texture, or color) and evaluates to if all pixels within satisfy the specified homogeneity condition.
Regional Distinctness:
Adjacent regions must differ significantly with respect to the predicate . Merging two adjacent distinct regions creates a composite region that fails the homogeneity criterion.

Segmentation algorithms generally follow one of two basic approaches based on intensity properties:
Discontinuity-based segmentation: Partitions an image based on abrupt, local changes in intensity (such as isolated points, lines, and edges).
Similarity-based (region-based) segmentation: Partitions an image into regions that are similar according to a set of predefined criteria (such as thresholding, region growing, and region splitting/merging).
When segmenting a smooth region of constant intensity, edge detection based on intensity discontinuities reliably recovers the closed outer boundary. However, when segmenting textured or noisy regions, edge-based operations produce many spurious internal and external edges, preventing the formation of a clean, closed boundary. In such cases, segmentation based on region properties (e.g., texture descriptors) produces a coherent, segmented partition.
Digital Derivatives and Intensity Discontinuity Profiles
Abrupt local transitions in gray-level values are modeled mathematically using discrete first-order and second-order derivatives along 1D spatial profiles.
1D Discrete Derivatives
For a discrete 1D intensity function , derivatives are approximated via finite differences:
First-order derivative (Forward difference):
Second-order derivative (Central second difference):
Numerical Analysis of Transition Profiles

The behavior of first and second derivatives across fundamental image features—such as ramps, isolated points, flat segments, lines, and steps—is illustrated by the following discrete profile:
Image Strip Intensity Values:
First-Order Derivative Values:
Second-Order Derivative Values:
Derivative Behaviors and Comparative Properties
Edge Thickness: First-order derivatives produce thicker, constant-amplitude responses along ramps. Second-order derivatives produce a zero response along flat slopes of a ramp and non-zero responses only at the onset and termination of the ramp.
Sensitivity to Fine Detail: Second-order derivatives have a significantly stronger response to fine details (isolated points, thin lines, impulse noise) than first-order derivatives.
Double-Edge Response: Second-order derivatives produce a characteristic double-line effect at ramp and step transitions (a positive spike followed by a negative spike, or vice versa).
Sign and Edge Transition Direction: The sign of the second derivative determines whether an intensity transition is from light to dark (positive then negative) or from dark to light (negative then positive).
Zero-Crossing: The point where the second derivative changes sign passes through zero precisely at the center of a ramp edge, providing a reliable marker for edge localization.
Detection of Isolated Points and Lines
Point Detection
An isolated point differs significantly from its local background. Detecting an isolated point requires a spatial operator that responds strongly to sharp localized discontinuities in all directions. This is achieved using the 2D Laplacian operator.
Continuous and Discrete Formulation of the 2D Laplacian
The 2D continuous Laplacian is defined as:
Using discrete finite differences along the and axes:
Combining these yields the standard 4-neighbor discrete Laplacian:
Including diagonal terms yields the isotropic 8-neighbor Laplacian mask:
Spatial Mask Filtering and Thresholding
For a neighborhood centered at with mask weights and pixel intensities :
A point at is classified as an isolated point if the absolute value of the response exceeds a specified non-negative threshold :

In industrial non-destructive testing, such as examining X-ray images of turbine blades, manufacturing porosity often appears as a single dark pixel. Convolving the image with the point detection mask and thresholding the output isolates the porosity.
Line Detection
Second derivatives produce a stronger response and thinner lines than first derivatives. However, the double-line effect of the second derivative must be handled by taking either the absolute value or only the positive values of the Laplacian.
Direction-Specific Line Detectors

To detect lines oriented in specific directions, four masks are used:
Horizontal Mask ():
Diagonal Mask ():
Vertical Mask ():
Diagonal Mask ():
Each mask sums to zero, ensuring a zero response over regions of constant intensity.
Directional Selection Rule
Let be the responses of the four masks at a given point . The point is associated with the direction of mask if:
To find lines of a specific orientation (e.g., ), the image is filtered with that mask, negative values are set to zero, and the result is thresholded at .

Edge Detection Principles and Models
An edge is a set of connected pixels that lie on the boundary between two regions characterized by distinct intensity levels.
Edge Models

Edges are classified into three geometric models:
Step Edge: An abrupt, instantaneous change in intensity occurring over a distance of 1 pixel. Step edges occur at clean physical boundaries and borders in range imaging.
Ramp Edge: An intensity transition that increases or decreases gradually over a finite distance (several pixels). Real-world optical blurring, lighting transitions, and finite sensor sampling render most edges as ramps.
Roof Edge: An intensity profile that rises and falls over a narrow region. Roof edges appear in range imaging when objects are closer to the sensor than the background, in thin line digitizations, and as roadways in satellite imagery.
In natural images, edge widths vary considerably. For instance, in a pixel scene, practical ramp edge profiles can span 9 pixels, step-like transitions can span 2 pixels, and the base of a roof edge may span 3 pixels.
Mathematical Behavior Across a Ramp Edge

Across an ideal ramp transition:
Intensity Profile : Constant low value, linear ramp slope, constant high value.
First Derivative : Constant zero on both flat sides, constant positive value across the ramp transition (producing a thick pulse proportional to edge width).
Second Derivative : Zero in flat regions, a positive impulse at the onset of the ramp, zero along the linear slope, a negative impulse at the end of the ramp, and a zero crossing precisely at the inflection point.
The Three-Stage Edge Detection Pipeline
Edge detection requires three sequential operations:
Image Smoothing for Noise Reduction: High-frequency noise corrupts derivative operators. Smoothing filters suppress noise prior to differentiation.
Detection of Edge Points: Local spatial operators (gradient or Laplacian) identify all candidate edge points.
Edge Localization: Thresholding and nonmaxima suppression extract true edge points while discarding false responses.
Impact of Additive Gaussian Noise

Noise degrades derivative operations. When zero-mean additive Gaussian noise is added to a ramp edge:
At , derivatives are clean and unambiguous.
At , slight ripples appear in derivative profiles.
At , noise peaks match derivative amplitudes.
At , derivative profiles are dominated by noise, obscuring true zero-crossings and first-derivative peaks.
lFirst-Order Gradient Operators and Vector Analysis
First-order edge detection relies on the gradient of a 2D continuous or discrete image function .
Vector Definition, Magnitude, and Direction
The gradient is a 2D column vector pointing in the direction of the maximum rate of change of :
Magnitude of the Gradient:
Computational Approximations:
Direction of the Gradient Vector:
Direction of the Edge:
The physical direction of an edge at is perpendicular to the gradient vector:

Spatial Gradient Masks
For a neighborhood labeled as follows:
1D Finite Difference Masks
Vertical component :
Horizontal component :
Roberts Cross-Gradient Operators ()
Prewitt Operators ()
Horizontal ():
Vertical ():
Sobel Operators ()
Sobel operators apply a weight of 2 to the central coefficient to smooth along the direction orthogonal to differentiation, reducing noise sensitivity:
Horizontal ():
Vertical ():
Diagonal Edge Operators

Prewitt Diagonal Masks:
Sobel Diagonal Masks:
Practical Filtering Pipeline on Complex Scenes
In complex scenes (such as an pixel image scaled to ):
Raw gradient filtering via Sobel masks yields directional components and , and composite gradient .
Smoothing with a averaging filter prior to computing gradients eliminates micro-texture (e.g., mortar lines in brick walls) while preserving structural edges.
Setting a global gradient threshold at of the maximum value isolates dominant structural boundaries.
Advanced Edge Detectors: Marr-Hildreth and Canny
The Marr-Hildreth Edge Detector
The Marr-Hildreth algorithm filters an image with a Gaussian to control detail scale, followed by a second-order Laplacian operator to locate edges via zero-crossings.
The Laplacian of Gaussian (LoG)
The 2D Gaussian function is:
where is the space constant (standard deviation).
Applying the Laplacian operator yields the Laplacian of Gaussian (LoG):

The cross-section exhibits a central lobe flanked by negative lobes ("Mexican hat"). The distance between its zero-crossings is:
A discrete integer approximation to the negative of this shape is:
Marr-Hildreth Algorithm Steps
Filter the input image with an Gaussian lowpass filter, where is chosen as the smallest odd integer greater than or equal to :
Compute the Laplacian of the smoothed image:
Determine the zero-crossings of . A pixel is marked as a zero-crossing if the signs of opposing neighbors differ and their absolute difference exceeds a threshold.
Thresholding zero-crossings at yields closed-loop edges ("spaghetti effect"). Setting the threshold to of the maximum value of the LoG response suppresses weak zero-crossings and preserves thin, meaningful edges.
The Canny Edge Detector
The Canny detector satisfies three key performance criteria for step edges corrupted by white noise:
Low Error Rate: All true edges should be detected, and no false edges should be created.
Localization: The distance between detected edge pixels and actual physical edge centers must be minimized.
Single Edge Response: The detector must return only a single point for each edge pixel, suppressing false multiple responses across broad profiles.
Canny Edge Detection Algorithm
Step 1: Gaussian Smoothing
Smooth the input image using a Gaussian filter :
Step 2: Gradient Vector Computation
Compute the gradient magnitude and direction using Sobel masks:
Step 3: Nonmaxima Suppression (NMS)
Gradient magnitude arrays display wide ridges around local maxima. Nonmaxima suppression thins these ridges to 1-pixel-wide lines.

Define four basic discrete edge directions in a neighborhood:
: Horizontal ()
:
: Vertical ()
:
The normal direction is mapped into one of four sectors:
If or , the edge normal is horizontal, corresponding to a vertical edge ().
If or , the edge direction is ().
If or , the edge normal is vertical, corresponding to a horizontal edge ().
If or , the edge direction is ().
Let be the current pixel. Inspect its two neighbors along the mapped normal direction . If is strictly less than at least one of these two neighbors, set ; otherwise, retain .
Step 4: Hysteresis Thresholding
Suppress false edge points using two thresholds: a high threshold and a low threshold (typically with a ratio between and ):
Subtract strong edges from weak edges to form an isolated weak-edge image:
Step 5: Connectivity Analysis and Edge Linking
Locate the next unvisited strong edge pixel in .
Mark as valid edge pixels all weak pixels in that are connected to via an 8-connected path.
Repeat until all non-zero pixels in have been visited.
Set all unmarked pixels in to zero.


Edge Linking and Boundary Detection
Edge detection often yields broken boundaries due to noise, uneven illumination, and non-uniform material properties. Edge linking algorithms assemble edge pixels into continuous, closed boundaries.
Local Processing
Local processing inspects a small neighborhood centered at every declared edge point . A neighboring edge pixel at is linked to if both magnitude and directional similarity criteria are met:
Magnitude Similarity:
Angle Similarity:
Alternatively, a binary linked image is constructed directly using thresholds on gradient magnitude and angle:
where is the magnitude threshold, is the specified angle, and defines an acceptable angular band about .
Rows or columns are subsequently scanned to fill isolated gaps of zeros that do not exceed a length .
Regional Processing: Iterative Polygonal Fit

When edge points delimit a closed or open boundary of a known region, polygonal approximations simplify the boundary representation.
The Polygonal Fit Algorithm
Let be an ordered sequence of distinct 1-valued contour pixels. Define two stacks: and , and specify a tolerance threshold .
Initialization:
If the curve is closed: select starting vertices and . Push into , and push into both and .
If the curve is open: push into and into .
Line Fitting: Compute the parameters of a straight line connecting the top vertex of to the top vertex of .
Distance Evaluation: Compute the perpendicular distances from this line to all points in located between these two vertices. Find the point with the maximum distance .
Branching Condition:
If , push onto as a new vertex. Return to Step 2.
If , pop the top vertex from and push it onto .
Termination: If is not empty, return to Step 2. If is empty, exit. The points in form the vertices of the polygonal approximation.
Execution Trace for a Closed Curve
CLOSED Stack | OPEN Stack | Curve Segment Processed | Vertex Generated |
|---|---|---|---|
— | |||
— | |||
— | |||
— | |||
— | |||
Empty | — | — |
Global Processing: The Hough Transform
When broken edge points cannot be grouped locally, global arrangements are extracted using the Hough Transform, developed by Paul Hough in 1962.
Parameterization of Lines
Representing lines in Cartesian form () fails for vertical lines because the slope . The normal (polar) parameterization resolves this issue:
where:
is the perpendicular distance from the coordinate origin to the line.
is the angle of the normal vector relative to the horizontal axis.

Properties of Parameter Space
A single point in the spatial plane maps to a sinusoidal curve in the -parameter plane:
Collinear spatial points correspond to sinusoidal curves that intersect at a single parameter point .
The parameter space is discretized into accumulator cells spanning and for an image.
Edge Linking Algorithm Based on the Hough Transform
Compute a binary edge image (e.g., using Canny or Sobel operators).
Divide the -plane into accumulator cells initialized to zero.
For each non-zero edge pixel , compute for every quantized value and increment the corresponding cell: .
Find the local maxima in that exceed a count threshold.
Map peak cells back to lines in image space and link collinear edge segments by bridging gaps that are smaller than a specified pixel distance.

Intensity Thresholding and Noise Degradation
Formulations of Thresholding
Single Global Thresholding:
Multiple Thresholding:
Role of Noise and Illumination Non-Uniformity


In ideal noiseless images, histograms of bimodal scenes exhibit distinct spikes separated by broad valleys. However, two phenomena compromise global thresholding:
Additive Gaussian Noise: As noise variance increases (from to and ), the valley separating the foreground and background modes broadens, flattens, and eventually merges into a single unimodal distribution.
Spatial Illumination Variations: Multiplying a scene by an intensity gradient (e.g., a spatial ramp from to ) shifts the local reflectance values, causing the modes to spread across the intensity spectrum and obscuring the valley.
Basic Global Thresholding (Iterative Algorithm)
Select an initial estimate for the global threshold (typically the average intensity of the image).
Segment the image using , producing two pixel groups:
: pixels with
: pixels with
Compute the average intensities and of regions and :
Compute an updated threshold value:
Repeat Steps 2 through 4 until the difference between successive thresholds satisfies:
where is a predefined convergence threshold.
Optimal Global Thresholding: Otsu's Method
Otsu's method (1979) selects a global threshold by maximizing the between-class variance , which measures the statistical separability of classes.
Statistical Formulation
Let an image of size have distinct gray levels . Let denote the count of pixels with intensity .
The normalized histogram represents the probability distribution of gray levels:
Partition the pixels into two classes using a threshold ():
: gray levels in
: gray levels in
Cumulative Probabilities of Occurrence
Class Means
Global Mean and Cumulative Mean
The cumulative mean up to intensity level is:
The global mean intensity across the entire image is:
Between-Class Variance Derivation
The between-class variance is defined as:
Substituting and yields:
Threshold Optimization and Separability Measure
The optimal threshold is the index that maximizes :
If the maximum is not unique, the optimal threshold is calculated as the average of the maximizing indices.
The global variance of the image is:
The separability measure evaluates the quality of the thresholding ():
Algorithmic Summary of Otsu's Method
Compute the normalized histogram for .
Compute the cumulative sums for .
Compute the cumulative means for .
Compute the global intensity mean .
Compute the between-class variance for all .
Find that maximizes .
Segment the image into background and foreground using :
Enhancements for Challenging Conditions
Image Smoothing to Restore Bimodality
When heavy additive noise blurs histogram peaks into a unimodal distribution, Otsu's method on the raw image often fails. Pre-filtering with a spatial averaging mask attenuates noise variance, re-establishing a bimodal profile and enabling successful thresholding.
Edge-Assisted Global Thresholding
When an object is small relative to the image area, background pixels dominate the histogram, suppressing the object mode into an imperceptible tail and causing Otsu's method to fail.

To correct for skewed class proportions:
Compute an edge image using either the gradient magnitude or the absolute Laplacian of .
Threshold the edge image at a high percentile (e.g., the percentile) to produce a sparse binary edge mask.
Compute an intensity histogram using only the pixels in that coincide with the non-zero mask pixels.
Apply Otsu's algorithm to this edge-conditioned histogram to determine the optimal threshold (e.g., ), which will lie midway between the object and background peaks.
Segment the entire original image globally using this threshold.
Multiple Thresholds for Multimodal Distributions
For distinct classes , the between-class variance generalized to thresholds is:
where:
The optimal thresholds satisfy:
Spatially Adaptive and Variable Thresholding
When background illumination varies across an image, global thresholding fails. Spatially adaptive methods vary the threshold as a function of local coordinates.
Image Partitioning
The image is subdivided into non-overlapping rectangular blocks chosen small enough that illumination across each block is approximately uniform. Otsu's method is then applied to each subimage individually.
Variable Thresholding Based on Local Image Properties
Let and denote the local standard deviation and local mean within a neighborhood centered at . The local threshold is defined as:
If the background intensity is nearly constant across the scene, the global mean can replace the local mean:
The image is thresholded according to:
Dual Predicate Formulation
Alternatively, local parameters can be evaluated using a logical predicate :
For example:
Variable Thresholding Using Moving Averages
For text document processing and scenes containing small features affected by illumination gradients, local thresholding based on moving averages provides efficient, real-time segmentation. To prevent spatial bias, images are scanned row-by-row in a continuous zigzag pattern.
Recursive Moving Average Computation
Let denote the intensity of the pixel encountered at step along the scan path. The moving average over a window of length is updated recursively:
Border pixels are padded with zeros, and the initial value is .
Segmentation Criterion
The local threshold at is scaled using a constant multiplier :
In document restoration corrupted by spot or sinusoidal shading, parameters such as and consistently isolate dark characters from non-uniform backgrounds.
Region-Based Segmentation: Growing, Splitting, and Merging
Region Growing by Pixel Aggregation
Region growing groups pixels into larger spatial regions based on predefined criteria. Starting from a set of "seed" points, regions grow by iteratively appending adjacent pixels that satisfy a similarity predicate (e.g., intensity, texture, color, or shape).
Algorithm Based on 8-Connectivity
Let be the input image array, be a binary seed array ( for seeds, otherwise), and be the similarity predicate:
Find all connected components in and erode each component down to a single pixel; label each resulting seed pixel as , and all others as .
Create a binary image evaluating the predicate for every pixel:
Form the segmented image by appending to each seed point in all 1-valued points in that are 8-connected to that seed point.
Label each disjoint connected component in with a distinct region label.
A common similarity predicate uses an absolute intensity difference threshold :
Worked Numerical Example: 4-Connectivity vs. 8-Connectivity
Consider the following digital image array, where the initial seed point is the center pixel at coordinates (value ), and the similarity predicate is :
Row 1: [10, 10, 10, 10, 10, 10, 10]
Row 2: [10, 10, 10, 69, 70, 10, 10]
Row 3: [59, 10, 60, 64, 59, 56, 60]
Row 4: [10, 59, 10, 60, 70, 10, 62]
Row 5: [10, 60, 59, 65, 67, 10, 65]
Row 6: [10, 10, 10, 10, 10, 10, 10]
Row 7: [10, 10, 10, 10, 10, 10, 10]
The acceptable intensity range for region inclusion is .
Under 4-Connectivity:
From (value ):
North neighbor has value accepted.
South neighbor has value accepted.
East neighbor has value rejected.
West neighbor has value rejected.
From ():
North neighbor has value rejected.
East neighbor has value accepted.
West neighbor has value accepted.
From ():
East neighbor has value accepted.
From ():
East neighbor has value accepted.
From ():
West neighbor has value accepted.
East neighbor has value rejected.
From ():
West neighbor has value accepted.
Pixels at (), (), and () are isolated from 4-connected growth by surrounding values of .
Under 8-Connectivity:
The pixel at () is diagonally 8-connected to () and (), so it is included in the grown region.
Pixel () connects to ().
Pixel () connects diagonally to () and ().
Thus, 8-connectivity bridges diagonal paths across background barriers that halt 4-connected aggregation.
Region Splitting and Merging
When appropriate seed points are unavailable, an image can be segmented by recursively splitting it into quadrants and merging adjacent homogeneous blocks using a quadtree data structure.

The Split-and-Merge Algorithm
Let denote the root image region. Define a homogeneity predicate :
Splitting: If , split region into four disjoint quadrants.
Merging: When no further splits can occur, merge any two adjacent regions and if they satisfy the joint predicate:
Termination: Continue until no further split or merge operations are possible.
Statistical Predicate Example
In astronomical imaging (e.g., Hubble space telescope X-ray images of the Cygnus Loop supernova), regions are segmented based on local mean and standard deviation:
Limiting the minimum quadrant size (e.g., to , , or pixels) controls the spatial resolution and boundary precision of the final segmentation.
Morphological Watershed Segmentation
Morphological watershed segmentation visualizes a grayscale image as a 3D topographic surface, where pixel coordinates represent spatial location and intensity values represent altitude. The algorithm is typically applied to gradient magnitude images, where high values mark object edges and low values mark uniform interiors.
Topographic Surface Terminology

Regional Minima: Continuous spatial areas of uniform, minimal altitude.
Catchment Basins (Watersheds): Geographic regions where a falling drop of water drains to a specific regional minimum.
Watershed Lines (Divide Lines): Crests and ridges where raindrops are equally likely to flow into more than one catchment basin. These dividing ridges form the final closed boundary segments.
Flooding Simulation and Dam Construction
Pierce a hole at each regional minimum across the topographic surface.
Submerge the surface into a reservoir from below, allowing water to fill each catchment basin at a uniform rate.
As water rises, catchment basins from adjacent minima will approach each other. When water from two distinct basins is about to merge, build a dam along the ridge line to prevent mixing.
Dam construction is implemented using morphological dilation with a symmetric cross structuring element. Expanding the flooded components until they collide defines the coordinates where dam pixels must be placed.
When the water level reaches the maximum elevation (), the resulting network of dams forms the watershed lines.
The Over-Segmentation Problem and Marker Control

Due to sensor noise and micro-texture in the image gradient, standard watershed algorithms identify hundreds of extraneous regional minima, causing severe over-segmentation. To prevent this, marker-controlled watershed segmentation limits catchment basins to predefined regions:
Internal Markers: Connected components associated with target objects, generated via morphological opening/closing or adaptive thresholding.
External Markers: Connected components representing the background, generated by computing watershed divide lines between internal markers.
Minima Imposition: The gradient image is modified so that local minima occur only at marker locations, eliminating all extraneous minima.
The watershed transform is then applied to the modified gradient surface, yielding clean, closed boundaries.
Motion-Based and Clustering-Based Segmentation
Motion Segmentation via Static Reference Differences

In video streams and image sequences, motion provides a strong cue for isolating foreground objects from static backgrounds. A static reference background image is maintained across frames.
When a moving vehicle passes through a frame at time , taking the absolute frame difference isolates the moving target:
Areas occluded by the moving target can be restored in the reference background by copying pixels from a non-occluded subsequent frame at time .
K-Means Clustering
K-means is an iterative, unsupervised clustering algorithm that partitions data points into distinct clusters in feature space (e.g., intensity, color coordinates , or spatial texture descriptors).
The K-Means Algorithm
Initialization: Choose cluster centers (centroids) randomly or using initial seed heuristics.
Assignment: Assign each data point to the cluster whose centroid has the minimum Euclidean distance:
Centroid Update: Recalculate each centroid as the mean of all data points assigned to that cluster:
Convergence Check: Repeat Steps 2 and 3 until the cluster assignments or centroid positions do not change between iterations:
In color segmentation, K-means clusters pixels based on their joint color feature vectors (e.g., or ), grouping pixels with similar color properties regardless of spatial connectivity.
Summary Comparison of Segmentation Techniques
Segmentation Technique | Operating Domain | Primary Advantages | Common Failure Modes / Limitations |
|---|---|---|---|
First-Order Edge Detection (Sobel/Prewitt) | Local spatial derivatives | Simple implementation; low computational cost; directional sensitivity | Wide/thick edges; sensitive to noise; requires heuristic thresholding |
Marr-Hildreth (LoG) | Multi-scale Gaussian second derivatives | Clean zero crossings; controllable detail scale using ; isotropic | Computationally intensive; produces closed-loop "spaghetti" edges |
Canny Edge Detector | Multi-stage optimal directional gradient | Single-pixel edge width; superior noise handling; adaptive hysteresis linking | Sensitive to fine-tuning of parameters () |
Hough Transform | Global parameter space | Links disconnected segments; resilient to partial occlusions and high noise | Limited to parametric shapes (lines, circles); high memory footprint |
Otsu’s Global Thresholding | Histogram-based variance optimization | Non-parametric; fully automatic; optimal between-class separability | Fails on unimodal distributions, small objects, and non-uniform lighting |
Adaptive / Local Thresholding | Moving averages / local window statistics | Robust to severe illumination ramps and variable shading | Requires empirical tuning of window size and scaling multiplier |
Region Growing | Local similarity / pixel aggregation | Guarantees closed, connected regions; effective on noisy images | Sensitive to seed selection; vulnerable to regional leakage |
Region Splitting & Merging | Hierarchical quadtree partitioning | Does not require initial seeds; flexible statistical predicates | Blocky boundaries along split quadtree grid lines |
Morphological Watersheds | Topographic gradient surface flooding | Produces closed, thin boundaries; captures complex organic structures | Severe over-segmentation unless controlled by markers |