Polygonal approximation method and apparatus for use in a contour encoding system
First Claim
1. A method for polygonally approximating a contour of an object expressed in a digital video signal, comprising the steps of:
- (a) selecting a pair of vertices on the contour;
(b) producing a line segment connecting the pair of vertices by using a multiplicity of pixels;
(c) widening each pixel on the line segment by a predetermined threshold value to thereby generate a band segment;
(d) detecting a contour segment corresponding to the line segment from the contour;
(e) matching the contour segment with the band segment;
(f) determining a new vertex located between the pair of vertices on the contour by widening the band segment; and
(g) repeating the steps (a) to (f) until all vertices of the contour are detected, thereby providing vertex information representing positions of all vertices on the contour,wherein the step (f) includes the steps of;
(f1) checking whether the contour segment is entirely covered by the band segment based on the matched segments produced at the step (e);
(f2) if the contour segment is not completely covered by the band segment, widening the band segment until the contour segment is completely covered by the widened band segment;
(f3) detecting at least one contour pixel on the contour segment, wherein the detected contour pixels if there are more than ones are last pixels being covered by the widened band segment; and
(f4) determining one of the detected contour pixels as the new vertex,wherein the step (f2) contains the steps of;
(f21) calculating a slope of a straight line connecting the pair of vertices;
(f22) detecting to which slope region between a vertical and a horizontal slope regions the calculated slope belongs; and
(f23) in response to the detecting result of the step (f22), vertically or horizontally widening the band segment until the contour segment is completely covered by the widened band segment.
1 Assignment
0 Petitions
Accused Products
Abstract
An apparatus polygonally approximates a contour of an object expressed in a digital video signal. First of all, the apparatus determines a pair of vertices on the contour. Then, a line segment connecting the pair of vertices is generated and widened to thereby produce a band segment. And, a contour segment corresponding to the line segment is detected and, subsequently, the band segment and the contour segment are matched. The band segment is widened to determine a new vertex located between the pair of vertices on the contour until the contour segment is completely covered by the widened band segment. During the band segment widening process, at least one contour pixel on the contour segment, wherein the detected contour pixels, if there are more than one, are last pixels being covered by the widened band segment, are determined and, among the detected contour pixels, a contour pixel, which is closest to a center of a straight line joining the pair of vertices, is determined as the new vertex. Based on the determined vertices, the apparatus recursively performs the above vertex detection process until all vertices on the contour are determined so that the contour is approximated by using the vertices.
-
Citations
15 Claims
-
1. A method for polygonally approximating a contour of an object expressed in a digital video signal, comprising the steps of:
-
(a) selecting a pair of vertices on the contour; (b) producing a line segment connecting the pair of vertices by using a multiplicity of pixels; (c) widening each pixel on the line segment by a predetermined threshold value to thereby generate a band segment; (d) detecting a contour segment corresponding to the line segment from the contour; (e) matching the contour segment with the band segment; (f) determining a new vertex located between the pair of vertices on the contour by widening the band segment; and (g) repeating the steps (a) to (f) until all vertices of the contour are detected, thereby providing vertex information representing positions of all vertices on the contour, wherein the step (f) includes the steps of; (f1) checking whether the contour segment is entirely covered by the band segment based on the matched segments produced at the step (e); (f2) if the contour segment is not completely covered by the band segment, widening the band segment until the contour segment is completely covered by the widened band segment; (f3) detecting at least one contour pixel on the contour segment, wherein the detected contour pixels if there are more than ones are last pixels being covered by the widened band segment; and (f4) determining one of the detected contour pixels as the new vertex, wherein the step (f2) contains the steps of; (f21) calculating a slope of a straight line connecting the pair of vertices; (f22) detecting to which slope region between a vertical and a horizontal slope regions the calculated slope belongs; and (f23) in response to the detecting result of the step (f22), vertically or horizontally widening the band segment until the contour segment is completely covered by the widened band segment. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
7. The method as recited in claim 5, wherein the step (c) includes the steps of:
-
(c1) calculating a slope of a straight line connecting the pair of vertices; and (c2) generating the band segment by vertically or horizontally widening each pixel on the line segment depending on the calculated slope.
-
-
-
8. An apparatus for polygonally approximating a contour of an object expressed in a digital video signal, comprising:
-
means for storing vertex information representing positions of vertices on the contour; means for selecting a pair of vertices among the stored vertices based on the vertex information; means for producing a line segment connecting the pair of vertices by using a multiplicity of pixels; means for generating a band segment by widening each pixel on the line segment by a predetermined threshold value; means for detecting a contour segment corresponding to the line segment from the contour; means for matching the contour segment with the band segment; and means for determining a new vertex located between the pair of vertices on the contour by widening the band segment based on the matched segments and providing new vertex information representing the new vertex to the storing means, wherein the new vertex determining means includes; means for widening the band segment until the contour segment is completely covered by the widened band segment; means for detecting at least one contour pixel on the contour segment wherein the detected contour pixels if there are more than one, are last pixels being covered by the widened band segment; and means for determining one of the detected contour pixels as the new vertex to thereby provide the new vertex information, wherein the band segment widening means contains; means for calculating a slope of a straight line connecting the pair of vertices; means for detecting to which slope region between a vertical and a horizontal slope regions the calculated slope belongs; and means for, in response to the above detecting result, vertically or horizontally widening the band segment until the contour segment is completely covered by the widened band segment. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
14. The apparatus according to claim 13, wherein the band segment generating means includes:
-
means for calculating a slope of a straight line connecting the pair of vertices; and means for generating the band segment by vertically or horizontally widening each pixel on the line segment depending on the calculated slope.
-
-
-
15. A method for polyjonally approximating a contour of an object expressed in a digital video signal comprising the steps of:
-
(a) selecting a pair of vertices on the contour; (b) producing a line segment connecting the Pair of vertices by using a multiplicity of pixels; (c) widening each pixel on the line segment by a predetermined threshold value to thereby generate a band segment, a first number of pixels on the contour being outside said band segment; (d) determining a new vertex located between the pair of vertices on the contour by widening the band segment in one of a horizontal direction and a vertical direction, based on a slope of the line segment said new vertex being selected from among said first number of pixels on the contour and being the last pixel to be encompassed as the band segment is widened; and (e) repeating the steps (a) to (d) until all vertices of the contour are detected, thereby providing vertex information representing positions of all vertices on the contour, wherein the band segment includes neighboring pixels satisfying the following equation for each pixel on the line segment;
space="preserve" listing-type="equation">|x.sub.n -x.sub.s |+|y.sub.n -y.sub.s |≦
TH1wherein xs and ys are x and y coordinates of a target pixel on the line segment, respectively;
xn and yn represent x and y coordinates of a pixel neighboring to the line segment, respectively, and TH1 is the predetermined threshold value.
-
Specification