Neighbourhood operations operate on a larger neighbourhood of pixels than point operations. Neighbourhoods are mostly rectangular shapes around a central pixel, and any size or shape of filter and neighbourhood is possible. Simple neighbourhood operations include setting a pixel value to the minimum or maximum in the neighbourhood. Spatial filtering involves applying a filter to each pixel neighbourhood to generate an output pixel value. Smoothing filters like averaging filters are commonly used to reduce noise, while sharpening filters using derivatives highlight edges and fine detail. The Laplacian filter is a common sharpening filter that involves taking the second derivative to highlight edges.
This document summarizes spatial filtering techniques for image enhancement, including smoothing and sharpening filters. It discusses neighbourhood operations and different types of spatial filters like averaging filters and median filters that can be used to smooth images. Techniques for sharpening images like the Laplacian filter and highboost filter are also covered. The document provides examples and equations to demonstrate how various spatial filters work to enhance images.
This document provides an overview of image filtering techniques in the spatial domain. It discusses smoothing filters using averaging and Gaussian weighting. It introduces first derivative filters like Sobel operators that detect edges, and second derivative filters like the Laplacian that are useful for sharpening. The Laplacian highlights edges by finding the second spatial derivative. Sharpening is done by subtracting the Laplacian from the original image. Variations are discussed.
1. Spatial filtering techniques include neighbourhood operations, smoothing filters, sharpening filters, and combining filtering techniques. Neighbourhood operations operate on pixels surrounding a central pixel.
2. Simple neighbourhood operations include minimum, maximum, and median filters. Smoothing filters average pixel values in a neighbourhood to reduce noise while preserving edges.
3. Convolution and correlation are similar operations that involve multiplying a filter kernel with pixels in an image neighbourhood. Convolution involves flipping the filter kernel before multiplication.
Spatial filtering is a technique that operates directly on pixels in an image. It involves sliding a filter mask over the image and applying a filtering operation using the pixels covered by the mask. Common operations include smoothing to reduce noise and sharpening to enhance edges. Smoothing filters average pixel values, while median filters select the median value. Spatial filtering can blur details and reduce noise but must address edge effects where the mask extends past image boundaries.
Image Enhancement in Spatial Domain Point Processing, Histogram Processing, Spatial Filtering, Enhancement in Frequency Domain, Image Smoothing, Image Sharpening.
Local neighborhood processing is a common technique in spatial domain image filtering. It involves defining a neighborhood around each pixel and applying an operation to the pixel values within the neighborhood. Common examples are mean and weighted mean filters, which average pixel values to reduce noise. Mean filters replace each pixel value with the average of neighboring pixels. Weighted mean filters assign more importance to central pixels and horizontally/vertically adjacent pixels compared to diagonal neighbors. Neighborhood processing is implemented by defining a filter kernel that specifies the operation and applying it to each pixel location.
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGPriyanka Rathore
油
Image processing techniques can involve converting images to digital form and applying transformations like the Laplace transform. The Laplace transform is useful for applications like image sharpening, edge detection, and blob detection. It involves calculating the second derivative of the image to help identify edges and other discontinuities. The zero crossings of the Laplace transform output are particularly useful for edge detection as they indicate where the slope of the image changes most rapidly. While the Laplace transform provides benefits like simpler implementation and reliable noise performance, it can also result in spaghetti-like edge effects with complex computations.
This document discusses image enhancement techniques in the spatial domain. It defines spatial domain processing as the direct manipulation of pixel values, as opposed to frequency domain processing which modifies the Fourier transform. The key techniques discussed are:
- Linear and non-linear transformations which map input pixel values to new output values.
- Spatial filters which operate on neighborhoods of pixels, including smoothing filters to reduce noise and sharpening filters to enhance edges.
- Histogram processing techniques like equalization to improve contrast in low contrast images.
The document provides examples of each technique and discusses their applications in image enhancement.
This document discusses spatial filtering in image processing, which refers to modifying pixel values based on neighboring pixels. It describes linear filtering using convolution with a kernel/mask, and nonlinear median filtering. Specific filters are covered, including averaging filters for smoothing/blurring, median filters for noise removal, and Laplacian filters for sharpening by enhancing edges. Examples are provided to demonstrate the effects of different filters on images.
This document discusses various image restoration techniques in the presence of noise. It begins by explaining that image denoising aims to remove noise while retaining important signal features, which can be done through linear or non-linear filtering. It then describes several types of spatial filters that are commonly used for image smoothing, sharpening, and noise removal, including mean filters, order statistic filters, and median filters. It provides details on how various mean filters like arithmetic, geometric, and harmonic mean filters operate and their effectiveness on different noise types. Order statistic filters and median filters are highlighted as being well-suited for salt-and-pepper noise removal. The document also includes examples and equations to illustrate key image restoration concepts.
Edge detection is used to identify points in a digital image where the image brightness changes sharply. The key steps are smoothing to reduce noise, enhancing edges through differentiation, thresholding to determine important edges, and localization to find edge positions. Common methods include using the first derivative to find gradients and zero-crossings of the second derivative. Operators like Prewitt and Sobel approximate derivatives with small pixel masks. Edge detection is useful for computer vision tasks by extracting important image features.
This document summarizes the key steps in a digital signal processing project on simulating a basic digital camera model. It discusses face detection using the Viola-Jones algorithm and Haar-like features. It then covers adding noise to images, designing mean and median filters to reduce noise, and optimizing filter performance. The document also discusses histogram equalization for color enhancement and a technique for contrast enhancement that considers color shifting and the human visual system.
This document discusses various spatial filtering methods used in image processing. Spatial filters are defined by their neighborhood, which is usually a square window, and their operation, which processes pixels in the neighborhood. Linear filters include correlation and convolution, where the output is a linear combination of input pixels. Common filters are smoothing (low-pass) filters like averaging and Gaussian, which reduce noise and detail, and sharpening (high-pass) filters like unsharp masking and derivatives, which enhance details like edges. Derivatives like the gradient and Laplacian are used to detect edges.
Spatial filtering involves applying filters or kernels to images to enhance or modify pixel values based on neighboring pixel values. Linear spatial filtering involves taking a weighted sum of pixel values within the filter window. Common filters include averaging filters for noise reduction, median filters to reduce impulse noise while preserving edges, and sharpening filters like Laplacian filters and unsharp masking to enhance details.
The document discusses image processing techniques including image derivatives, integral images, convolution, morphology operations, and image pyramids.
It explains that image derivatives detect edges by capturing changes in pixel intensity, and provides an example calculation. Integral images allow fast computation of box filters by precomputing pixel sums. Convolution is used to calculate probabilities as the sliding overlap of distributions. Morphology operations like erosion and dilation modify images based on pixel neighborhoods. Image pyramids create multiple resolution layers that aid in object detection across scales.
The document discusses different techniques for image interpolation, which is the process of estimating unknown pixel values between known sample points in an image. It describes several 1D and 2D interpolation methods like nearest neighbor, bilinear, and bicubic interpolation. These methods are used in applications such as resolution enhancement through digital zooming, error concealment via image inpainting, and geometric transformations of images. Bicubic interpolation generally provides the smoothest results with fewest artifacts compared to other methods.
Digital image processing techniques can be used to enhance images by modifying pixel values using filters. Filters are classified as either spatial or frequency domain filters, with non-linear filters being more effective at edge detection than linear filters. The median filter is a common non-linear filter that replaces pixel values with the median of neighboring pixels to reduce salt-and-pepper noise. Image restoration techniques aim to reduce noise and recover lost resolution, such as by using deconvolution in the frequency domain to undo the effects of blurring.
This document discusses various spatial filtering and image enhancement techniques including intensity transformation, smoothing filters, sharpening filters, and combining multiple techniques. It covers linear and non-linear spatial filters, smoothing filters like averaging and median filters for noise reduction, and sharpening filters such as unsharp masking, high-boost filtering, and gradient-based methods. Examples are provided to demonstrate the use of various filters for tasks like noise removal, edge enhancement, and combining techniques for improved image quality.
Digital images are composed of a grid of pixels that are sampled from scenes or documents. A pixel is the smallest unit of an image and images can be grayscale, containing only black and white pixels, or RGB color images with red, green and blue subpixels. Digital image processing uses computer algorithms to modify images, such as smoothing or compressing them, in order to enhance the image or extract useful information. Some applications of image processing discussed are smoothing images using averaging filters of different sizes, compressing images using delta encoding by representing similar pixel values with delta values rather than individual values, and face detection using the Viola-Jones algorithm which uses Haar features, integral images, AdaBoost training, and cascading classifiers to rapidly detect
Aggregation operators are mathematical functions that combine multiple values into a single value. This document discusses aggregation operators and their properties, different types of aggregation operators such as means, norms, and ordered weighted averages, and applications to image reduction. It also presents a study on using aggregation operators to construct image reduction operators. The study found that arithmetic mean and centered ordered weighted average operators performed best for image reconstruction, while minimum and maximum operators were most effective for pattern recognition in reduced images.
This document discusses the Laplacian operator and its use in image sharpening. It defines the Laplacian as the sum of the second partial derivatives of an image function. This can be approximated using a discrete filter. Applying the Laplacian highlights edges but results in a filtered image that needs further processing. To generate a sharpened image, the Laplacian filtered image is subtracted from the original. Different variants of the Laplacian filter are presented. Comparing first and second derivatives, higher order derivatives have stronger responses to fine detail while lower order derivatives respond more to intensity steps. Successful enhancement combines multiple techniques rather than a single operation.
MedicalSpatial filtering is a process by which we can alter properties of an optical image by selectively removing certain spatial frequencies that make up an object, for example, filtering video data received from satellite and space probes, or removal of raster from a television picture or scanned image. Image processing, digital images slides spatial filters. Filters are divided into two types: linear (also called convolution) and nonlinear. A convolution is an algorithm that consists of recalculating the value of a pixel based on its own pixel value and the pixel values of its neighbors weighted by the coefficients of a convolution kernel. Spatial filtering is commonly used to "clean up" the output of lasers, removing aberrations in the beam due to imperfect, dirty, or damaged optics, or due to variations in the laser gain medium itself.
SpatialEnhancement of course CE7491 of NTUlyumingzhi
油
This document summarizes key concepts in image intensity transformations and filtering. It discusses two classes of spatial domain processing: point processing and spatial filtering. Point processing involves transformations that modify pixel intensities without regard to neighboring pixels, such as contrast stretching and histogram equalization. Spatial filtering computes new pixel values based on neighboring pixels using techniques like smoothing and sharpening filters. Specific filters covered include averaging, Gaussian, Laplacian, and median filters.
Knowledge-Based Agents in AI: Principles, Components, and FunctionalityRashmi Bhat
油
This PowerPoint presentation provides an in-depth exploration of Knowledge-Based Agents (KBAs) in Artificial Intelligence (AI). It explains how these agents make decisions using stored knowledge and logical reasoning rather than direct sensor input. The presentation covers key components such as the Knowledge Base (KB), Inference Engine, Perception, and Action Execution.
Key topics include:
Definition and Working Mechanism of Knowledge-Based Agents
The Process of TELL, ASK, and Execution in AI Agents
Representation of Knowledge and Decision-Making Approaches
Logical Inference and Rule-Based Reasoning
Applications of Knowledge-Based Agents in Real-World AI
This PPT is useful for students, educators, and AI enthusiasts who want to understand how intelligent agents operate using stored knowledge and logic-based inference. The slides are well-structured with explanations, examples, and an easy-to-follow breakdown of AI agent functions.
This document discusses image enhancement techniques in the spatial domain. It defines spatial domain processing as the direct manipulation of pixel values, as opposed to frequency domain processing which modifies the Fourier transform. The key techniques discussed are:
- Linear and non-linear transformations which map input pixel values to new output values.
- Spatial filters which operate on neighborhoods of pixels, including smoothing filters to reduce noise and sharpening filters to enhance edges.
- Histogram processing techniques like equalization to improve contrast in low contrast images.
The document provides examples of each technique and discusses their applications in image enhancement.
This document discusses spatial filtering in image processing, which refers to modifying pixel values based on neighboring pixels. It describes linear filtering using convolution with a kernel/mask, and nonlinear median filtering. Specific filters are covered, including averaging filters for smoothing/blurring, median filters for noise removal, and Laplacian filters for sharpening by enhancing edges. Examples are provided to demonstrate the effects of different filters on images.
This document discusses various image restoration techniques in the presence of noise. It begins by explaining that image denoising aims to remove noise while retaining important signal features, which can be done through linear or non-linear filtering. It then describes several types of spatial filters that are commonly used for image smoothing, sharpening, and noise removal, including mean filters, order statistic filters, and median filters. It provides details on how various mean filters like arithmetic, geometric, and harmonic mean filters operate and their effectiveness on different noise types. Order statistic filters and median filters are highlighted as being well-suited for salt-and-pepper noise removal. The document also includes examples and equations to illustrate key image restoration concepts.
Edge detection is used to identify points in a digital image where the image brightness changes sharply. The key steps are smoothing to reduce noise, enhancing edges through differentiation, thresholding to determine important edges, and localization to find edge positions. Common methods include using the first derivative to find gradients and zero-crossings of the second derivative. Operators like Prewitt and Sobel approximate derivatives with small pixel masks. Edge detection is useful for computer vision tasks by extracting important image features.
This document summarizes the key steps in a digital signal processing project on simulating a basic digital camera model. It discusses face detection using the Viola-Jones algorithm and Haar-like features. It then covers adding noise to images, designing mean and median filters to reduce noise, and optimizing filter performance. The document also discusses histogram equalization for color enhancement and a technique for contrast enhancement that considers color shifting and the human visual system.
This document discusses various spatial filtering methods used in image processing. Spatial filters are defined by their neighborhood, which is usually a square window, and their operation, which processes pixels in the neighborhood. Linear filters include correlation and convolution, where the output is a linear combination of input pixels. Common filters are smoothing (low-pass) filters like averaging and Gaussian, which reduce noise and detail, and sharpening (high-pass) filters like unsharp masking and derivatives, which enhance details like edges. Derivatives like the gradient and Laplacian are used to detect edges.
Spatial filtering involves applying filters or kernels to images to enhance or modify pixel values based on neighboring pixel values. Linear spatial filtering involves taking a weighted sum of pixel values within the filter window. Common filters include averaging filters for noise reduction, median filters to reduce impulse noise while preserving edges, and sharpening filters like Laplacian filters and unsharp masking to enhance details.
The document discusses image processing techniques including image derivatives, integral images, convolution, morphology operations, and image pyramids.
It explains that image derivatives detect edges by capturing changes in pixel intensity, and provides an example calculation. Integral images allow fast computation of box filters by precomputing pixel sums. Convolution is used to calculate probabilities as the sliding overlap of distributions. Morphology operations like erosion and dilation modify images based on pixel neighborhoods. Image pyramids create multiple resolution layers that aid in object detection across scales.
The document discusses different techniques for image interpolation, which is the process of estimating unknown pixel values between known sample points in an image. It describes several 1D and 2D interpolation methods like nearest neighbor, bilinear, and bicubic interpolation. These methods are used in applications such as resolution enhancement through digital zooming, error concealment via image inpainting, and geometric transformations of images. Bicubic interpolation generally provides the smoothest results with fewest artifacts compared to other methods.
Digital image processing techniques can be used to enhance images by modifying pixel values using filters. Filters are classified as either spatial or frequency domain filters, with non-linear filters being more effective at edge detection than linear filters. The median filter is a common non-linear filter that replaces pixel values with the median of neighboring pixels to reduce salt-and-pepper noise. Image restoration techniques aim to reduce noise and recover lost resolution, such as by using deconvolution in the frequency domain to undo the effects of blurring.
This document discusses various spatial filtering and image enhancement techniques including intensity transformation, smoothing filters, sharpening filters, and combining multiple techniques. It covers linear and non-linear spatial filters, smoothing filters like averaging and median filters for noise reduction, and sharpening filters such as unsharp masking, high-boost filtering, and gradient-based methods. Examples are provided to demonstrate the use of various filters for tasks like noise removal, edge enhancement, and combining techniques for improved image quality.
Digital images are composed of a grid of pixels that are sampled from scenes or documents. A pixel is the smallest unit of an image and images can be grayscale, containing only black and white pixels, or RGB color images with red, green and blue subpixels. Digital image processing uses computer algorithms to modify images, such as smoothing or compressing them, in order to enhance the image or extract useful information. Some applications of image processing discussed are smoothing images using averaging filters of different sizes, compressing images using delta encoding by representing similar pixel values with delta values rather than individual values, and face detection using the Viola-Jones algorithm which uses Haar features, integral images, AdaBoost training, and cascading classifiers to rapidly detect
Aggregation operators are mathematical functions that combine multiple values into a single value. This document discusses aggregation operators and their properties, different types of aggregation operators such as means, norms, and ordered weighted averages, and applications to image reduction. It also presents a study on using aggregation operators to construct image reduction operators. The study found that arithmetic mean and centered ordered weighted average operators performed best for image reconstruction, while minimum and maximum operators were most effective for pattern recognition in reduced images.
This document discusses the Laplacian operator and its use in image sharpening. It defines the Laplacian as the sum of the second partial derivatives of an image function. This can be approximated using a discrete filter. Applying the Laplacian highlights edges but results in a filtered image that needs further processing. To generate a sharpened image, the Laplacian filtered image is subtracted from the original. Different variants of the Laplacian filter are presented. Comparing first and second derivatives, higher order derivatives have stronger responses to fine detail while lower order derivatives respond more to intensity steps. Successful enhancement combines multiple techniques rather than a single operation.
MedicalSpatial filtering is a process by which we can alter properties of an optical image by selectively removing certain spatial frequencies that make up an object, for example, filtering video data received from satellite and space probes, or removal of raster from a television picture or scanned image. Image processing, digital images slides spatial filters. Filters are divided into two types: linear (also called convolution) and nonlinear. A convolution is an algorithm that consists of recalculating the value of a pixel based on its own pixel value and the pixel values of its neighbors weighted by the coefficients of a convolution kernel. Spatial filtering is commonly used to "clean up" the output of lasers, removing aberrations in the beam due to imperfect, dirty, or damaged optics, or due to variations in the laser gain medium itself.
SpatialEnhancement of course CE7491 of NTUlyumingzhi
油
This document summarizes key concepts in image intensity transformations and filtering. It discusses two classes of spatial domain processing: point processing and spatial filtering. Point processing involves transformations that modify pixel intensities without regard to neighboring pixels, such as contrast stretching and histogram equalization. Spatial filtering computes new pixel values based on neighboring pixels using techniques like smoothing and sharpening filters. Specific filters covered include averaging, Gaussian, Laplacian, and median filters.
Knowledge-Based Agents in AI: Principles, Components, and FunctionalityRashmi Bhat
油
This PowerPoint presentation provides an in-depth exploration of Knowledge-Based Agents (KBAs) in Artificial Intelligence (AI). It explains how these agents make decisions using stored knowledge and logical reasoning rather than direct sensor input. The presentation covers key components such as the Knowledge Base (KB), Inference Engine, Perception, and Action Execution.
Key topics include:
Definition and Working Mechanism of Knowledge-Based Agents
The Process of TELL, ASK, and Execution in AI Agents
Representation of Knowledge and Decision-Making Approaches
Logical Inference and Rule-Based Reasoning
Applications of Knowledge-Based Agents in Real-World AI
This PPT is useful for students, educators, and AI enthusiasts who want to understand how intelligent agents operate using stored knowledge and logic-based inference. The slides are well-structured with explanations, examples, and an easy-to-follow breakdown of AI agent functions.
Virtual Power plants-Cleantech-RevolutionAshoka Saket
油
VPPs are virtual aggregations of distributed energy resources, such as energy storage, solar panels, and wind turbines, that can be controlled and optimized in real-time to provide grid services.
Self-Compacting Concrete: Composition, Properties, and Applications in Modern...NIT SILCHAR
油
Self-Compacting Concrete (SCC) is a high-performance material that flows under its own weight, eliminating the need for vibration. It offers superior workability, durability, and structural efficiency, making it ideal for complex designs, congested reinforcement, and sustainable construction practices.
Industry 4.0: Transforming Modern Manufacturing and BeyondGtxDriver
油
This document explores the fundamental concepts, technologies, and applications of Industry 4.0. Topics include automation, IoT (Internet of Things), smart factories, cyber-physical systems, and the integration of AI and big data analytics in industrial processes. It serves as a comprehensive resource for students, professionals, and enthusiasts eager to delve into the fourth industrial revolution.
Welcome to the April 2025 edition of WIPAC Monthly, the magazine brought to you by the LInkedIn Group Water Industry Process Automation & Control.
In this month's issue, along with all of the industries news we have a number of great articles for your edification
The first article is my annual piece looking behind the storm overflow numbers that are published each year to go into a bit more depth and look at what the numbers are actually saying.
The second article is a taster of what people will be seeing at the SWAN Annual Conference next month in Berlin and looks at the use of fibre-optic cable for leak detection and how its a technology we should be using more of
The third article, by Rob Stevens, looks at what the options are for the Continuous Water Quality Monitoring that the English Water Companies will be installing over the next year and the need to ensure that we install the right technology from the start.
Hope you enjoy the current edition,
Oliver
PROJECT REPORT ON PASTA MACHINE - KP AUTOMATIONS - PASTA MAKING MACHINE PROJE...yadavchandan322
油
All the materials and content contained in Project report is for educational purpose and reflect the views of the industry which are drawn from various research on pasta machine. PM FME- Detailed Project Report of Multigrain Pasta Making Unit. 3. 1. PROJECT ... A pasta extruder is a machine that makes pasta dough through dies to.The process is quite simple and requires not much skilled labour. The machine itself is high technology and provides the manufacturers to produce noodles with. In this article, you will be able to get all the detail about a pasta-making business unit in India and the financial status of this business as well.ENGINEERS INDIA RESEARCH INSTITUTE - Service Provider of Project Report on PASTA PRODUCTION PLANT (SHORT PASTA) [CODE NO. 1632] based in Delhi, India.
Macaroni Machines are used to produce pasta from the raw material. With ... The views expressed in this Project Report are advisory in nature. SAMADHAN.
SIMULATION OF FIR FILTER BASED ON CORDIC ALGORITHMVLSICS Design
油
Coordinate Rotation Digital Computer (CORDIC) discovered by Jack E Volder. It is a shift-add operation and iterative algorithm. CORDIC algorithm has wide area for several applications like digital signal processing, biomedical processing, image processing, radar signal processing, 8087 math coprocessor, the HP-35 calculator, Discrete Fourier, Discrete Hartley and Chirp-Z transforms, filtering, robotics, real time navigational system and also in communication systems. In this paper, we discussed about the CORDIC algorithm and CORDIC algorithm based finite impulse response low pass & high pass filter. We have generated the M-code for the CORDIC Algorithm and CORDIC Algorithm based FIR filter with the help of MATLAB 2010a.We also discussed about the frequency response characteristics of FIR filter.
Explainability and Transparency in Artificial Intelligence: Ethical Imperativ...AI Publications
油
Artificial Intelligence (AI) is increasingly embedded in high-stakes domains such as healthcare, finance, and law enforcement, where opaque decision-making raises significant ethical concerns. Among the core challenges in AI ethics are explainability and transparencykey to fostering trust, accountability, and fairness in algorithmic systems. This review explores the ethical foundations of explainable AI (XAI), surveys leading technical approaches such as model-agnostic interpretability techniques and post-hoc explanation methods and examines their inherent limitations and trade-offs. A real-world case study from the healthcare sector highlights the critical consequences of deploying non-transparent AI models in clinical decision-making. The article also discusses emerging regulatory frameworks and underscores the need for interdisciplinary collaboration to address the evolving ethical landscape. The review concludes with recommendations for aligning technical innovation with ethical imperatives through responsible design and governance.
NFPA 70B & 70E Changes and Additions Webinar Presented By FlukeTranscat
油
Join us for this webinar about NFPA 70B & 70E changes and additions. NFPA 70B and NFPA 70E are both essential standards from the National Fire Protection Association (NFPA) that focus on electrical safety in the workplace. Both standards are critical for protecting workers, reducing the risk of electrical accidents, and ensuring compliance with safety regulations in industrial and commercial environments.
Fluke Sales Applications Manager Curt Geeting is presenting on this engaging topic:
Curt has worked for Fluke for 24 years. He currently is the Senior Sales Engineer in the NYC & Philadelphia Metro Markets. In total, Curt has worked 40 years in the industry consisting of 14 years in Test Equipment Distribution, 4+ years in Mfg. Representation, NAED Accreditation, Level 1 Thermographer, Level 1 Vibration Specialist, and Power Quality SME.
CNC Technology Unit-5 for IV Year 24-25 MECHC Sai Kiran
油
Spatial domain filtering.ppt
1. Neighbourhood Operations
Neighbourhood operations simply operate
on a larger neighbourhood of pixels than
point operations
Neighbourhoods are
mostly a rectangle
around a central pixel
Any size rectangle
and any shape filter
are possible
Origin x
y Image f (x, y)
(x, y)
Neighbourhood
2. Neighbourhood Operations
For each pixel in the origin image, the
outcome is written on the same location at
the target image.
Origin x
y Image f (x, y)
(x, y)
Neighbourhood
Target
Origin
3. Simple Neighbourhood Operations
Simple neighbourhood operations example:
Min: Set the pixel value to the minimum in the
neighbourhood
Max: Set the pixel value to the maximum in the
neighbourhood
4. The Spatial Filtering Process
j k l
m n o
p q r
Origin x
y Image f (x, y)
eprocessed = n*e +
j*a + k*b + l*c +
m*d + o*f +
p*g + q*h + r*i
Filter (w)
Simple 3*3
Neighbourhood
e 3*3 Filter
a b c
d e f
g h i
Original Image
Pixels
*
The above is repeated for every pixel in the
original image to generate the filtered image
5. Spatial Filtering: Equation Form
a b
g(x, y) ワw(s,t) f (x s, y t)
s緒at 緒b
Filtering can be given in
equation form as shown
above
Notations are based on the
image shown to the left
6. Smoothing Spatial Filters
One of the simplest spatial filtering
operations we can perform is a smoothing
operation
Simply average all of the pixels in a
neighbourhood around a central value
Especially useful
in removing noise
from images
Also useful for
highlighting gross
detail
1/9
1/9
1/9
1/9
1/9
1/9
1/9
1/9
1/9
Simple
averaging
filter
7. Smoothing Spatial Filtering
1/9
1/9
1/9
1/9
1/9
1/9
1/9
1/9
1/9
Origin x
y Image f (x, y)
e = 1/9*106 +
1/9*104 + 1/9*100 + 1/9*108 +
1/9*99 + 1/9*98 +
1/9*95 + 1/9*90 + 1/9*85
Filter
Simple 3*3
Neighbourhood
106
104
99
95
100 108
98
90 85
9 9
9 9
9 9
1/ 1/ 1/9
1/ 1/ 1/9
1/ 1/ 1/9
3*3 Smoothing
Filter
104 100 108
99 106 98
95 90 85
Original Image
Pixels
*
= 98.3333
The above is repeated
for every pixel in the
8. Image Smoothing Example
The image at the top left
is an original image of
size 500*500 pixels
The subsequent images
show the image after
filtering with an averaging
filter of increasing sizes
3, 5, 9, 15 and 35
Notice how detail begins
to disappear
15. Weighted Smoothing Filters
1/16
2/16
1/16
2/16
4/16
2/16
1/16
2/16
1/16
More effective smoothing filters can be
generated by allowing different pixels in the
neighbourhood different weights in the
averaging function
Pixels closer to the central pixel are more
important
Often referred to as a
weighted averaging
Weighted averaging filter
16. Another Smoothing Example
By smoothing the original image we get rid
of lots of the finer detail which leaves only
the gross features for thresholding
Original Image Smoothed Image Thresholded Image
17. Averaging Filter Vs. Median Filter
Example
Filtering is often used to remove noise from
images
Sometimes a median filter works better than
an averaging filter
Original Image
With Noise
Image After
Averaging Filter
Image After
Median Filter
21. Strange Things Happen At The Edges!
At the edges of an image we are missing
pixels to form a neighbourhood
O x
rig
i
n
e e
e
e
e e e
y Image f (x , y)
22. Strange Things Happen At The Edges!
(界看稼岳)
There are a few approaches to dealing with
missing edge pixels:
Omit missing pixels
Only works with some filters
Can add extra code and slow down processing
Pad the image
Typically with either all white or all black pixels
Replicate border pixels
Truncate the image
23. Correlation & Convolution
The filtering we have been talking about so
far is referred to as correlation with the filter
itself referred to as the correlation kernel
Convolution is a similar operation, with just
one subtle difference
For symmetric filters it makes no difference
eprocessed = v*e +
z*a + y*b + x*c +
w*d + u*e +
t*f + s*g + r*h
r s t
u v w
x y z
Filter
a b c
d e e
f g h
Original Image
Pixels
*
24. Sharpening Spatial Filters
Previously we have looked at smoothing
filters which remove fine detail
Sharpening spatial filters seek to highlight
fine detail
Remove blurring from images
Highlight edges
Sharpening filters are based on spatial
differentiation
27. 1st Derivative
The formula for the 1st derivative of a
function is as follows:
x
Its just the difference between
subsequent values and measures
the rate of change of the function
f
f (x 1) f (x)
29. 2nd Derivative
The formula for the 2nd derivative of a
function is as follows:
Simply takes into account the values both
before and after the current value
f (x 1) f (x 1) 2 f (x)
2
x
2
f
32. Using Second Derivatives For Image
Enhancement
The 2nd derivative is more useful for image
enhancement than the 1st derivative
Stronger response to fine detail
Simpler implementation
We will come back to the 1st order derivative
later on
The first sharpening filter we will look at is
the Laplacian
Isotropic
One of the simplest sharpening filters
We will look at a digital implementation
33. The Laplacian
The Laplacian is defined as follows:
and in the y direction as follows:
2
f 2
f
f
2
x
2
y
where the partial 1st order derivative in the x
direction is defined as follows:
2
f (x 1, y) f (x 1, y) 2 f (x, y)
2
x
2
f
f (x, y 1) f (x, y 1) 2 f (x, y)
2
y
2
f
34. The Laplacian (界看稼岳)
So, the Laplacian can be given as follows:
2
f [ f (x 1, y) f (x 1, y)
f (x, y 1) f (x, y 1)]
4 f (x, y)
We can easily build a filter based on this
0 1 0
1 -4 1
0 1 0
35. The Laplacian (界看稼岳)
Applying the Laplacian to an image we get a
new image that highlights edges and other
discontinuities
Original
Image
Laplacian
Filtered Image
Laplacian
Filtered Image
Scaled for
Display
36. But That Is Not Very Enhanced!
Laplacian
Filtered Image
Scaled for
Display
The result of a Laplacian filtering
is not an enhanced image
We have to do more work in
order to get our final image
Subtract the Laplacian result
from the original image to
generate our final sharpened
enhanced image
g(x, y) f (x, y) 2
f
37. Laplacian Image Enhancement
In the final sharpened image edges and fine
detail are much more obvious
- =
Original
Image
Laplacian
Filtered Image
Sharpened
Image
39. Simplified Image Enhancement
The entire enhancement can be combined
into a single filtering operation
g(x, y) f (x, y) 2
f
f (x, y) [ f (x 1, y) f (x 1, y)
f (x, y 1) f (x, y 1)
4 f (x, y)]
5 f (x, y) f (x 1, y) f (x 1, y)
f (x, y 1) f (x, y 1)
40. Simplified Image Enhancement (界看稼岳)
This gives us a new filter which does the
whole job for us in one step
0 -1 0
-1 5 -1
0 -1 0
42. Variants On The Simple Laplacian
There are lots of slightly different versions of
the Laplacian that can be used:
0 1 0
1 -4 1
0 1 0
1 1 1
1 -8 1
1 1 1
-1 -1 -1
-1 9 -1
-1 -1 -1
Simple
Laplacian
Variant of
Laplacian
43. Unsharp Mask & Highboost Filtering
Using sequence of linear spatial filters in
order to get Sharpening effect.
-Blur
-Subtract from original image
-add resulting mask to original image
45. 1st Derivative Filtering
y
f
Implementing 1st derivative filters is difficult in
practice
For a function f(x, y) the gradient of f at
coordinates (x, y) is given as the column
vector:
f
G
y
f
Gx
x
46. 1st Derivative Filtering (界看稼岳)
The magnitude of this vector is given by:
f mag(f )
2
1
2 2
y
x
G G
2
1
削
y
f
2
x
f
2
For practical reasons this can be simplified as:
f Gx Gy
47. 1st Derivative Filtering (界看稼岳)
There is some debate as to how best to
calculate these gradients but we will use:
f z7 2z8 z9 z1 2z2 z3
z3 2z6 z9 z1 2z4 z7
which is based on these coordinates
z1 z2 z3
z4 z5 z6
z7 z8 z9
48. Sobel Operators
Based on the previous equations we can
derive the Sobel Operators
To filter an image it is filtered using both
operators the results of which are added
together
-1 -2 -1
0 0 0
1 2 1
-1 0 1
-2 0 2
-1 0 1
49. Sobel Example
Sobel filters are typically used for edge
detection
An image of a
contact lens which
is enhanced in
order to make
defects (at four and
five oclock in the
image) more
obvious
50. 1st & 2nd Derivatives
Comparing the 1st and 2nd derivatives we
can conclude the following:
1st order derivatives generally produce thicker
edges
2nd order derivatives have a stronger response to
fine detail e.g. thin lines
1st order derivatives have stronger response to
grey level step
2nd order derivatives produce a double response
at step changes in grey level
51. Combining Spatial Enhancement
Methods
Successful image
enhancement is typically not
achieved using a single
operation
Rather we combine a range
of techniques in order to
achieve a final result
This example will focus on
enhancing the bone scan to
the right
52. Combining Spatial Enhancement
Methods (界看稼岳)
(a)
Laplacian
filter of
bone scan (a)
(b)
Sharpened
version of
bone scan
achieved by
subtracting (a)
and (b)
(c)
Sobel
filter of
bone scan
(d)
53. Combining Spatial Enhancement
Methods (界看稼岳)
Sharpened
Result of applying a
power-law trans. to
image (g)
The product of (c)
and (e) which will be
used as a mask
(e)
which is sum of (a)
and (f)
(f)
(g)
(h)
Image (d) smoothed with
a 5*5 averaging filter