Assignment No.: 5: Aim: Theory
Assignment No.: 5: Aim: Theory
: 5
Aim: To implement a program for feature extraction in 2D color images (any features like color,
texture etc.)
Theory:-
• Multimedia IR
• Techniques to represent audio and visual document
• Two dimensional color images
• Automatic feature extraction
Histogram:-
A histogram uses a bar graph to pro le the occurrences of each gray level present in an
image. The horizontal axis is the gray-level values. It begins at zero and goes to the number of
gray levels (256 in this example). Each vertical bar represents the number of times the
corresponding gray level occurred in the image.
Histograms also help select thresholds for object detection (an object being a
house, road, or person). Objects in an image tend to have similar gray levels.
Histogram Equalization:-
Equalization causes a histogram with a mountain grouped closely together to spread
out" into a flat or equalized histogram. Spreading or fattening the histogram makes the
dark pixels appear darker and the light pixels appear lighter.
Edge Detection:-
Detecting edges is a basic operation in image processing. The edges of items in an image hold
much of the information in the image. The edges tell you where items are their size, shape, and
something about their texture. The top part of shows the side views of an ideal edge.
An edge is where the gray level of the image moves from an area of low values to high values or
vice versa. The edge itself is at the center of this transition.
An edge detector should return an image with gray levels like those shown in the lower
part of Figure.
The detected edge gives a bright spot at the edge and dark areas everywhere else. Calculus fans
will note the detected edge is the derivative of the edge. This means it is the slope or rate of
change of the gray levels in the edge. The slope of the edge is always positive or zero and it
reaches its maximum at the edge. For this reason, edge detection is often.
Textures :-
One way of describing texture is \things" arranged in a \pattern." Textures are a
function of things and patterns | mathematically, texture = f(thing, pattern). The thing is a
grouping of pixels such as a dot or line. The pattern is the arrangement of the things such as
a random or regular cluster of dots and horizontal or vertical lines. Regular patterns are
usually man made while random patterns are natural. These ideas about texture all make sense,
but a commonly used model of texture is lacking.
What we want is an operator that could characterize the things and pat-terns that
comprise texture. Such an operator would represent a texture by a number just as gray levels
represent the lightness or darkness of objects. We could then use the gray level and edge-
based segmentation techniques.