Tuesday, July 5, 2011

Gradient based methods

An edge point can be regarded as a point in an image where a discontinuity (in gradient) occurs across some line. A discontinuity may be classified as one of three types (see Fig 21):

 
Fig. 21 The C Compilation Model

A Gradient Discontinuity
-- where the gradient of the pixel values changes across a line. This type of discontinuity can be classed as
  • roof edges
  • ramp edges
  • convex edges
  • concave edges
by noting the sign of the component of the gradient perpendicular to the edge on either side of the edge. Ramp edges have the same signs in the gradient components on either side of the discontinuity, while roof edges have opposite signs in the gradient components.

A Jump or Step Discontinuity
-- where pixel values themselves change suddenly across some line.
A Bar Discontinuity
-- where pixel values rapidly increase then decrease again (or vice versa) across some line.
For example, if the pixel values are depth values,
  • jump discontinuities occur where one object occludes another (or another part of itself).
  • Gradient discontinuities usually occur between adjacent faces of the same object.
If the pixel values are intensities,
  • a bar discontinuity would represent cases like a thin black line on a white piece of paper.
  • Step edges may separate different objects, or may occur where a shadow falls across an object.

The gradient is a vector, whose components measure how rapidly pixel values are changing with distance in the x and y directions.
Thus, the components of the gradient may be found using the following approximation:
eqnarray638
where tex2html_wrap_inline3398 and tex2html_wrap_inline3400 measure distance along the x and y directions respectively.

In (discrete) images we can consider tex2html_wrap_inline3398 and tex2html_wrap_inline3400 in terms of numbers of pixels between two points. Thus, when tex2html_wrap_inline3410 (pixel spacing) and we are at the point whose pixel coordinates are (i,j) we have
 eqnarray656

In order to detect the presence of a gradient discontinuity we must calculate the change in gradient at (i,j). We can do this by finding the following gradient magnitude measure,
equation663
and the gradient direction, tex2html_wrap_inline3368, given by
equation670

No comments:

Post a Comment

This is Good Computer Information Blog.they will give
best information about computer.