Lecture 3 Merged
Lecture 3 Merged
Object delineation,
i.e. finding the contour / surface of the
object of interest
H06W8a: Medical image analysis
Class 3: Low-level segmentation Pixel / voxel classification,
i.e. assigning a (tissue class) label to each
pixel in the image (or more general: the
Prof. Frederik Maes probability for a pixel to belong to a
particular class)
[email protected]
Image partitioning,
i.e. dividing the image in non-overlapping
regions with distinct properties
(e.g. homogeneous intensity / texture)
! ?
P It Local
Soft tissue operator
Soft tissue Back- Back-
ground ground
Back- It It = selected
ground threshold value
Soft tissue
I ≥ It è 1
I < It è 0
Skull
Contour = sequence of connected Smoothed contour: connect midpoints
pixel edges (‘edgels’) of each edgel (instead of endpoints)
vertical horizontal
edges edges
Gradient magnitude
Original Filtered (edge strength)
Image gradient Image Laplacian Heuristic observation: object boundary
corresponds to a local intensity change
or ‘edge’
P Gradient max
magnitude
It
Intensity along P Histogram of gradient magnitude
Gradient magnitude
Strong Many spurious,
edges weak edges B(It) overlaid on Select intensity threshold It such that thresholded object
(due to noise) gradient
No obvious threshold boundary B(It) coincides with strong edges as much as
between spurious and magnitude possible, i.e. such that mean gradient magnitude is maximal
relevant edges
along the boundary
s2b(t)
?
topt Segmented image
Registered ex vivo and in vivo microCT images
Adaptive threshold ?
Higher threshold
Loss of trabeculae
Global threshold ?
Local threshold
= 0.5*(local minimum + local maximum)
Lower threshold
Caveat: overestimates width of thin
trabeculae… è heuristic adjustment needed
Thickening of cortex
Better solution: iterative CT reconstruction
methods, taking discrete nature of the
intensity histogram into account In vivo, adaptive Ex vivo, global
threshold threshold
Model-based threshold selection Edge detection
• Histogram is modeled
as a mixture of Gaussian
distributions, one for
each class
• Threshold selected
according to maximum
likelihood criterion
Thresholding the gradient magnitude image 1 Thresholding the gradient magnitude image 2
histogram histogram
histogram
Global thresholding
Gradient magnitude
Threshold = 0.01 Threshold = 0.045
• 4: Hysteresis thresholding
Canny edges are not always closed !
50 50 50
250
250 250
300
300 300
• Define a similarity measure S(i, j) for pixels i and j and a threshold T. Segmentation of the air-inflated colon for virtual colonoscopy based on CT
• Initiate the region R from a single seed pixel p (in 2D) or voxel (in 3D). seed point
• Consider each pixel q that is not in R but adjacent to a pixel r in R.
• If S(p,q)>T, add q to R.
• Iterate until R does not expand anymore.
• Different features can be used to assess similarity S between pixels: • A watershed region or catchment basin is defined as the region in which
– intensity (color), texture, other derived features
water flows “downhill” to a common point.
• Threshold T:
– constant? updated during iterations? • Watersheds of gradient magnitude make useful region-based
– If too small è over-segmentation, if too large è under-segmentation segmentation primitives.
• Different comparisons possible:
– Compare q to seed pixel p: S(p,q) (sensitive to noise, choice of p …)
– Compare q to neighboring pixel r : S(r,q) (sensitive to drift …)
– Cumulative cost: S(p,q) + S(r,q)
– Compare q to region statistics (region mean and variance …)
• Choice of seed point p
– Single seed point for single region
– Multiple seed points for single region
• Considered one by one + subsequent region merging
• Considered jointly, e.g. to account for variability within the region of interest
– Multiple seed points for different regions
• Multiple regions grown simultaneously (‘region competition’)
Union i+j
Interaction Interaction
‘Paintbrush’ ‘Point and click’
user drags cursor over object to be segmented, each region hit by the
mouse cursor is selected and added to the segmentation user indicates points that do or do not belong to the object of interest,
segmented region boundary is updated on the fly
hidden visible
Algorithm searches for region in region hierarchy that
best fits specified constraints…
- +
100
Primitives
20
Interaction
on one slice +
Propagation to other slices
Morphological operations Connected component labeling
• Operations on a binary image that influence the Original Connected components Largest component
morphology (shape) of the object of interest
• Example:
– eliminating isolated pixels
– boundary smoothing
– filling holes
– connected component analysis
– …
Connectivity depends on
neighborhood system
minimum
0
iterate
maximum
Original First dilation… … then erosion Original First erosion… … then dilation
‘hole’ connected
with background
isolated hole
• Principle:
Original Dilation Background fill
– Detect (and link) image edges
or
– Combine pixels with similar global or local photometric characteristics
• No model of global object shape or context
• Simple, fast, general operators (cfr. Photoshop)
• Heuristic, often too simplistic
• Limited use for complex objects in complex medical images
– Bone segmentation in CT using thresholding
Invert Add original Erode