RAT292 M3 Part 2 Sensors and Actuators
RAT292 M3 Part 2 Sensors and Actuators
• where S =m1 + m2 + …. + m9 = 9
• The large difference between the noisy
pixel and the surrounding pixels, i.e., 100
vs. 20, becomes much smaller, namely, 29
vs. 20, thus reducing the noise.
• With this characteristic, the mask acts as a
low-pass filter.
• Here reduction of noise has been achieved
using what is referred as neighbourhood
averaging.
• It causes the reduction of the sharpness
of the image as well.
Edge Detection
• Edge detection is a general name for
a class of computer programs and
techniques that operate on an image
and result in a line drawing of the
image.
• The lines represent changes in values
such as cross section of planes,
intersections of planes, textures,
lines, etc.
• Sudden changes of discontinuities in an
image are called as edges.
• Significant transitions in an image are
called as edges.
• Edge detection includes a variety
of mathematical methods that aim at
identifying points in a digital image at
which the image brightness changes
sharply or, more formally, has
discontinuities.
• The points at which image brightness
changes sharply are typically organized into
a set of curved line segments termed edges.
Edge detection
• In many edge-detection techniques, the
resulting edges are not continuous.
• Many applications, continuous edges
are preferred, which can be obtained
using the Hough transform.
• It is a technique used to determine the
geometric relationship between
different pixels on a line, including the
slope of the line.
• Hough Space, an alternate way to
represent a line, and how lines are
detected.
Hough transform
• Consider a straight line in the xy-plane, as, which is
expressed as
y = mx + c, where m is the slope and c is the
intercept
• The line can be transformed into a Hough
plane of m – c with x and y as its slope and
intercept, respectively.
• A line in the xy-plane will transform into a
point in the Hough plane.
• All lines through a point in the Hough plane
will transform into a single line in the x-y
plane.
• If a group of points is collinear, their Hough
transform will all intersect. So it can be
determined whether a cluster of pixels is on a
straight line or not.
• The orientation of an object in a plane can be
determined by calculating the orientation of a
Another notation
• when representing lines in
the form of y = ax + b and
the Hough Space with the
slope and intercept, the
algorithm won’t be able to
detect vertical lines because
the slope is
undefined/infinity for
•vertical
To avoidlines
this issue, a straight line is instead represented by
a line called the normal line that passes through the origin
and perpendicular to that straight line.
• The form of the normal line is ρ = x cos(θ) + y sin(θ) where
ρ is the length of the normal line and θ is the angle
between the normal line and the x axis.
Note
• Basically, lines are drawn from each of the points that are equal to
255 (white pixels in binary image) in all possible directions (180
degrees), and corresponding r (radius) and θ (angle) are noted
down.
• This is done for each pixel with value 255 on the image.
• Now if there are multiple points on the image and they happen to
lie on a line, they will generate same value of radius and θ (angle).
• Assume that we increment the count for same value of radius and
θ (angle).
• When we are finished going through all the points on the image,
we will have a few combinations of radius and θ (angle) which will
have count more than 1.
• All these points that have same value for radius and θ (angle) can
be joined using a straight line.
Segmentation
• Segmentation is a generic name for a number of
different techniques that divide the image into
segments .
• The purpose of segmentation is to separate the
information contained in the image into smaller
entities that can be used for other purposes.
• Segmentation includes
• edge detection,
• region growing and splitting, and others
A.region growing
• region growing works based on the similar
attributes, such as gray-level ranges or other
similarities, and then try to relate the regions by
their average similarities.