This document discusses image enhancement techniques in the spatial domain. It describes two categories of spatial domain operations: point processing and neighborhood processing. Point processing involves direct manipulation of pixel values through techniques like contrast stretching and thresholding. Neighborhood processing considers pixels in a local region and applies techniques like averaging filters. The document outlines several gray level transformations for enhancement, including logarithmic, power-law, piecewise linear, and bit-plane slicing transformations. It also discusses arithmetic and logic operations on images.
2. Image Enhancement
Goal: process an image so that the result is
more suitable than the original image for a
specific application
Visual interpretation
Problem oriented
4. Two categories
There is no general theory of image
enhancement
Spatial domain
Direct manipulation of pixels
Point processing
Neighborhood processing
Frequency domain
Modify the Fourier transform of an image
24. Gray-level slicing
Highlighting a specific
range of gray levels in an
image
Display a high value of all
gray levels in the range of
interest and a low value for
all other gray levels
(a) transformation highlights
range [A,B] of gray level and
reduces all others to a
constant level
(b) transformation highlights
range [A,B] but preserves all
other levels
29. Logic operations
Logic operations: pixel-wise AND, OR, NOT
The pixel gray level values are taken as
string of binary numbers
Use the binary mask to take out the region
of interest(ROI) from an image
Ex. 193 => 11000001
32. Image subtraction: scaling the
difference image
g(x,y)=f(x,y)-h(x,y)
f and h are 8-bit => g(x,y) [-255, 255]
1. (1)+255 (2) divide by 2
• The result won’t cover [0,255]
2. (1)-min(g) (2) *255/max(g)
Be careful of the dynamic range after the image
is processed.
33. Image subtraction example:
mask mode radiography
Inject contrast medium into bloodstream
original (head) difference image
注射碘液
拍攝影像
與原影像
相減
34. Image averaging
Noisy image g(x,y)=f(x,y)+η(x,y)
Suppose η(x,y) is uncorrelated and has zero
mean
original noise
Clear image Noisy image
35. Image averaging: noise
reduction
)
,
(
)
,
( y
x
f
y
x
g
E
2
)
,
(
2
)
,
(
1
y
x
y
x
g
K
期望值接近原圖
2
K
Averaging over K noisy images gi(x,y)
K
i
i y
x
g
K
y
x
g
1
)
,
(
1
)
,
(