You are on page 1of 15

CSE 833 Digital Image Processing

Lecture 2
Intensity Transformation and
Spatial Filtering
Spatial Domain vs. Transform Domain

► Spatial domain
image plane itself, directly process the intensity values of
the image plane

► Transform domain
process the transform coefficients, not directly process the
intensity values of the image plane

11/02/21 Copyright@Md. Shahid Uz Zaman 2


Spatial Domain Process

g ( x, y )  T [ f ( x, y )])
f ( x, y ) : input image
g ( x, y ) : output image
T : an operator on f defined over
a neighborhood of point ( x, y)

11/02/21 Copyright@Md. Shahid Uz Zaman 3


Spatial Domain Process

11/02/21 Copyright@Md. Shahid Uz Zaman 4


Spatial Domain Process

Intensity transformation function


s  T (r )

11/02/21 Copyright@Md. Shahid Uz Zaman 5


Some Basic Intensity Transformation
Functions

11/02/21 Copyright@Md. Shahid Uz Zaman 6


Image Negatives

Image negatives
s  L 1 r

11/02/21 Copyright@Md. Shahid Uz Zaman 7


Log Transformations

Log Transformations
s  c log(1  r )

11/02/21 Copyright@Md. Shahid Uz Zaman 8


Power-Law (Gamma) Transformations


s  cr

11/02/21 Copyright@Md. Shahid Uz Zaman 9


Example: Gamma Transformations

11/02/21 Copyright@Md. Shahid Uz Zaman 10


Piecewise-Linear Transformations

► Contrast Stretching
— Expands the range of intensity levels in an image so that it spans
the full intensity range of the recording medium or display device.

► Intensity-level Slicing
— Highlighting a specific range of intensities in an image often is of
interest.

11/02/21 Copyright@Md. Shahid Uz Zaman 11


11/02/21 Copyright@Md. Shahid Uz Zaman 12
Highlight the major
blood vessels and
study the shape of the
flow of the contrast
medium (to detect
blockages, etc.)

Measuring the actual


flow of the contrast
medium as a function
of time in a series of
11/02/21
images Copyright@Md. Shahid Uz Zaman 13
Bit-plane Slicing

11/02/21 Copyright@Md. Shahid Uz Zaman 14


Bit-plane Slicing

11/02/21 Copyright@Md. Shahid Uz Zaman 15

You might also like