Intensity Transformations
and Spatial Filtering
intensity transformations
spatial filtering
Definitions
• Intensity transformations operate on single pixels of an image for
tasks such as contrast manipulation and image thresholding
• Spatial filtering performs operations on the neighborhood of every
pixel in an image
Spatial processing
• Spatial domain: g(x, y) = T[ f (x, y)]
Contrast stretching Thresholding
NEGATIVIZIMI, LOGs
• s = L - 1 – r
• s = c log(1 + r)
POWER-LAW (GAMMA) TRANSFORMATIONS
• s = c r power γ
C = 1, γ = 0.6; 0.4; 03.
• A further decrease of gamma to 0.3
enhanced a little more detail in the
background, but began to reduce
contrast to the point where the image
started to have a very slight “washed-
out” appearance, especially in the
background.
• The best enhancement in terms of
contrast and discernible detail was
obtained with g = 0. 4
• A value of g = 0.3 is an approximate
limit below which contrast in this
particular image would be reduced to
an unacceptable level.
PIECEWISE LINEAR TRANSFORMATION FUNCTIONS
• The main disadvantage of these functions is that their specification requires considerable
user input
Intensity-Level Slicing
Bit-Plane Slicing
HISTOGRAM PROCESSING
HISTOGRAM EQUALIZATION
EXAMPLE
• Suppose that a 3-bit image (L = 8) of size 64 × 64, (MN = 4096)

Transformimi i intensitetit dhe filtrat.pptx