Module-1_Chapter3 Image Processing
Module-1_Chapter3 Image Processing
Image Processing
Dr. Ramesh Wadawadagi
Associate Professor
Department of CSE
SVIT, Bengaluru-560064
[email protected]
Visualizing Image Data (Grey scale)
Visualizing Image Data (Color image)
Point operators
● The simplest kinds of image processing
transforms are point operators, where each
output pixel’s value depends on only the
corresponding input pixel value.
● Examples of such operators include
brightness and contrast adjustments as well
as color correction and transformations.
● Point operators are also called as pixel
transforms.
Pixel transforms
● A general image processing operator is a function
that takes an input image and produces an output
image.
● In the continuous domain, this can be denoted as:
g(x) = h(f(x))
● where x is in the dimension of the input and output
varying,
g(x) = a(x)*f (x) + b(x)
1. Multiplication and addition with a constant.
For a = 1.4; b = 30
2. Dyadic (two-input) operator
● Another commonly used dyadic (two-input) operator
is the linear blend operator.
g(x) = (1 − α)f0(x) + αf1(x).
● By varying α from 0 → 1, this operator can be used
For γ = 2.2
Color transforms: Image composition and
matting
● Image matting is a technique that separates an object from
its background by estimating the transparency of each pixel
in an image.
● Vignetting
It's a key technique in image processing and is used in many
image and video editing applications.
● Formally, matting techniques take as input in image F,
which is assumed to be a convex combination of a
foreground image and a background image B as:
C = (1 − α)B + αF
● where α is the pixel's foreground opacity or matte.
Image matting and composition
Vignetting
Image Histogram:
● Image histogram shows frequency of pixel intensity values.
● x axis shows the gray level intensities
Vignetting
Vignetting
Histogram sliding
Brightness is changed by shifting the histogram to
left or right.
+50
Histogram equalization
●
Histogram equalization is used for enhancing the
contrast of the images.
●
The first two steps are calculating the PDF and
CDF.
●
All pixel values of the image will be equalized.
Histogram equalization
Image with its histogram.
Sample image with 8x8
Image details
Original Equalized
Histogram equalization
●
The entries in the weight kernel or mask h(k, l) are
often called the filter coefficients.
●
The above correlation operator can be more
compactly notated as g = f⊗h.
Neighborhood filtering
(65x0.1)+(98x0.1)+(123x0.1)+(65x0.1)+(96x0.2)+(115x0.1)+(63x0.1)+(91x0.1)+(107x0.1) = 92
Convolution filtering
●
A common variant of linear filter is convolution
operator.
●
where the sign of the offsets in f has been reversed,
This is called the convolution operator g = f∗h,
●
and h is then called the impulse response function.
Neighborhood operations: Examples
●
Such filters are known collectively as band-pass
filters, since they filter out both low and high
frequencies.
●
The (undirected) second derivative of a two-
dimensional image,
Band-pass and steerable filters
●
This is known as the Laplacian operator.
●
Blurring an image with a Gaussian and then taking
its Laplacian is equivalent to convolving directly
with the Laplacian of Gaussian (LoG) filter.
Laplacian of Gaussian Filter (LoG)
Second order steerable filter