SlideShare a Scribd company logo
1 of 100
Download to read offline
Digital image processing
GJ1644004A
Zhina Song๏ผŒ
504252932@qq.com
03 Image Intensity
Transformations
3.1 Review
Geometric transformation vs Intensity transformation
Spatial domain
The value at the
corresponding position
of the image does not
change, but the pixel
position changes
The pixel position in
the image does not
change, but the value
changes
3.1 Review
3.2 The key points and difficulties of this class
๏ƒ˜ Be familiar with the principal techniques used for intensity transformations
๏ƒ˜ Learn basic log transformations and power-law transformations
๏ƒ˜ Understand the realization process of the two transformations
3.3 Intensity Transformation
๏ตGraphical display of basic intensity transformation
0 L-1
L-1
Identical
transformation
0 L-1
L-1
0 L-1
L-1
3.3 Intensity Transformation
๏ตLog transformations ๐‘”๐‘” ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ = ๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘(1 + ๐‘“๐‘“(๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ))
3.3 Intensity Transformation
๏ตPower-law (gamma) transformations ๐‘”๐‘” ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ = ๐‘๐‘๐‘“๐‘“(๐‘ฅ๐‘ฅ,๐‘ฆ๐‘ฆ)๐›พ๐›พ
3.3 Intensity Transformation
๐›พ๐›พ = 3.0 , 4.0 and
5.0 respectively.
3.3 Intensity Transformation
๐›พ๐›พ = 0.6
3.3 Intensity Transformation
3.3 Intensity Transformation
๏ตPiecewise linear transformation functions
3.3 Intensity Transformation
๏ตIntensity-Level Slicing
Discussion
What are the advantages and disadvantages
of these transformations?
Trial and error
A certain basis
intensity distribution
peaks and valleys
Discuss the pros and cons of these methods:
๏ƒผ Reasonable or not
๏ƒผ Automatic degree
๏ƒผ Robustness
3.3 Intensity Transformation
Trial and error
A certain basis
intensity distribution
๏ตDiscussion
๏ƒ˜ You may ask, to achieve this result, I can directly use PS, what is the meaning of
learning these transformations?
๏ƒผ We know how to use PS to achieve effects more
quickly and accurately without a lot of trying
๏ƒผ We can perform different transformations in
different regions
๏ƒผ We can perform different transformations on
different grayscale ranges
Image
intensity
distribution
Histogram
Intensity histogram
Discrete values
3.4 Histogram equalization
Enhance information
Restore information
Understand information
Image
processing
How to effectively use histogram information to enhance the image and make it "clear"?
3.4 Histogram equalization
3.2 Histogram Processing
๏ตImage gray histogram
๏ƒผ No spatial information involved
๏ƒผ The same histogram distribution may
correspond to different images
๏ƒผ Information additivity
๏ƒผ Related to the amount of information
๏ตDescribe image with gray histogram
The grayscale of the image is concentrated
in the brighter area, and a considerable part
of them are concentrated in the part close to
1, resulting in overexposure of the image
The pixel distribution in the image
is โ€œpolarizedโ€, resulting in the loss
of image details
The distribution of image histogram is related to the quality of image to some extent
3.4 Histogram equalization
A โ€œclearโ€ image
The histogram reflects the clarity of the image, when it is evenly distributed, the image is โ€œclearerโ€
Histogram
equalization
each gray level should have a
certain number of gray values
Different objects should have
distinguishable grayscale variations
3.4 Histogram equalization
๏ต Transform discrete distributions into continuous probability distributions for analysis
๐‘๐‘ ๐‘Ÿ๐‘Ÿ โˆถ ๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘ ๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘ ๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“
๐‘ƒ๐‘ƒ ๐‘Ÿ๐‘Ÿ2 โˆ’ ๐‘ƒ๐‘ƒ ๐‘Ÿ๐‘Ÿ1 = โˆซ
๐‘Ÿ๐‘Ÿ1
๐‘Ÿ๐‘Ÿ2
๐‘๐‘ ๐‘Ÿ๐‘Ÿ ๐‘‘๐‘‘๐‘‘๐‘‘
Relationship before and after transformation:
๐‘ƒ๐‘ƒ ๐ท๐ท๐ด๐ด1 < ๐ท๐ท๐ด๐ด < ๐ท๐ท๐ด๐ด๐ด = ๐‘ƒ๐‘ƒ ๐ท๐ท๐ด๐ด๐ด โˆ’ ๐‘ƒ๐‘ƒ ๐ท๐ท๐ด๐ด1 = โˆซ
๐ท๐ท๐ด๐ด๐ด
๐ท๐ท๐ด๐ด๐ด
๐‘๐‘ ๐ท๐ท๐ท๐ท ๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘ = โˆซ
๐ท๐ท๐ต๐ต1
๐ท๐ท๐ต๐ต2
๐‘๐‘ ๐ท๐ท๐ต๐ต ๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘ = ๐‘ƒ๐‘ƒ ๐ท๐ท๐ต๐ต2 โˆ’ ๐‘ƒ๐‘ƒ ๐ท๐ท๐ต๐ต1
๐ป๐ป๐ป๐ป๐ป๐ป ๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š ๐‘ค๐‘ค๐‘ค๐‘ค๐‘ค๐‘ค๐‘ค๐‘ค ๐‘–๐‘–๐‘–๐‘– ๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘
H๐‘œ๐‘œ๐‘œ๐‘œ ๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ ๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก ๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž,
3.4 Histogram equalization
original image target image
For a random
distribution transform
to uniform distribution
original histogram
target histogram
L r s
S=T(r)
๐‘๐‘(๐‘Ÿ๐‘Ÿ๐‘–๐‘–) โ‰  ๐‘๐‘(๐‘Ÿ๐‘Ÿ๐‘—๐‘—) ๐‘๐‘(๐‘ ๐‘ ๐‘–๐‘–) = ๐‘๐‘(๐‘ ๐‘ ๐‘—๐‘—)
๐‘ƒ๐‘ƒ ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ๐‘–๐‘– < ๐‘ ๐‘  < ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ๐‘—๐‘— =
โˆซ๐‘Ÿ๐‘Ÿ๐’Š๐’Š
๐‘Ÿ๐‘Ÿ๐‘—๐‘—
๐‘๐‘ ๐‘Ÿ๐‘Ÿ ๐‘‘๐‘‘๐‘‘๐‘‘ =
1
๐ฟ๐ฟโˆ’1
ร— (๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ๐’‹๐’‹ โˆ’ ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ๐‘–๐‘– )
๐‘–๐‘–๐‘–๐‘– ๐‘Ÿ๐‘Ÿ๐‘—๐‘— > ๐‘Ÿ๐‘Ÿ๐‘–๐‘–, ๐‘ ๐‘ ๐‘—๐‘—> ๐‘ ๐‘ ๐‘–๐‘–
a b
๐‘ƒ๐‘ƒ(๐‘Ž๐‘Ž โ‰ค ๐‘ ๐‘  โ‰ค ๐‘๐‘)
๐‘ ๐‘  = ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ = (๐ฟ๐ฟ โˆ’ 1) ๏ฟฝ
0
๐‘Ÿ๐‘Ÿ
๐‘๐‘(๐‘Ÿ๐‘Ÿ) ๐‘‘๐‘‘๐‘‘๐‘‘
3.4 Histogram equalization
k refers to the different gray values in the original image
P(k) corresponds to the frequency of the value in all pixels of the original image
Histogram
๏ผˆ normalized ๏ผ‰
Unique Pixel of
๐’‡๐’‡(๐’™๐’™,๐’š๐’š)
๐’“๐’“๐Ÿ๐Ÿ ๐’“๐’“๐Ÿ๐Ÿ โ€ฆ ๐’“๐’“๐’‹๐’‹ โ€ฆ ๐’“๐’“๐’Œ๐’Œ
frequency of
๐’‡๐’‡(๐’™๐’™,๐’š๐’š)
๐’‘๐’‘๐Ÿ๐Ÿ ๐’‘๐’‘๐Ÿ๐Ÿ โ€ฆ ๐’‘๐’‘๐’‹๐’‹ โ€ฆ ๐’‘๐’‘๐’Œ๐’Œ
Pixel of
๐’ˆ๐’ˆ(๐’™๐’™, ๐’š๐’š)/(๐‘ณ๐‘ณ โˆ’ ๐Ÿ๐Ÿ)
๐’‘๐’‘๐Ÿ๐Ÿ ๐’‘๐’‘๐Ÿ๐Ÿ+๐’‘๐’‘๐Ÿ๐Ÿ โ€ฆ +โ€ฆ+๐’‘๐’‘๐’‹๐’‹ โ€ฆ +โ€ฆ+๐’‘๐’‘๐’Œ๐’Œ
Discrete situation: Gray value quantification The quantization value closest to its
value is taken as the final gray value
๐‘ ๐‘  = ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ = (๐ฟ๐ฟ โˆ’ 1) ๏ฟฝ
0
๐‘Ÿ๐‘Ÿ
๐‘๐‘(๐‘Ÿ๐‘Ÿ) ๐‘‘๐‘‘๐‘‘๐‘‘
3.4 Histogram equalization
๏ตExample
Gray value range 0~7
Quantification: arranging the closest values
3.4 Histogram equalization
๏ตExample
summary
The
transformed
frequencies are
not equal. Why?
3.4 Histogram equalization
๏ตExample
1. After histogram equalization, how does the gray level of
the new imagechange?
2. What are the advantages and disadvantages of gray
histogram equalization? (Human intervention required;
reversible; Is it valid in all cases?)
๏ƒผ Purpose of Histogram Equalization
๏ƒผ Principle of Histogram Equalization
๏ƒผ Specific operation of histogram equalization
3.4 Histogram equalization
Summary and Discussion
3.5 Histogram Processing
๏ตOther image enhancement methods
3.5 Histogram Processing
Linear stretch Histogram equalization
Transformation
function
Comparisonof
image
enhancement
๏ƒ˜ Simple transformation
๏ƒ˜ Can be transformed
back to the original
image
๏ƒ˜ Need to manually set
parameters
๏ƒ˜ Poor generality
๏ƒ˜ Less information loss
๏ƒ˜ Automated, no
parameters required
๏ƒ˜ Unable to restore
๏ƒ˜ Poor generality
original image HE
Some failed examples using HE
3.5 Histogram Processing
3.5 Histogram Processing
Some failed examples using HE
Some improvement methods
3.5 Histogram Processing
LOCAL HISTOGRAM PROCESSING
Some differences and consistency in the
local area need to be preserved, but they
are often destroyed because the global
calculated value is obviously different from
the local calculated value.
p.150-153
Some improvement methods
3.5 Histogram Processing
LOCAL HISTOGRAM PROCESSING
๏ตHistogram matching (specification)
3.5 Histogram Processing
When doing change
detection on two
geometrically
aligned images
|๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ โˆ’ ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ|
Histogram equalization where we take any histogram, any pixel distribution, and
we match it to something which is as uniform as possible.
3.5 Histogram Processing
๐’‡๐’‡(๐’™๐’™,๐’š๐’š)
Input
image
๐’ˆ๐’ˆ(๐’™๐’™, ๐’š๐’š)
Target
image
๐‘ ๐‘  = ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ = ๏ฟฝ
0
๐‘Ÿ๐‘Ÿ
๐‘๐‘๐‘Ÿ๐‘Ÿ(๐‘ข๐‘ข) ๐‘‘๐‘‘๐‘‘๐‘‘
๐‘ ๐‘  = ๐‘‡๐‘‡ z = ๏ฟฝ
0
๐‘Ÿ๐‘Ÿ
๐‘๐‘๐‘ง๐‘ง(๐‘ฃ๐‘ฃ) ๐‘‘๐‘‘๐‘‘๐‘‘
Histogram matching (specification)
3.5 Histogram Processing
๏ตHistogram matching (specification)
Just by doing the histogram equalizations, we can match any two desired distributions
Step1: Compute the histogram of the input image r, and do histogram equalization to
get the histogram-equalized image s1.
Step2: Compute the histogram of the target image z, and do histogram equalization
to get the histogram-equalized image s2.
Step3: For every value of s1, use the stored values of s2 from Step 2 to find the
corresponding value closest to s1 . Store these mappings from s1 to z
Step4: For every value of the image r, let the {๐‘Ÿ๐‘Ÿ๐‘˜๐‘˜} to be {๐‘ง๐‘ง๐‘˜๐‘˜
โ€ฒ
} ,by using the mappings
found in Step 3 to get the histogram-specified image.
The expressions of spatial domain processing
neighborhoodis of size 1 ร— 1
The function T can be linear or non-linear,
new gray value can be obtained by transforming
the original pixel value, or it can be obtained by
transforming the neighborhoodpixels.
3.6 Fundamentals of Spatial Filtering
If a pixel value in an
image is lost (or affected
by noise), can we use the
information in other
place to estimate its
value?
It can be approximately equal to the
average of all values of the entire image
It can be approximately given by the
average of several nearby pixel values
The value of each pixel changes by
globally
or
locally Related to its location
Spatial filtering modifies an image by
replacing the value of each pixel by a
function of the values of the pixel and its
neighbors.
linear spatial filter
nonlinear spatial filter
๐‘Œ๐‘Œ = ๐‘Š๐‘Š๐‘Š๐‘Š + ๐‘๐‘
3.6 Fundamentals of Spatial Filtering
๏ตThe mechanics of linear spatial
filtering
A linear spatial filter performs a sum-of-
products operation between an image f
and a filter kernel w
kernel :
an array ;
size defines the neighborhood of operation;
coefficients determine the nature of the filter;
also can be called mask, template, window
ไธ€็ง็‰นๅพๆๅ–ๅ™จ
3.6 Fundamentals of Spatial Filtering
๏ตThe mechanics of linear spatial filtering
The size of the kernel is odd, because we
must ensure that the current point we are
dealing with is in the exact center
m=2a+1; n=2b+1
3.6 Fundamentals of Spatial Filtering
3.6 Fundamentals of Spatial Filtering
๏ตThe mechanics of linear spatial filtering
with box kernels
of sizes 3 ร— 3,
11 ร— 11,
and 21 ร— 21
the larger the neighborhood, the
more pixels we are averaging
3.6 Fundamentals of Spatial Filtering
๏ตSpatial correlation and convolution
Correlationconsists of moving the
center of a kernel over an image, and
computing the sum of products at each
location.
VS
spatial convolution are the same,
except that the correlation kernel is
rotated by 180ยฐ
when the values of a kernel are symmetricaboutits center, correlationand convolutionyield sameresult
3.6 Fundamentals of Spatial Filtering
We can define correlation and convolution
so that every element of w(instead of just
its center) visits every pixel in f. This
requires that the starting configuration be
such that the right, lower corner of the kernel
coincides with the origin of the image.
the size of the resulting full correlation or
convolution array will be of size๏ผˆby padding๏ผ‰
Sv ร—S h ๏ผš
3.6 Fundamentals of Spatial Filtering
๏ตSpatial correlation and convolution
โ€œconvolving a kernel with an imageโ€ often is used to denote the sliding, sum-of-products process
Sometimes an image is filtered (i.e., convolved) sequentially, multistage filtering can be done in a
single filtering operation,
These convolution kernels can be combined and of course can be separated
๏ตpadding
3.7 Smoothing (Lowpass) Spatial Filters
๏ตAverage kernel
Becauserandomnoisetypicallyconsistsof sharp transitionsin intensity, an obviousapplicationof
smoothingis noisereduction.
The differencebetween each pixeland its surroundingpixels will be smaller than theoriginalones,
so smoothingfiltercan be used to smooththe imageand remove somefalsecontours.
BOX FILTER KERNELS
Smoothing is used to reduce irrelevantdetailin an image
The kernel should be normalized
with box kernels
of sizes 3 ร— 3,
11 ร— 11,
and 21 ร— 21
3.7 Smoothing (Lowpass) Spatial Filters
๏ตAverage kernel
BOX FILTER KERNELS -Set manually
image kernel no padding padding
?
3.7 Smoothing (Lowpass) Spatial Filters
๏ตAverage kernel
LOWPASS GAUSSIAN FILTER KERNELS
circularlysymmetric(also
called isotropic)kernel
Distances from
the center for
various sizes of
square kernels.
ๅœ†ๅฝขๅฏน็งฐ๏ผˆไนŸ็งฐไธบๅ„ๅ‘ๅŒๆ€ง๏ผ‰ๆ ธ
3.7 Smoothing (Lowpass) Spatial Filters
๏ตAverage kernel
LOWPASS GAUSSIAN FILTER KERNELS
K = 1
๐œŽ๐œŽ = 1
ๅฆ‚ๆžœๆ‰€ๆœ‰ๅ†…ๆ ธ้ƒฝๆ˜ฏ้ซ˜ๆ–ฏ๏ผŒๆˆ‘ไปฌๅฏไปฅ
ๅœจ่กจไธญไฝฟ็”จ็ป“ๆžœๆฅ่ฎก็ฎ—ๅคๅˆๅ†…ๆ ธ็š„
ๆ ‡ๅ‡†ๅๅทฎ๏ผˆๅนถๅฎšไน‰ๅฎƒ๏ผ‰๏ผŒ่€Œๆ— ้œ€ๅฎž
้™…ๆ‰ง่กŒๆ‰€ๆœ‰ๅ†…ๆ ธ็š„ๅท็งฏใ€‚
If all kernels are Gaussian, we can use the
composite kernel (and define it), without actually
performing the convolution of all kernels.
3.7 Smoothing (Lowpass) Spatial Filters
๏ตAverage kernel
kernel of size 21 ร— 21,
standard deviations 3.5
kernel of size 43 ร— 43,
standard deviations 3.5
box kernels
of sizes 11 ร— 11,
21 ร— 21
Comparison
3.7 Smoothing (Lowpass) Spatial Filters
๏ตAverage kernel Comparison
with a box kernel of size 71 ร— 71
Gaussian kernel of size 151
ร— 151, with K = 1 and ๐œŽ๐œŽ= 25
โ€ข box filter producedlinearsmoothing, with the transitionfrom blackto whitehavingthe shapeof a ramp
โ€ข the Gaussianfilter yieldedsignificantlysmoother results aroundthe edge transitions
3.7 Smoothing (Lowpass) Spatial Filters
Applications
Using lowpass filtering and thresholding for region extraction
2566 ร— 2758 Hubble Telescope
image
Result of lowpass filtering
with a Gaussian kernel
size 151 ร— 151, ๐œŽ๐œŽ = 25
Result of thresholding the filtered
image
๏ตAverage kernel
3.7 Smoothing (Lowpass) Spatial Filters
Applications
Shading correction using lowpass filtering
Lowpass filtering is a rugged, simple
method for estimating shading patterns
512 ร— 512 Gaussian kernel (four
times the size of squares), K = 1, and
๐œŽ๐œŽ= 128 (equal to the size of squares)
๏ตAverage kernel
3.7 Smoothing (Lowpass) Spatial Filters
๏ตOrder-statistic (nonlinear) filters
๏ฌ response is based on ordering (ranking) the pixels contained in the region
encompassed by the filter
๏ฌ Smoothing is achieved by replacing the value of the center pixel with the value
determined by the ranking result.
๏ฌ median filter: replaces the value of the center pixel by the median of the intensity
values in the neighborhood of that pixel
FORCE POINTS TO BE MORE LIKE THEIR NEIGHBORS
median filter
3.7 Smoothing (Lowpass) Spatial Filters
๏ตOrder-statistic (nonlinear) filters median filter
image corrupted by salt-
and-pepper noise
result using 19 ร— 19
Gaussian lowpass filter
kernel with ๐œŽ๐œŽ= 3
result using 7 ร— 7
median filter
3.8 Sharpening (Highpass) Spatial Filters
๏ตDistribution of grayscale changes in the image
Scan line
The gray distribution of the image
in the direction of the scan line
First derivative
Second derivative
3.8 Sharpening (Highpass) Spatial Filters
Step pulse slope
First
derivative
Second
derivative
3.8 Sharpening (Highpass) Spatial Filters
The gradientof an image f at coordinates(x, y) is defined as the two dimensional column vector
๏ตImage gradient
The magnitude (length) of vector f , denotedas M(x, y)
First derivative
3.8 Sharpening (Highpass) Spatial Filters
๏ตImage gradient๏ผš derivative operation --> differential operation
For discrete images, differentiation can be approximated by difference
||๐›ป๐›ป๐‘“๐‘“|| = (๐‘“๐‘“ ๐‘ฅ๐‘ฅ,๐‘ฆ๐‘ฆ โˆ’ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ + 1, ๐‘ฆ๐‘ฆ )2+(๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ โˆ’ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ + 1 )2
computationally to approximate the squares and square root operations by absolute values
๐›ป๐›ป๐‘“๐‘“ โ‰ˆ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ โˆ’ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ + 1,๐‘ฆ๐‘ฆ + |๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ โˆ’ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ + 1 |
The magnitude of the gradient is approximated as the (absolute) sum
of the adjacent pixel differencesalong the horizontal and vertical axes
3.8 Sharpening (Highpass) Spatial Filters
โ‘  The pixel value of the new image is directly replaced by the gradient of the original image
โ‘ก The output image is according to the gradient threshold
๏ตImage Sharpening ๅ›พๅƒ้”ๅŒ–
3.8 Sharpening (Highpass) Spatial Filters
๏ตImage Sharpening using gradient
The edges of the image are enhanced, and some noise is also amplified
Robert Operator
3.8 Sharpening (Highpass) Spatial Filters
The differential sum of the two
directions after rotating ยฑ45ยฐ
The area involved in the calculation is too
small, and the obtained edge is weak
๏ตImage Sharpening using gradient
3.8 Sharpening (Highpass) Spatial Filters
๏ตImage Sharpening using gradient 3*3 kernel
image
x
y
Maintaining directional consistency in the calculation, 3*3 can be viewed as a
superposition of multiple 2*2 regions with respect to the current pixel position.
image
x
y Sobel operators
๏ตImage Sharpening using gradient
3.8 Sharpening (Highpass) Spatial Filters
Sobel ็ฎ—ๅญๅž‚็›ดๆ–นๅ‘
Sobel ็ฎ—ๅญๆฐดๅนณๆ–นๅ‘ Sobel ็ฎ—ๅญ็ปผๅˆๅ ๅŠ 
Results obtained by extracting the
edges using Sobel operator
Enhancedimage
3.8 Sharpening (Highpass) Spatial Filters
๏ตsecond-order derivative of f (x) ไบŒ้˜ถๅพฎๅˆ†๏ผŒๅฏปๆ‰พ็ชๅ˜ๅŒบๅŸŸ
3.8Sharpening (Highpass) Spatial Filters
๏ตsecond-order derivative of f (x)
Laplacian operators
3.8 Sharpening (Highpass) Spatial Filters
๏ตsecond-order derivative of f (x) Laplacian operators
3.8 Sharpening (Highpass) Spatial Filters
๏ตsecond-order derivative of f (x)
Flexible extensions of the Laplace operator
1 -2 1
-2 4 -2
1 -2 1
Background features can be โ€œrecoveredโ€ while still preserving the sharpening effect of the
Laplacian by adding the Laplacian image to the original.
Let c = โˆ’1
The latter has a more
pronounced sharpening effect
ไธ€้˜ถๅพฎๅˆ†ๅ’ŒไบŒ้˜ถๅพฎๅˆ†็ฎ—ๅญ็š„้”ๅŒ–ๅŒบๅˆซ
ไธ€้˜ถๅพฎๅˆ†ๅ’ŒไบŒ้˜ถๅพฎๅˆ†็ฎ—ๅญ็š„้”ๅŒ–ๅŒบๅˆซ
ไธ€้˜ถๅพฎๅˆ†ๅ’ŒไบŒ้˜ถๅพฎๅˆ†็ฎ—ๅญ็š„้”ๅŒ–ๅŒบๅˆซ
3.7 HIGHPASS, BANDREJECT, AND BANDPASS FILTERS
3.7 Unsharp Masking And Highboost Filtering
Add a weighted portion of the mask back to the original image:
The mask
3.7 Unsharp Masking And Highboost Filtering
3.8 Combining Spatial Enhancement Methods
a nuclear
whole body
bone scan
image
Objective: show more of the skeletal detail
method: enhance the edges
Laplacian of image Sharpened image
3.8 Combining Spatial Enhancement Methods
Objective: show more of the skeletal detail
method: enhance the edges and suppress noise
Sobel gradient of image Sobel image smoothed with a 5 ร— 5 box filter
Mask image formed by
the product of (b) and (e).
3.8 Combining Spatial Enhancement Methods
Objective: show more of the skeletal detail method: enhance the edges and suppress noise
Sharpened image obtained
by the adding images (a) and (f).
summry
Image basic geometric transformation
Image Intensity Transformations
Spatial Filtering
Homework Deadline๏ผš before 9 April
1. Consider that the maximum value of an image ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿis M and its minimum is m
(mโ‰ M). An intensity transform that maps the image ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ onto ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ such that the
maximal value of ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ is L and the minimal value is๏ผš
2. Why global discrete histogram equalization does not, in general, yield a flat
(uniform) histogram?
A Because images are in color.
B Becausethe histogramequalizationmathematicalderivationdoesnโ€™texist for discretesignals.
C In global histogramequalization, all pixels with the same value are mapped to same value.
D Actually, global discretehistogramequalizationalways yields flat histograms by definition.
Homework
3. Discrete histogram equalization is an invertible operation, meaning we can
recover the original image from the equalized one by inverting the operation,
since?
A Actually, histogram equalization is in general non-invertible.
B There is a unique histogram equalization formula per image.
C Pixels with different values are mapped to pixels with different values.
D Images have unique histograms.
4. Given an image with only 3 pixels and 4 possible values for each one. Determine
the number of possible different images and the number of possible different
histograms. How many images and histograms?
Homework
5. This image is a 6*6 grayscale image I(x, y) , with 4 gray levels
(x = 0, 1, 2, ... 5; y = 0, 1, 2, ..., 5) , the value of each point in the
figure represents the gray value of the image pixels.
1) Calculate the histogram of the image
2) Using histogram equalization to process this image (write the
process details )
3) Write the new histogram after histogram equalization.
Homework
6. Which integer number minimizes
7. Which integer number minimizes
8. Applying a 3ร—3 averaging filter to an image a large (infinity) number of times is:
A Equivalent to replacing all the pixel values by 0..
B Equivalent to replacing all the pixel values by the average of the values in the
original image.
C The same as applying it a single time.
D The same as applying a median filter.
9. In the original image used to generate the three blurred images shown, the vertical
bars are 5 pixels wide, 100 pixels high, and their separation is 20 pixels. The image was
blurred using square box kernels of sizes 23, 25, and 45 elements on the side,
respectively. The vertical bars on the left, lower part of (a) and (c) are blurred, but a
clear separation exists between them. However, the bars have merged in image (b),
despite the fact that the kernel used to generate this image is much smaller than the
kernel that produced image (c). Explain the reason for this.
Homework
Homework
10. 3.40๏ผˆp135๏ผ‰

More Related Content

Similar to 2024-master dityv5y65v56u4b6u64u46p 0318-25.pdf

3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
ย 
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISIONchapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISIONshesnasuneer
ย 
Image pre processing
Image pre processingImage pre processing
Image pre processingAshish Kumar
ย 
Image Processing
Image ProcessingImage Processing
Image ProcessingTuyen Pham
ย 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point ProcessingGayathri31093
ย 
COM2304: Intensity Transformation and Spatial Filtering โ€“ I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering โ€“ I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering โ€“ I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering โ€“ I (Intensity Transf...Hemantha Kulathilake
ย 
regions
regionsregions
regionsmjbahmani
ย 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringShajun Nisha
ย 
project presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxproject presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxNiladriBhattacharjee10
ย 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)Mathankumar S
ย 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image EnhancementMathankumar S
ย 
05 histogram processing DIP
05 histogram processing DIP05 histogram processing DIP
05 histogram processing DIPbabak danyal
ย 
BilateralFiltering
BilateralFilteringBilateralFiltering
BilateralFilteringJacob Logas
ย 
ModuleII090.pdf
ModuleII090.pdfModuleII090.pdf
ModuleII090.pdfSamrajECE
ย 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1shabanam tamboli
ย 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptShabanamTamboli1
ย 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
ย 

Similar to 2024-master dityv5y65v56u4b6u64u46p 0318-25.pdf (20)

3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
ย 
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISIONchapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
ย 
Image pre processing
Image pre processingImage pre processing
Image pre processing
ย 
h.pdf
h.pdfh.pdf
h.pdf
ย 
Image Processing
Image ProcessingImage Processing
Image Processing
ย 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
ย 
COM2304: Intensity Transformation and Spatial Filtering โ€“ I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering โ€“ I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering โ€“ I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering โ€“ I (Intensity Transf...
ย 
regions
regionsregions
regions
ย 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
ย 
annotated-chap-3-gw.ppt
annotated-chap-3-gw.pptannotated-chap-3-gw.ppt
annotated-chap-3-gw.ppt
ย 
project presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxproject presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptx
ย 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)
ย 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image Enhancement
ย 
05 histogram processing DIP
05 histogram processing DIP05 histogram processing DIP
05 histogram processing DIP
ย 
Histogram processing
Histogram processingHistogram processing
Histogram processing
ย 
BilateralFiltering
BilateralFilteringBilateralFiltering
BilateralFiltering
ย 
ModuleII090.pdf
ModuleII090.pdfModuleII090.pdf
ModuleII090.pdf
ย 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
ย 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.ppt
ย 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
ย 

Recently uploaded

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
ย 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
ย 
Scaling API-first โ€“ The story of a global engineering organization
Scaling API-first โ€“ The story of a global engineering organizationScaling API-first โ€“ The story of a global engineering organization
Scaling API-first โ€“ The story of a global engineering organizationRadu Cotescu
ย 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
ย 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
ย 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
ย 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service ๐Ÿธ 8923113531 ๐ŸŽฐ Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service ๐Ÿธ 8923113531 ๐ŸŽฐ Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service ๐Ÿธ 8923113531 ๐ŸŽฐ Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service ๐Ÿธ 8923113531 ๐ŸŽฐ Avail...gurkirankumar98700
ย 
๐Ÿฌ The future of MySQL is Postgres ๐Ÿ˜
๐Ÿฌ  The future of MySQL is Postgres   ๐Ÿ˜๐Ÿฌ  The future of MySQL is Postgres   ๐Ÿ˜
๐Ÿฌ The future of MySQL is Postgres ๐Ÿ˜RTylerCroy
ย 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
ย 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
ย 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
ย 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
ย 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
ย 
FULL ENJOY ๐Ÿ” 8264348440 ๐Ÿ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY ๐Ÿ” 8264348440 ๐Ÿ” Call Girls in Diplomatic Enclave | DelhiFULL ENJOY ๐Ÿ” 8264348440 ๐Ÿ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY ๐Ÿ” 8264348440 ๐Ÿ” Call Girls in Diplomatic Enclave | Delhisoniya singh
ย 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
ย 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
ย 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
ย 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
ย 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
ย 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
ย 

Recently uploaded (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
ย 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
ย 
Scaling API-first โ€“ The story of a global engineering organization
Scaling API-first โ€“ The story of a global engineering organizationScaling API-first โ€“ The story of a global engineering organization
Scaling API-first โ€“ The story of a global engineering organization
ย 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
ย 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
ย 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
ย 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service ๐Ÿธ 8923113531 ๐ŸŽฐ Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service ๐Ÿธ 8923113531 ๐ŸŽฐ Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service ๐Ÿธ 8923113531 ๐ŸŽฐ Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service ๐Ÿธ 8923113531 ๐ŸŽฐ Avail...
ย 
๐Ÿฌ The future of MySQL is Postgres ๐Ÿ˜
๐Ÿฌ  The future of MySQL is Postgres   ๐Ÿ˜๐Ÿฌ  The future of MySQL is Postgres   ๐Ÿ˜
๐Ÿฌ The future of MySQL is Postgres ๐Ÿ˜
ย 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
ย 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
ย 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
ย 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
ย 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
ย 
FULL ENJOY ๐Ÿ” 8264348440 ๐Ÿ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY ๐Ÿ” 8264348440 ๐Ÿ” Call Girls in Diplomatic Enclave | DelhiFULL ENJOY ๐Ÿ” 8264348440 ๐Ÿ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY ๐Ÿ” 8264348440 ๐Ÿ” Call Girls in Diplomatic Enclave | Delhi
ย 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
ย 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
ย 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
ย 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
ย 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
ย 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
ย 

2024-master dityv5y65v56u4b6u64u46p 0318-25.pdf

  • 1. Digital image processing GJ1644004A Zhina Song๏ผŒ 504252932@qq.com
  • 3. 3.1 Review Geometric transformation vs Intensity transformation Spatial domain The value at the corresponding position of the image does not change, but the pixel position changes The pixel position in the image does not change, but the value changes
  • 5. 3.2 The key points and difficulties of this class ๏ƒ˜ Be familiar with the principal techniques used for intensity transformations ๏ƒ˜ Learn basic log transformations and power-law transformations ๏ƒ˜ Understand the realization process of the two transformations
  • 6. 3.3 Intensity Transformation ๏ตGraphical display of basic intensity transformation 0 L-1 L-1 Identical transformation 0 L-1 L-1 0 L-1 L-1
  • 7. 3.3 Intensity Transformation ๏ตLog transformations ๐‘”๐‘” ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ = ๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘(1 + ๐‘“๐‘“(๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ))
  • 8.
  • 9. 3.3 Intensity Transformation ๏ตPower-law (gamma) transformations ๐‘”๐‘” ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ = ๐‘๐‘๐‘“๐‘“(๐‘ฅ๐‘ฅ,๐‘ฆ๐‘ฆ)๐›พ๐›พ
  • 10. 3.3 Intensity Transformation ๐›พ๐›พ = 3.0 , 4.0 and 5.0 respectively.
  • 13. 3.3 Intensity Transformation ๏ตPiecewise linear transformation functions
  • 15. Discussion What are the advantages and disadvantages of these transformations? Trial and error A certain basis intensity distribution peaks and valleys Discuss the pros and cons of these methods: ๏ƒผ Reasonable or not ๏ƒผ Automatic degree ๏ƒผ Robustness
  • 16. 3.3 Intensity Transformation Trial and error A certain basis intensity distribution ๏ตDiscussion ๏ƒ˜ You may ask, to achieve this result, I can directly use PS, what is the meaning of learning these transformations? ๏ƒผ We know how to use PS to achieve effects more quickly and accurately without a lot of trying ๏ƒผ We can perform different transformations in different regions ๏ƒผ We can perform different transformations on different grayscale ranges
  • 17.
  • 19. Enhance information Restore information Understand information Image processing How to effectively use histogram information to enhance the image and make it "clear"? 3.4 Histogram equalization
  • 20. 3.2 Histogram Processing ๏ตImage gray histogram ๏ƒผ No spatial information involved ๏ƒผ The same histogram distribution may correspond to different images ๏ƒผ Information additivity ๏ƒผ Related to the amount of information
  • 21. ๏ตDescribe image with gray histogram The grayscale of the image is concentrated in the brighter area, and a considerable part of them are concentrated in the part close to 1, resulting in overexposure of the image The pixel distribution in the image is โ€œpolarizedโ€, resulting in the loss of image details The distribution of image histogram is related to the quality of image to some extent 3.4 Histogram equalization
  • 22. A โ€œclearโ€ image The histogram reflects the clarity of the image, when it is evenly distributed, the image is โ€œclearerโ€ Histogram equalization each gray level should have a certain number of gray values Different objects should have distinguishable grayscale variations 3.4 Histogram equalization
  • 23. ๏ต Transform discrete distributions into continuous probability distributions for analysis ๐‘๐‘ ๐‘Ÿ๐‘Ÿ โˆถ ๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘ ๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘ ๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“๐‘“ ๐‘ƒ๐‘ƒ ๐‘Ÿ๐‘Ÿ2 โˆ’ ๐‘ƒ๐‘ƒ ๐‘Ÿ๐‘Ÿ1 = โˆซ ๐‘Ÿ๐‘Ÿ1 ๐‘Ÿ๐‘Ÿ2 ๐‘๐‘ ๐‘Ÿ๐‘Ÿ ๐‘‘๐‘‘๐‘‘๐‘‘ Relationship before and after transformation: ๐‘ƒ๐‘ƒ ๐ท๐ท๐ด๐ด1 < ๐ท๐ท๐ด๐ด < ๐ท๐ท๐ด๐ด๐ด = ๐‘ƒ๐‘ƒ ๐ท๐ท๐ด๐ด๐ด โˆ’ ๐‘ƒ๐‘ƒ ๐ท๐ท๐ด๐ด1 = โˆซ ๐ท๐ท๐ด๐ด๐ด ๐ท๐ท๐ด๐ด๐ด ๐‘๐‘ ๐ท๐ท๐ท๐ท ๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘ = โˆซ ๐ท๐ท๐ต๐ต1 ๐ท๐ท๐ต๐ต2 ๐‘๐‘ ๐ท๐ท๐ต๐ต ๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘๐‘‘ = ๐‘ƒ๐‘ƒ ๐ท๐ท๐ต๐ต2 โˆ’ ๐‘ƒ๐‘ƒ ๐ท๐ท๐ต๐ต1 ๐ป๐ป๐ป๐ป๐ป๐ป ๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š ๐‘ค๐‘ค๐‘ค๐‘ค๐‘ค๐‘ค๐‘ค๐‘ค ๐‘–๐‘–๐‘–๐‘– ๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘๐‘ H๐‘œ๐‘œ๐‘œ๐‘œ ๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š๐‘š ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ๐‘ฃ ๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก ๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž๐‘Ž, 3.4 Histogram equalization
  • 24. original image target image For a random distribution transform to uniform distribution original histogram target histogram L r s S=T(r) ๐‘๐‘(๐‘Ÿ๐‘Ÿ๐‘–๐‘–) โ‰  ๐‘๐‘(๐‘Ÿ๐‘Ÿ๐‘—๐‘—) ๐‘๐‘(๐‘ ๐‘ ๐‘–๐‘–) = ๐‘๐‘(๐‘ ๐‘ ๐‘—๐‘—) ๐‘ƒ๐‘ƒ ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ๐‘–๐‘– < ๐‘ ๐‘  < ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ๐‘—๐‘— = โˆซ๐‘Ÿ๐‘Ÿ๐’Š๐’Š ๐‘Ÿ๐‘Ÿ๐‘—๐‘— ๐‘๐‘ ๐‘Ÿ๐‘Ÿ ๐‘‘๐‘‘๐‘‘๐‘‘ = 1 ๐ฟ๐ฟโˆ’1 ร— (๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ๐’‹๐’‹ โˆ’ ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ๐‘–๐‘– ) ๐‘–๐‘–๐‘–๐‘– ๐‘Ÿ๐‘Ÿ๐‘—๐‘— > ๐‘Ÿ๐‘Ÿ๐‘–๐‘–, ๐‘ ๐‘ ๐‘—๐‘—> ๐‘ ๐‘ ๐‘–๐‘– a b ๐‘ƒ๐‘ƒ(๐‘Ž๐‘Ž โ‰ค ๐‘ ๐‘  โ‰ค ๐‘๐‘) ๐‘ ๐‘  = ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ = (๐ฟ๐ฟ โˆ’ 1) ๏ฟฝ 0 ๐‘Ÿ๐‘Ÿ ๐‘๐‘(๐‘Ÿ๐‘Ÿ) ๐‘‘๐‘‘๐‘‘๐‘‘ 3.4 Histogram equalization
  • 25. k refers to the different gray values in the original image P(k) corresponds to the frequency of the value in all pixels of the original image Histogram ๏ผˆ normalized ๏ผ‰ Unique Pixel of ๐’‡๐’‡(๐’™๐’™,๐’š๐’š) ๐’“๐’“๐Ÿ๐Ÿ ๐’“๐’“๐Ÿ๐Ÿ โ€ฆ ๐’“๐’“๐’‹๐’‹ โ€ฆ ๐’“๐’“๐’Œ๐’Œ frequency of ๐’‡๐’‡(๐’™๐’™,๐’š๐’š) ๐’‘๐’‘๐Ÿ๐Ÿ ๐’‘๐’‘๐Ÿ๐Ÿ โ€ฆ ๐’‘๐’‘๐’‹๐’‹ โ€ฆ ๐’‘๐’‘๐’Œ๐’Œ Pixel of ๐’ˆ๐’ˆ(๐’™๐’™, ๐’š๐’š)/(๐‘ณ๐‘ณ โˆ’ ๐Ÿ๐Ÿ) ๐’‘๐’‘๐Ÿ๐Ÿ ๐’‘๐’‘๐Ÿ๐Ÿ+๐’‘๐’‘๐Ÿ๐Ÿ โ€ฆ +โ€ฆ+๐’‘๐’‘๐’‹๐’‹ โ€ฆ +โ€ฆ+๐’‘๐’‘๐’Œ๐’Œ Discrete situation: Gray value quantification The quantization value closest to its value is taken as the final gray value ๐‘ ๐‘  = ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ = (๐ฟ๐ฟ โˆ’ 1) ๏ฟฝ 0 ๐‘Ÿ๐‘Ÿ ๐‘๐‘(๐‘Ÿ๐‘Ÿ) ๐‘‘๐‘‘๐‘‘๐‘‘ 3.4 Histogram equalization
  • 27. Quantification: arranging the closest values 3.4 Histogram equalization ๏ตExample
  • 28. summary The transformed frequencies are not equal. Why? 3.4 Histogram equalization ๏ตExample
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36. 1. After histogram equalization, how does the gray level of the new imagechange? 2. What are the advantages and disadvantages of gray histogram equalization? (Human intervention required; reversible; Is it valid in all cases?) ๏ƒผ Purpose of Histogram Equalization ๏ƒผ Principle of Histogram Equalization ๏ƒผ Specific operation of histogram equalization 3.4 Histogram equalization Summary and Discussion
  • 37. 3.5 Histogram Processing ๏ตOther image enhancement methods
  • 38.
  • 39. 3.5 Histogram Processing Linear stretch Histogram equalization Transformation function Comparisonof image enhancement ๏ƒ˜ Simple transformation ๏ƒ˜ Can be transformed back to the original image ๏ƒ˜ Need to manually set parameters ๏ƒ˜ Poor generality ๏ƒ˜ Less information loss ๏ƒ˜ Automated, no parameters required ๏ƒ˜ Unable to restore ๏ƒ˜ Poor generality
  • 40. original image HE Some failed examples using HE 3.5 Histogram Processing
  • 41. 3.5 Histogram Processing Some failed examples using HE
  • 42. Some improvement methods 3.5 Histogram Processing LOCAL HISTOGRAM PROCESSING Some differences and consistency in the local area need to be preserved, but they are often destroyed because the global calculated value is obviously different from the local calculated value. p.150-153
  • 43. Some improvement methods 3.5 Histogram Processing LOCAL HISTOGRAM PROCESSING
  • 44. ๏ตHistogram matching (specification) 3.5 Histogram Processing When doing change detection on two geometrically aligned images |๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ โˆ’ ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ|
  • 45. Histogram equalization where we take any histogram, any pixel distribution, and we match it to something which is as uniform as possible. 3.5 Histogram Processing ๐’‡๐’‡(๐’™๐’™,๐’š๐’š) Input image ๐’ˆ๐’ˆ(๐’™๐’™, ๐’š๐’š) Target image ๐‘ ๐‘  = ๐‘‡๐‘‡ ๐‘Ÿ๐‘Ÿ = ๏ฟฝ 0 ๐‘Ÿ๐‘Ÿ ๐‘๐‘๐‘Ÿ๐‘Ÿ(๐‘ข๐‘ข) ๐‘‘๐‘‘๐‘‘๐‘‘ ๐‘ ๐‘  = ๐‘‡๐‘‡ z = ๏ฟฝ 0 ๐‘Ÿ๐‘Ÿ ๐‘๐‘๐‘ง๐‘ง(๐‘ฃ๐‘ฃ) ๐‘‘๐‘‘๐‘‘๐‘‘ Histogram matching (specification)
  • 46. 3.5 Histogram Processing ๏ตHistogram matching (specification) Just by doing the histogram equalizations, we can match any two desired distributions Step1: Compute the histogram of the input image r, and do histogram equalization to get the histogram-equalized image s1. Step2: Compute the histogram of the target image z, and do histogram equalization to get the histogram-equalized image s2. Step3: For every value of s1, use the stored values of s2 from Step 2 to find the corresponding value closest to s1 . Store these mappings from s1 to z Step4: For every value of the image r, let the {๐‘Ÿ๐‘Ÿ๐‘˜๐‘˜} to be {๐‘ง๐‘ง๐‘˜๐‘˜ โ€ฒ } ,by using the mappings found in Step 3 to get the histogram-specified image.
  • 47. The expressions of spatial domain processing neighborhoodis of size 1 ร— 1 The function T can be linear or non-linear, new gray value can be obtained by transforming the original pixel value, or it can be obtained by transforming the neighborhoodpixels.
  • 48. 3.6 Fundamentals of Spatial Filtering If a pixel value in an image is lost (or affected by noise), can we use the information in other place to estimate its value? It can be approximately equal to the average of all values of the entire image It can be approximately given by the average of several nearby pixel values The value of each pixel changes by globally or locally Related to its location
  • 49. Spatial filtering modifies an image by replacing the value of each pixel by a function of the values of the pixel and its neighbors. linear spatial filter nonlinear spatial filter ๐‘Œ๐‘Œ = ๐‘Š๐‘Š๐‘Š๐‘Š + ๐‘๐‘ 3.6 Fundamentals of Spatial Filtering
  • 50. ๏ตThe mechanics of linear spatial filtering A linear spatial filter performs a sum-of- products operation between an image f and a filter kernel w kernel : an array ; size defines the neighborhood of operation; coefficients determine the nature of the filter; also can be called mask, template, window ไธ€็ง็‰นๅพๆๅ–ๅ™จ 3.6 Fundamentals of Spatial Filtering
  • 51. ๏ตThe mechanics of linear spatial filtering The size of the kernel is odd, because we must ensure that the current point we are dealing with is in the exact center m=2a+1; n=2b+1 3.6 Fundamentals of Spatial Filtering
  • 52. 3.6 Fundamentals of Spatial Filtering ๏ตThe mechanics of linear spatial filtering with box kernels of sizes 3 ร— 3, 11 ร— 11, and 21 ร— 21 the larger the neighborhood, the more pixels we are averaging
  • 53. 3.6 Fundamentals of Spatial Filtering ๏ตSpatial correlation and convolution Correlationconsists of moving the center of a kernel over an image, and computing the sum of products at each location. VS spatial convolution are the same, except that the correlation kernel is rotated by 180ยฐ when the values of a kernel are symmetricaboutits center, correlationand convolutionyield sameresult
  • 54. 3.6 Fundamentals of Spatial Filtering We can define correlation and convolution so that every element of w(instead of just its center) visits every pixel in f. This requires that the starting configuration be such that the right, lower corner of the kernel coincides with the origin of the image. the size of the resulting full correlation or convolution array will be of size๏ผˆby padding๏ผ‰ Sv ร—S h ๏ผš
  • 55. 3.6 Fundamentals of Spatial Filtering ๏ตSpatial correlation and convolution โ€œconvolving a kernel with an imageโ€ often is used to denote the sliding, sum-of-products process Sometimes an image is filtered (i.e., convolved) sequentially, multistage filtering can be done in a single filtering operation, These convolution kernels can be combined and of course can be separated
  • 57. 3.7 Smoothing (Lowpass) Spatial Filters ๏ตAverage kernel Becauserandomnoisetypicallyconsistsof sharp transitionsin intensity, an obviousapplicationof smoothingis noisereduction. The differencebetween each pixeland its surroundingpixels will be smaller than theoriginalones, so smoothingfiltercan be used to smooththe imageand remove somefalsecontours. BOX FILTER KERNELS Smoothing is used to reduce irrelevantdetailin an image The kernel should be normalized with box kernels of sizes 3 ร— 3, 11 ร— 11, and 21 ร— 21
  • 58. 3.7 Smoothing (Lowpass) Spatial Filters ๏ตAverage kernel BOX FILTER KERNELS -Set manually image kernel no padding padding ?
  • 59. 3.7 Smoothing (Lowpass) Spatial Filters ๏ตAverage kernel LOWPASS GAUSSIAN FILTER KERNELS circularlysymmetric(also called isotropic)kernel Distances from the center for various sizes of square kernels. ๅœ†ๅฝขๅฏน็งฐ๏ผˆไนŸ็งฐไธบๅ„ๅ‘ๅŒๆ€ง๏ผ‰ๆ ธ
  • 60. 3.7 Smoothing (Lowpass) Spatial Filters ๏ตAverage kernel LOWPASS GAUSSIAN FILTER KERNELS K = 1 ๐œŽ๐œŽ = 1 ๅฆ‚ๆžœๆ‰€ๆœ‰ๅ†…ๆ ธ้ƒฝๆ˜ฏ้ซ˜ๆ–ฏ๏ผŒๆˆ‘ไปฌๅฏไปฅ ๅœจ่กจไธญไฝฟ็”จ็ป“ๆžœๆฅ่ฎก็ฎ—ๅคๅˆๅ†…ๆ ธ็š„ ๆ ‡ๅ‡†ๅๅทฎ๏ผˆๅนถๅฎšไน‰ๅฎƒ๏ผ‰๏ผŒ่€Œๆ— ้œ€ๅฎž ้™…ๆ‰ง่กŒๆ‰€ๆœ‰ๅ†…ๆ ธ็š„ๅท็งฏใ€‚ If all kernels are Gaussian, we can use the composite kernel (and define it), without actually performing the convolution of all kernels.
  • 61. 3.7 Smoothing (Lowpass) Spatial Filters ๏ตAverage kernel kernel of size 21 ร— 21, standard deviations 3.5 kernel of size 43 ร— 43, standard deviations 3.5 box kernels of sizes 11 ร— 11, 21 ร— 21 Comparison
  • 62. 3.7 Smoothing (Lowpass) Spatial Filters ๏ตAverage kernel Comparison with a box kernel of size 71 ร— 71 Gaussian kernel of size 151 ร— 151, with K = 1 and ๐œŽ๐œŽ= 25 โ€ข box filter producedlinearsmoothing, with the transitionfrom blackto whitehavingthe shapeof a ramp โ€ข the Gaussianfilter yieldedsignificantlysmoother results aroundthe edge transitions
  • 63. 3.7 Smoothing (Lowpass) Spatial Filters Applications Using lowpass filtering and thresholding for region extraction 2566 ร— 2758 Hubble Telescope image Result of lowpass filtering with a Gaussian kernel size 151 ร— 151, ๐œŽ๐œŽ = 25 Result of thresholding the filtered image ๏ตAverage kernel
  • 64. 3.7 Smoothing (Lowpass) Spatial Filters Applications Shading correction using lowpass filtering Lowpass filtering is a rugged, simple method for estimating shading patterns 512 ร— 512 Gaussian kernel (four times the size of squares), K = 1, and ๐œŽ๐œŽ= 128 (equal to the size of squares) ๏ตAverage kernel
  • 65. 3.7 Smoothing (Lowpass) Spatial Filters ๏ตOrder-statistic (nonlinear) filters ๏ฌ response is based on ordering (ranking) the pixels contained in the region encompassed by the filter ๏ฌ Smoothing is achieved by replacing the value of the center pixel with the value determined by the ranking result. ๏ฌ median filter: replaces the value of the center pixel by the median of the intensity values in the neighborhood of that pixel FORCE POINTS TO BE MORE LIKE THEIR NEIGHBORS median filter
  • 66. 3.7 Smoothing (Lowpass) Spatial Filters ๏ตOrder-statistic (nonlinear) filters median filter image corrupted by salt- and-pepper noise result using 19 ร— 19 Gaussian lowpass filter kernel with ๐œŽ๐œŽ= 3 result using 7 ร— 7 median filter
  • 67. 3.8 Sharpening (Highpass) Spatial Filters ๏ตDistribution of grayscale changes in the image Scan line The gray distribution of the image in the direction of the scan line First derivative Second derivative
  • 68. 3.8 Sharpening (Highpass) Spatial Filters Step pulse slope First derivative Second derivative
  • 69. 3.8 Sharpening (Highpass) Spatial Filters The gradientof an image f at coordinates(x, y) is defined as the two dimensional column vector ๏ตImage gradient The magnitude (length) of vector f , denotedas M(x, y) First derivative
  • 70. 3.8 Sharpening (Highpass) Spatial Filters ๏ตImage gradient๏ผš derivative operation --> differential operation For discrete images, differentiation can be approximated by difference ||๐›ป๐›ป๐‘“๐‘“|| = (๐‘“๐‘“ ๐‘ฅ๐‘ฅ,๐‘ฆ๐‘ฆ โˆ’ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ + 1, ๐‘ฆ๐‘ฆ )2+(๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ โˆ’ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ + 1 )2 computationally to approximate the squares and square root operations by absolute values ๐›ป๐›ป๐‘“๐‘“ โ‰ˆ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ โˆ’ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ + 1,๐‘ฆ๐‘ฆ + |๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ โˆ’ ๐‘“๐‘“ ๐‘ฅ๐‘ฅ, ๐‘ฆ๐‘ฆ + 1 | The magnitude of the gradient is approximated as the (absolute) sum of the adjacent pixel differencesalong the horizontal and vertical axes
  • 71. 3.8 Sharpening (Highpass) Spatial Filters โ‘  The pixel value of the new image is directly replaced by the gradient of the original image โ‘ก The output image is according to the gradient threshold ๏ตImage Sharpening ๅ›พๅƒ้”ๅŒ–
  • 72. 3.8 Sharpening (Highpass) Spatial Filters ๏ตImage Sharpening using gradient The edges of the image are enhanced, and some noise is also amplified
  • 73. Robert Operator 3.8 Sharpening (Highpass) Spatial Filters The differential sum of the two directions after rotating ยฑ45ยฐ The area involved in the calculation is too small, and the obtained edge is weak ๏ตImage Sharpening using gradient
  • 74. 3.8 Sharpening (Highpass) Spatial Filters ๏ตImage Sharpening using gradient 3*3 kernel image x y Maintaining directional consistency in the calculation, 3*3 can be viewed as a superposition of multiple 2*2 regions with respect to the current pixel position.
  • 75. image x y Sobel operators ๏ตImage Sharpening using gradient 3.8 Sharpening (Highpass) Spatial Filters
  • 76.
  • 78. Results obtained by extracting the edges using Sobel operator Enhancedimage
  • 79. 3.8 Sharpening (Highpass) Spatial Filters ๏ตsecond-order derivative of f (x) ไบŒ้˜ถๅพฎๅˆ†๏ผŒๅฏปๆ‰พ็ชๅ˜ๅŒบๅŸŸ
  • 80. 3.8Sharpening (Highpass) Spatial Filters ๏ตsecond-order derivative of f (x) Laplacian operators
  • 81. 3.8 Sharpening (Highpass) Spatial Filters ๏ตsecond-order derivative of f (x) Laplacian operators
  • 82. 3.8 Sharpening (Highpass) Spatial Filters ๏ตsecond-order derivative of f (x) Flexible extensions of the Laplace operator 1 -2 1 -2 4 -2 1 -2 1 Background features can be โ€œrecoveredโ€ while still preserving the sharpening effect of the Laplacian by adding the Laplacian image to the original. Let c = โˆ’1
  • 83.
  • 84. The latter has a more pronounced sharpening effect
  • 88. 3.7 HIGHPASS, BANDREJECT, AND BANDPASS FILTERS
  • 89. 3.7 Unsharp Masking And Highboost Filtering Add a weighted portion of the mask back to the original image: The mask
  • 90. 3.7 Unsharp Masking And Highboost Filtering
  • 91. 3.8 Combining Spatial Enhancement Methods a nuclear whole body bone scan image Objective: show more of the skeletal detail method: enhance the edges Laplacian of image Sharpened image
  • 92. 3.8 Combining Spatial Enhancement Methods Objective: show more of the skeletal detail method: enhance the edges and suppress noise Sobel gradient of image Sobel image smoothed with a 5 ร— 5 box filter Mask image formed by the product of (b) and (e).
  • 93. 3.8 Combining Spatial Enhancement Methods Objective: show more of the skeletal detail method: enhance the edges and suppress noise Sharpened image obtained by the adding images (a) and (f).
  • 94. summry Image basic geometric transformation Image Intensity Transformations Spatial Filtering
  • 95. Homework Deadline๏ผš before 9 April 1. Consider that the maximum value of an image ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿis M and its minimum is m (mโ‰ M). An intensity transform that maps the image ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ onto ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ such that the maximal value of ๐‘ฐ๐‘ฐ๐Ÿ๐Ÿ is L and the minimal value is๏ผš 2. Why global discrete histogram equalization does not, in general, yield a flat (uniform) histogram? A Because images are in color. B Becausethe histogramequalizationmathematicalderivationdoesnโ€™texist for discretesignals. C In global histogramequalization, all pixels with the same value are mapped to same value. D Actually, global discretehistogramequalizationalways yields flat histograms by definition.
  • 96. Homework 3. Discrete histogram equalization is an invertible operation, meaning we can recover the original image from the equalized one by inverting the operation, since? A Actually, histogram equalization is in general non-invertible. B There is a unique histogram equalization formula per image. C Pixels with different values are mapped to pixels with different values. D Images have unique histograms. 4. Given an image with only 3 pixels and 4 possible values for each one. Determine the number of possible different images and the number of possible different histograms. How many images and histograms?
  • 97. Homework 5. This image is a 6*6 grayscale image I(x, y) , with 4 gray levels (x = 0, 1, 2, ... 5; y = 0, 1, 2, ..., 5) , the value of each point in the figure represents the gray value of the image pixels. 1) Calculate the histogram of the image 2) Using histogram equalization to process this image (write the process details ) 3) Write the new histogram after histogram equalization.
  • 98. Homework 6. Which integer number minimizes 7. Which integer number minimizes 8. Applying a 3ร—3 averaging filter to an image a large (infinity) number of times is: A Equivalent to replacing all the pixel values by 0.. B Equivalent to replacing all the pixel values by the average of the values in the original image. C The same as applying it a single time. D The same as applying a median filter.
  • 99. 9. In the original image used to generate the three blurred images shown, the vertical bars are 5 pixels wide, 100 pixels high, and their separation is 20 pixels. The image was blurred using square box kernels of sizes 23, 25, and 45 elements on the side, respectively. The vertical bars on the left, lower part of (a) and (c) are blurred, but a clear separation exists between them. However, the bars have merged in image (b), despite the fact that the kernel used to generate this image is much smaller than the kernel that produced image (c). Explain the reason for this. Homework