SlideShare una empresa de Scribd logo
1 de 59
 Basics of Intensity Transformations and Spatial Filtering
g(x,y) = T [f(x,y)]
where f(x,y) is the input image, g(x,y) is the output image, and T is
an operator on f defined over a neighborhood of point (x,y)


Scr
crf
mn
yxg
),(
),(
1
),(
a) median filtering b) Average filtering
 Procedure discussed is known as Spatial filtering.
 Filter is referred as spatial filter, and also referred as spatial mask,
kernel, template or window.
 The type of operation performed in the neighborhood determines
the nature of filtering process.
 Intensity (gray level or mapping) transformation function
s=T(r)
s and r are variables denoting intensity of g and f at any point
(x,y)
BASIC INTENSITY TRANSFORMATION FUNCTIONS:
 Image negatives
The negative of an image with intensity levels in the range[0,L-1]
is obtained by using the negative transformation, given by the expression:
s = L-1-r
reversing the intensity levels of an image in this manner produce
the equivalent of a photographic negative.
 Log Transformations
The general form of log transformation is
s = c log(1+r)
where c is constant & assumed that r ≥ 0.
This transformation maps a narrow range of low intensity values in the point
into a wider range of output values.
 nth root and nth power transformations.
Power-Law(Gamma) Transformations:
This transformations have the basic form as
Where c and ϒ are positive constants
A variety of devices used for image capture, printing and display
respond according to power law.
Eg: CRT devices have an intensity to voltage response , i.e., a power
function

crs 
Piecewise-Linear Transformation Functions:
1) Contrast Stretching:
Because of poor illumination, lack of dynamic range in the imaging
sensor, or even the wrong settings of lens aperture during acquisition, it results
to low contrast images.
Contrast stretching is a process that expands the range of intensity
levels in an image so that it spans the full intensity range of the recording
medium or display device.
Intermediate values of produce various degrees of spread in
intensity levels of the output image, thus effecting its contrast. In general
is assumed & this condition preserves the order of intensity levels
thus preventing the creation of intensity artifacts in the processed image
),(),( 2211 srandsr
2121 , ssrr 
2) Intensity level slicing:
 Highlighting a specific range of intensities in an image often is of interest
 Applications include enhancing features such as masses of water in satellite
imaging and enhancing flaws in X-ray images.
3) Bit plane slicing:
Pixels are digital numbers composed of bits. The intensity of each
pixel in a 256 level gray scale image is composed of 8 bits.
Instead of highlighting intensity level ranges, we could highlight the
contribution made to total image appearance by specific bits.
An 8 bit image may be considered as being composed of 8 1-bit planes, with
plane 1 containing the lowest –order bit of all pixels in the image and plane 8
all the highest-order bits.
 Decomposing an image into bit planes is useful for analyzing the relative
importance of each bit in the image.
 This type of decomposition is useful for image compression, in which fewer
than all planes are used in reconstructing an image.
Histogram:
• The histogram of a digital image with intensity levels in the range
[0,L-1] is a discrete function h(rk)= nk , where rk is the kth intensity
value and nk is the no. of pixels in the image of intensity rk .
• Normalized histogram is given by
p(rk)= nk /MN, for k = 0,1,2,…(L-1)
• p(rk) is an estimate of the probability of occurrence of intensity
level rk in an image.
• The sum of all components of a normalized histogram is equal to 1
Histogram Equalization:
Consider for a moment continuous intensity values and let the
variable r denote the intensities of an image to be processed. We assume
that r is in the range [0, L-1], with r=0 (black) and r=L-1 (white). For r
satisfying these conditions. We focus on attention on transformations of
the form
s = T(r) , 0 ≤ r ≤L-1
that produce an output intensity level s for every pixel in the input image
having intensity r. We assume that:
a) T(r) is a monotonically increasing function in the interval 0 ≤ r ≤ L-1
b) 0 ≤ T(r) ≤ L-1 for 0 ≤ r ≤ L-1
In some formulations to be discussed later, we use the inverse
r=T -1(s) ; 0 ≤ s ≤ L-1
in which case we change condition (a) to (a1)
i.e, T(r) is a strictly monotonically increasing function in the interval
0 ≤ r ≤ L-1
Example: suppose that a 3-bit image(L=8) of size 64x64(MN=4096) has the
intensity distribution as shown in below table
These are the values of equalised histogram. Original image 8 intensity levels are
mapped to 5 distinct intensity levels.
SPATIAL FILTERING
 Spatial filter consists of
i) neighborhood
ii) a predefined operation that is performed on the image pixels
encompassed by the neighborhood.
Filtering creates a new pixel with coordinates equal to the
coordinates of the center of neighborhood, and whose value is the
result of filtering operation.
 If the operation performed on the image pixels is linear, then the
filter is called a linear spatial filter. Otherwise the filter is nonlinear.
)1,1()1,1(...),()0,0(
...),1()0,1()1,1()1,1(),(


yxfwyxfw
yxfwyxfwyxg
For mask of size m x n, we assume that m=2a+1, n=2b+1, where a,b are
positive integers. we concentrate on the filters of odd size.
linear spatial filtering of an image of size MxN with a filter of size m x nis
given by,
Where x and y are varied so that each pixel in w visits every pixel in f.
  

a
as
b
bt
tysxftswyxg ),(),(),(
Correlation between images f(x,y) & w(x,y):
Convolution between images f(x,y) & w(x,y):
  

a
as
b
bt
tysxftswyxfyxwcorr ),(),()),(),((
  

a
as
b
bt
tysxftswyxfyxw ),(),(),(),(
Smoothing Spatial Filters
1) Smoothing Linear filters:
 the output of smoothing, linear filter is simply the avg. Of the pixels
contained in the neighbourhood of the filter mask.
These filters sometimes called averaging filters.
Reduces sharp transitions in image intensities.
Most obvious application of smoothing is noise reduction.
Smoothing of false contours(because of insufficient no.of intensities)
Undesirable side effect: blur edges
A spatial averaging filter in which all coefficients are equal sometimes
is called a box filter.
General implementation for filtering an M x N image with a weighted
averaging filter of size m x n is given by expression,


 
 

 a
as
b
bt
a
as
b
bt
tsw
tysxftsw
yxg
),(
),(),(
),(
Order static (nonlinear) filters:
Non linear filters whose response is based on ordering the pixels
contained in image area.
The best known filter in this category is median filter.
They provide excellent noise reduction capabilities.
Considerably less blurring than linear smoothing filters.
Particularly effective in presence of impulse noise.
Other examples: max filter, min filter etc.,
Sharpening Spatial Filters
Objective of sharpening is to highlight transitions in
intensities.
Applications ranging from electronic printing and medical
imaging to industrial inspection and autonomous guidance in
military systems.
Sharpening filters are based on first and second order
derivatives
• Edges in digital images often are ramp like transitions in intensity, in
which case the 1st derivative of the image would result in thick
edges, because the derivative is non zero along the ramp.
• 2nd derivative would produce a double edge one pixel thick,
separated by zeros. This enhances fine detail much better than 1st
derivative, and ideally suited for sharpening images.
The Laplacian: 2nd order derivative tool for image sharpening
2 2
2
2 2
( , )
( 1, ) ( 1, ) ( , 1) ( , 1) 4 ( , )
f f
f x y
x y
f x y f x y f x y f x y f x y
 
  
 
        
Unsharp Masking and Highboost filtering
 Process used in printing and publishing industry.
 Unsharp Masking: Subtracting an unsharp(smoothed) version of
an image from the original image.
Steps for unsharp masking:
1) Blur the original image
2) Subtract the blurred image from the original(result is mask).
3) Add the mask to original.
Let f̅(x,y) denote the blurred image, first we obtain the mask:
gmask (x,y)=f(x,y) - f̅(x,y)
Then add weighted portion of the mask back to the original image
g(x,y) = f(x,y) + k . gmask (x,y)
When k=1, we have unsharp masking.
When k > 1, it is referred to as highboost filtering.
The Gradient- using 1st order derivative for image sharpening:
First derivatives in image processing are implemented using the
magnitude of the gradient. For a function f(x,y) the gradient of f at
coordinates (x,y) is defined as the two dimensional column vector.
This vector has the important geometrical property that it points in the
direction of the greatest rate of change of f at location (x,y).
The magnitude of vector ∇f , denoted as M(x,y), where
M(x,y) is the value at (x,y) of the rate of change in the direction of the
gradient vector























y
f
x
f
g
g
fgradf
y
x
)(
22
)(),( yx ggfmagyxM 
PRINCIPLES OF FUZZY SET THEORY:
Let Z be the set of elements with generic element of Z denoted by z, i.e. Z={z}. This set is
called universe of discourse. A fuzzy set, A in Z is characterized by a membership
function, μA(z), that associates with each element of Z a real number in the interval [0 1].
The value of μA(z) at z represents the grade of membership of z in A.
With fuzzy sets, we say that all z s for which μA(z) =1 are full members of the set.
all z s for which μA(z) =0 are not members of the set.
all zs for which μA(z) = between 0 &1 have partial membership in the set.
A={z, μA(z) |z ϵ Z }
Types of membership functions used in practice. Triangular, Trapezoidal and Sigma
functions are piecewise linear, S & bell shape fns. are smooth. S shape fn. is used
frequently when working with fuzzy sets. The value of z=b is called crossover point.
The problem specific knowledge just explained can be formalized in the
form of the following fuzzy IF-THEN rules:
R1: IF the colour is green, THEN the fruit is verdant
R2: IF the color is yellow, THEN the fruit is half-mature
R3: IF the color is red, THEN the fruit is mature
In this context color is linguistic variable and
particular color is linguistic value. A linguistic
value ,z,is fuzzified by using a membership
function to map it to interval [0 1].
USING FUZZY SETS FOR INTENSITY TRANSFORMATIONS:
We can state the process of enhancing the contrast of gray scale image using the
following rules:
IF pixel is dark , THEN make it darker.
IF pixel is gray , THEN make it gray.
IF pixel is bright , THEN make it brighter.
We can express the concepts of dark, gray & bright by the membership functions.
USING FUZZY SETS FOR SPATIAL FILTERING
In this case, the basic approach is to define neighbourhood properties that are supporting the filters.
Consider the problem of boundary detection, we develop an algorithm based on a simple fuzzy
concept: if a pixel belongs to a uniform region, then make it white; else make it black, where,
black and white are fuzzy sets.
We used only the intensity differences between the 4- neighbors and the center point. A simple
set of four IF-THEN rules and one ELSE rule implements the fuzzy concept. These rules simply
states that the centre pixel is considered to be a part of uniform region if the intensity difference
are zero; otherwise it is considered to be a boundary pixel.

Más contenido relacionado

La actualidad más candente

Matlab Image Enhancement Techniques
Matlab Image Enhancement TechniquesMatlab Image Enhancement Techniques
Matlab Image Enhancement Techniquesmatlab Content
 
Comparison of image segmentation
Comparison of image segmentationComparison of image segmentation
Comparison of image segmentationHaitham Ahmed
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersKuppusamy P
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsasodariyabhavesh
 
ImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptVikramBarapatre2
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainMadhu Bala
 
Image segmentation
Image segmentationImage segmentation
Image segmentationDeepak Kumar
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Kalyan Acharjya
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processingAshish Kumar
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESVicky Kumar
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Moe Moe Myint
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram ProcessingAmnaakhaan
 
Computer vision - edge detection
Computer vision - edge detectionComputer vision - edge detection
Computer vision - edge detectionWael Badawy
 

La actualidad más candente (20)

Matlab Image Enhancement Techniques
Matlab Image Enhancement TechniquesMatlab Image Enhancement Techniques
Matlab Image Enhancement Techniques
 
Comparison of image segmentation
Comparison of image segmentationComparison of image segmentation
Comparison of image segmentation
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
gaussian filter seminar ppt
gaussian filter seminar pptgaussian filter seminar ppt
gaussian filter seminar ppt
 
Computer Vision
Computer VisionComputer Vision
Computer Vision
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
ImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).ppt
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processing
 
Histogram processing
Histogram processingHistogram processing
Histogram processing
 
Module 2
Module 2Module 2
Module 2
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Computer vision - edge detection
Computer vision - edge detectionComputer vision - edge detection
Computer vision - edge detection
 

Similar a 3 intensity transformations and spatial filtering slides

Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfnagwaAboElenein
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureFatmaNewagy1
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfnagwaAboElenein
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Computer vision 3 4
Computer vision 3 4Computer vision 3 4
Computer vision 3 4sachinmore76
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portionMoe Moe Myint
 
imageCorrectionLinearDiffusion
imageCorrectionLinearDiffusionimageCorrectionLinearDiffusion
imageCorrectionLinearDiffusionKellen Betts
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processingMohammed Kamel
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringShajun Nisha
 
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
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Varun Ojha
 

Similar a 3 intensity transformations and spatial filtering slides (20)

3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
 
Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdf
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Computer vision 3 4
Computer vision 3 4Computer vision 3 4
Computer vision 3 4
 
Image Processing
Image ProcessingImage Processing
Image Processing
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
 
imageCorrectionLinearDiffusion
imageCorrectionLinearDiffusionimageCorrectionLinearDiffusion
imageCorrectionLinearDiffusion
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processing
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
 
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
 
It 603
It 603It 603
It 603
 
It 603
It 603It 603
It 603
 
chap3.ppt
chap3.pptchap3.ppt
chap3.ppt
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
chap3.ppt
chap3.pptchap3.ppt
chap3.ppt
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)
 

Último

Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxnuruddin69
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...HenryBriggs2
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksMagic Marks
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...Health
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stageAbc194748
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 

Último (20)

Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 

3 intensity transformations and spatial filtering slides

  • 1.  Basics of Intensity Transformations and Spatial Filtering g(x,y) = T [f(x,y)] where f(x,y) is the input image, g(x,y) is the output image, and T is an operator on f defined over a neighborhood of point (x,y)
  • 3. a) median filtering b) Average filtering
  • 4.  Procedure discussed is known as Spatial filtering.  Filter is referred as spatial filter, and also referred as spatial mask, kernel, template or window.  The type of operation performed in the neighborhood determines the nature of filtering process.  Intensity (gray level or mapping) transformation function s=T(r) s and r are variables denoting intensity of g and f at any point (x,y)
  • 5. BASIC INTENSITY TRANSFORMATION FUNCTIONS:  Image negatives The negative of an image with intensity levels in the range[0,L-1] is obtained by using the negative transformation, given by the expression: s = L-1-r reversing the intensity levels of an image in this manner produce the equivalent of a photographic negative.  Log Transformations The general form of log transformation is s = c log(1+r) where c is constant & assumed that r ≥ 0. This transformation maps a narrow range of low intensity values in the point into a wider range of output values.  nth root and nth power transformations.
  • 6.
  • 7. Power-Law(Gamma) Transformations: This transformations have the basic form as Where c and ϒ are positive constants A variety of devices used for image capture, printing and display respond according to power law. Eg: CRT devices have an intensity to voltage response , i.e., a power function  crs 
  • 8.
  • 9.
  • 10.
  • 11. Piecewise-Linear Transformation Functions: 1) Contrast Stretching: Because of poor illumination, lack of dynamic range in the imaging sensor, or even the wrong settings of lens aperture during acquisition, it results to low contrast images. Contrast stretching is a process that expands the range of intensity levels in an image so that it spans the full intensity range of the recording medium or display device.
  • 12. Intermediate values of produce various degrees of spread in intensity levels of the output image, thus effecting its contrast. In general is assumed & this condition preserves the order of intensity levels thus preventing the creation of intensity artifacts in the processed image ),(),( 2211 srandsr 2121 , ssrr 
  • 13. 2) Intensity level slicing:  Highlighting a specific range of intensities in an image often is of interest  Applications include enhancing features such as masses of water in satellite imaging and enhancing flaws in X-ray images.
  • 14.
  • 15. 3) Bit plane slicing: Pixels are digital numbers composed of bits. The intensity of each pixel in a 256 level gray scale image is composed of 8 bits. Instead of highlighting intensity level ranges, we could highlight the contribution made to total image appearance by specific bits. An 8 bit image may be considered as being composed of 8 1-bit planes, with plane 1 containing the lowest –order bit of all pixels in the image and plane 8 all the highest-order bits.
  • 16.  Decomposing an image into bit planes is useful for analyzing the relative importance of each bit in the image.  This type of decomposition is useful for image compression, in which fewer than all planes are used in reconstructing an image.
  • 17.
  • 18. Histogram: • The histogram of a digital image with intensity levels in the range [0,L-1] is a discrete function h(rk)= nk , where rk is the kth intensity value and nk is the no. of pixels in the image of intensity rk . • Normalized histogram is given by p(rk)= nk /MN, for k = 0,1,2,…(L-1) • p(rk) is an estimate of the probability of occurrence of intensity level rk in an image. • The sum of all components of a normalized histogram is equal to 1
  • 19.
  • 20. Histogram Equalization: Consider for a moment continuous intensity values and let the variable r denote the intensities of an image to be processed. We assume that r is in the range [0, L-1], with r=0 (black) and r=L-1 (white). For r satisfying these conditions. We focus on attention on transformations of the form s = T(r) , 0 ≤ r ≤L-1 that produce an output intensity level s for every pixel in the input image having intensity r. We assume that: a) T(r) is a monotonically increasing function in the interval 0 ≤ r ≤ L-1 b) 0 ≤ T(r) ≤ L-1 for 0 ≤ r ≤ L-1
  • 21. In some formulations to be discussed later, we use the inverse r=T -1(s) ; 0 ≤ s ≤ L-1 in which case we change condition (a) to (a1) i.e, T(r) is a strictly monotonically increasing function in the interval 0 ≤ r ≤ L-1
  • 22.
  • 23.
  • 24.
  • 25.
  • 26. Example: suppose that a 3-bit image(L=8) of size 64x64(MN=4096) has the intensity distribution as shown in below table
  • 27. These are the values of equalised histogram. Original image 8 intensity levels are mapped to 5 distinct intensity levels.
  • 28.
  • 30.
  • 31.  Spatial filter consists of i) neighborhood ii) a predefined operation that is performed on the image pixels encompassed by the neighborhood. Filtering creates a new pixel with coordinates equal to the coordinates of the center of neighborhood, and whose value is the result of filtering operation.  If the operation performed on the image pixels is linear, then the filter is called a linear spatial filter. Otherwise the filter is nonlinear. )1,1()1,1(...),()0,0( ...),1()0,1()1,1()1,1(),(   yxfwyxfw yxfwyxfwyxg
  • 32. For mask of size m x n, we assume that m=2a+1, n=2b+1, where a,b are positive integers. we concentrate on the filters of odd size. linear spatial filtering of an image of size MxN with a filter of size m x nis given by, Where x and y are varied so that each pixel in w visits every pixel in f.     a as b bt tysxftswyxg ),(),(),(
  • 33.
  • 34.
  • 35. Correlation between images f(x,y) & w(x,y): Convolution between images f(x,y) & w(x,y):     a as b bt tysxftswyxfyxwcorr ),(),()),(),((     a as b bt tysxftswyxfyxw ),(),(),(),(
  • 36. Smoothing Spatial Filters 1) Smoothing Linear filters:  the output of smoothing, linear filter is simply the avg. Of the pixels contained in the neighbourhood of the filter mask. These filters sometimes called averaging filters. Reduces sharp transitions in image intensities. Most obvious application of smoothing is noise reduction. Smoothing of false contours(because of insufficient no.of intensities) Undesirable side effect: blur edges
  • 37. A spatial averaging filter in which all coefficients are equal sometimes is called a box filter. General implementation for filtering an M x N image with a weighted averaging filter of size m x n is given by expression,         a as b bt a as b bt tsw tysxftsw yxg ),( ),(),( ),(
  • 38. Order static (nonlinear) filters: Non linear filters whose response is based on ordering the pixels contained in image area. The best known filter in this category is median filter. They provide excellent noise reduction capabilities. Considerably less blurring than linear smoothing filters. Particularly effective in presence of impulse noise. Other examples: max filter, min filter etc.,
  • 39.
  • 40. Sharpening Spatial Filters Objective of sharpening is to highlight transitions in intensities. Applications ranging from electronic printing and medical imaging to industrial inspection and autonomous guidance in military systems. Sharpening filters are based on first and second order derivatives
  • 41.
  • 42. • Edges in digital images often are ramp like transitions in intensity, in which case the 1st derivative of the image would result in thick edges, because the derivative is non zero along the ramp. • 2nd derivative would produce a double edge one pixel thick, separated by zeros. This enhances fine detail much better than 1st derivative, and ideally suited for sharpening images. The Laplacian: 2nd order derivative tool for image sharpening 2 2 2 2 2 ( , ) ( 1, ) ( 1, ) ( , 1) ( , 1) 4 ( , ) f f f x y x y f x y f x y f x y f x y f x y                
  • 43.
  • 44.
  • 45. Unsharp Masking and Highboost filtering  Process used in printing and publishing industry.  Unsharp Masking: Subtracting an unsharp(smoothed) version of an image from the original image. Steps for unsharp masking: 1) Blur the original image 2) Subtract the blurred image from the original(result is mask). 3) Add the mask to original. Let f̅(x,y) denote the blurred image, first we obtain the mask: gmask (x,y)=f(x,y) - f̅(x,y) Then add weighted portion of the mask back to the original image g(x,y) = f(x,y) + k . gmask (x,y) When k=1, we have unsharp masking. When k > 1, it is referred to as highboost filtering.
  • 46.
  • 47. The Gradient- using 1st order derivative for image sharpening: First derivatives in image processing are implemented using the magnitude of the gradient. For a function f(x,y) the gradient of f at coordinates (x,y) is defined as the two dimensional column vector. This vector has the important geometrical property that it points in the direction of the greatest rate of change of f at location (x,y). The magnitude of vector ∇f , denoted as M(x,y), where M(x,y) is the value at (x,y) of the rate of change in the direction of the gradient vector                        y f x f g g fgradf y x )( 22 )(),( yx ggfmagyxM 
  • 48.
  • 49.
  • 50. PRINCIPLES OF FUZZY SET THEORY: Let Z be the set of elements with generic element of Z denoted by z, i.e. Z={z}. This set is called universe of discourse. A fuzzy set, A in Z is characterized by a membership function, μA(z), that associates with each element of Z a real number in the interval [0 1]. The value of μA(z) at z represents the grade of membership of z in A. With fuzzy sets, we say that all z s for which μA(z) =1 are full members of the set. all z s for which μA(z) =0 are not members of the set. all zs for which μA(z) = between 0 &1 have partial membership in the set. A={z, μA(z) |z ϵ Z }
  • 51.
  • 52. Types of membership functions used in practice. Triangular, Trapezoidal and Sigma functions are piecewise linear, S & bell shape fns. are smooth. S shape fn. is used frequently when working with fuzzy sets. The value of z=b is called crossover point.
  • 53. The problem specific knowledge just explained can be formalized in the form of the following fuzzy IF-THEN rules: R1: IF the colour is green, THEN the fruit is verdant R2: IF the color is yellow, THEN the fruit is half-mature R3: IF the color is red, THEN the fruit is mature In this context color is linguistic variable and particular color is linguistic value. A linguistic value ,z,is fuzzified by using a membership function to map it to interval [0 1].
  • 54.
  • 55. USING FUZZY SETS FOR INTENSITY TRANSFORMATIONS: We can state the process of enhancing the contrast of gray scale image using the following rules: IF pixel is dark , THEN make it darker. IF pixel is gray , THEN make it gray. IF pixel is bright , THEN make it brighter. We can express the concepts of dark, gray & bright by the membership functions.
  • 56.
  • 57.
  • 58. USING FUZZY SETS FOR SPATIAL FILTERING In this case, the basic approach is to define neighbourhood properties that are supporting the filters. Consider the problem of boundary detection, we develop an algorithm based on a simple fuzzy concept: if a pixel belongs to a uniform region, then make it white; else make it black, where, black and white are fuzzy sets.
  • 59. We used only the intensity differences between the 4- neighbors and the center point. A simple set of four IF-THEN rules and one ELSE rule implements the fuzzy concept. These rules simply states that the centre pixel is considered to be a part of uniform region if the intensity difference are zero; otherwise it is considered to be a boundary pixel.