Professional Documents
Culture Documents
The Sobel Edge Detector uses two convolution
kernels, one to detect changes in vertical contrast (h
x
)
and another to detect horizontal contrast (h
y
). The Sobel
Edge Detector uses two convolution kernels, one to
detect changes in vertical contrast (h
x
) and another to
detect horizontal contrast (h
y
).
1 0 1 1 2 1
2 0 2 , 0 0 0
1 0 1 1 2 1
x y
h h
1 1
1 1
1 1
1 1
] ]
Typically it is used to find the approximate absolute
gradient magnitude at each point in an input grayscale
image. Steps:
The Sobel edge detector uses a pair of 33
convolution masks, one estimating the gradient in
the x-direction (columns) and the other estimating
the gradient in the y-direction (rows).
A convolution mask is usually much smaller than
the actual image. As a result, the mask is slid over
the image, manipulating a square of pixels at a
time.
If we define A as the source image, and Gx and Gy
are two images which at each point contain the
horizontal and vertical derivative approximations,
then the masks are as follows:
The magnitude of the gradient is then
Calculated using the formula:
2 2
| G G x G y +
An approximate magnitude can be calculated
using:
|G| = |Gx| + |Gy|
5. CANNY EDGE DETECTION TECHNIQUE
Canny edge detector discovers the optimal edges. In this
situation, an optimal edge detector means it should
mark all possible edges .marked edges are visited only
once and possibly are the only edges not any false data.
Steps:
The Canny edge detector uses a filter based on the
first derivative of a Gaussian.
It is prone to noise present on raw unprocessed
image data, so to begin with, the raw image is
convolved with a Gaussian filter.
Result is a slightly blurred version of the original
which is not affected by a single noisy pixel to any
significant degree. Smaller filters cause less
blurring, and allow detection of small, sharp lines.
An edge in an image may point in a variety of
directions, so the Canny algorithm uses four filters
to detect horizontal, vertical and diagonal edges
in the blurred image.
Figure 3: Retrieved Images using Intensity
Scale Measurement
Content Based Image Retrieval by Comparing Color and Shape Features
643
The edge detection operator (Sobel for example)
returns a value for the first derivative in the
horizontal direction (Gy) and the vertical direction
(Gx). From the edge gradient and direction can be
determined:
2 2
x y
G G G +
arctan .
y
x
G
G
_
,
6. CONCLUSION
Content-based image retrieval is currently a very
important and active research in the field of multimedia
databases. Since the explosive growth of image data in
the large image archives need a more prcised retrieval
techniques to find the similar images. In this paper the
intensity scale measurement is used for color histogram
to retrieve the similar images from the database. The
canny and sobel edge detection techniques are used to
detect the edges from the image database. From which
the canny edge detection techniques performance is
better than the sobel edge detection technique. Canny
gives good result in retrieving the edges.
7. SCOPE AND FUTURE WORK
In this paper, the query image from the large image
database are retrieved by using two features that are
color and shape. In shape, there are used two edge
detection techniques that are canny and sobel. And in
color feature there is used intensity scale measurement.
In this the comparative study is done. In future work, if
there will be used shape and color techniques
combinedly then the result will be retrieved as per query.
REFERENCES
[1] A. Smeulder, M. Worring, S. Santini, A. Gupta and
R. Jain, Content Based Image Retrieval at the End of
the Early Years, IEEEPAMI, 2000.
[2] Canny, J., A Computational Approach to Edge
Detection, IEEE Trans. Pattern Analysis and Machine
Intelligence, 1986.
[3] Lim, J.H., S.J. Jesse and Luo Suhuai, A Structured
Learning Approach to Semantic Photo Indexing and
Query, Asia Information Retrieval Symposium, Jeju Island,
Korea, October 2005.
[4] Swain, M.J. and D.H. Ballard, Color Indexing,
International Journal of Computer Vision, 1991.
[5] Y. Rui, T. S. Huang and S. F. Chang, Image Retrieval:
Current Techniques, Promising Directions and Open
Issues, Journal of Visual Communication and Image
Representation, 1999.
Table 1
Retrieved Images Threshold Values
Object Threshold
category value Object 1 Object 2 Object 3 Object 4 Object 5 Object 6 Object 7 Object 8 Object 9 Object 10
Img.1 0.4 0.00 0.35 0.41 0.50 0.53 0.55 0.55 0.58 0.60 0.64
Img.2 0.4 0.00 0.66 1.66 2.51 3.60 4.29 4.54 5.34 6.78 6.94
Img.3 0.4 0.00 0.74 0.87 0.96 1.04 1.08 1.12 1.12 1.15 1.16
Img.4 0.4 0.00 0.30 0.38 0.40 0.45 0.46 0.58 0.59 0.61 0.68
Img.5 0.4 0.00 1.04 1.28 1.31 1.37 1.57 1.68 1.74 1.77 1.79