A contour approximation apparatus for representing a contour of an object

Abstract: A contour approximation apparatus for representing a contour image of an object comprises a polygonal approximation section for determining a number of vertices on the contour image and fitting the contour image with a plurality of line segments to provide a polygonal approximation of the contour image, a sampling circuit for providing N sample points for each of the line segments, an error detector for calculating an error for each of the N sample points on each of the line segments to produce a set of errors for each of the line segments, a discrete sine transform and quantization block for transforming each set of errors into a set of discrete sine transform coefficients, and for converting the set of discrete sine transform coefficients into a set of quantized transform coefficients.

Description: Field of the Invention The present invention relates to a contour approximation apparatus for use in a video signal encoder; and, more particularly, to a contour approximation apparatus for reconstructing a contour of an object. Description of the Prior Art In digital television systems such as video-telephone, teleconference and high definition television systems, a large amount of digital data is needed to define each video frame signal since a video line signal in the video frame signal comprises a sequence of digital data referred to as pixel values. Since, however, the available frequency bandwidth of a conventional transmission channel is limited, in order to transmit the substantial amount of digital data therethrough, it is inevitable to compress or reduce the volume of data through the use of various data compression techniques, especially, in the case of such low bit-rate video signal encoder as video-telephone and teleconference system. One of such methods for encoding video signals for a low bit-rate encoding system is the so-called object-oriented analysis-synthesis coding technique( see Michael Hötter, "Object-Oriented Analysis-Synthesis Coding Based on Moving Two-Dimensional Objects", Signal Processing: Image Communication 2, 409-428(1990)). According to the object-oriented analysis-synthesis coding technique, an input video image is divided into objects; and three sets of parameters for defining the motion, contour and pixel data of each object are processed through different encoding channels. Specifically, in processing a contour image of an object, contour information is important for the analysis and synthesis of the object shape. The classical coding method for representing the contour information is the chain coding. The chain coding method, however, requires a substantial amount of bits for the representation thereof although there is no loss in the contour information. In this regard, there have been proposed several methods to approximate contours such as polygonal approximation and B-spline approximation, etc. One of the disadvantages in the polygonal approximation is the rough representation of the contour image. The B-spline approximation is, on the other hand, capable of representing the contour image more precisely: however, it requires high-order polynomials to reduce approximation errors, thereby increasing the overall computational complexity of the video encoder. Summary of the Invention It is, therefore, a primary object of the invention to provide a novel contour approximation apparatus by employing a polygonal approximation and discrete sine transform(DST), thereby providing a representation of an contour image with an increased accuracy and a reduced overall computational complexity. In accordance with the invention, there is provided a contour approximation apparatus, for use in a video signal encoder, for representing a contour image of an object, which comprises: means for determining a number of vertices on the contour image; means for fitting the contour image with a plurality of line segments to provide a polygonal approximation of the contour image, each of the line segments joining two neighboring vertices; means for providing N sample points for each of the line segments, said N sample points being equi-spaced on each of the line segments; means for calculating an error for each of the N sample points on each of the line segments to produce a set of errors for each of the line segments, each of the errors of the set representing the distance between said each of the N sample points and the contour image; means for converting each set of errors into a set of discrete sine transform coefficients; and means for generating the set of discrete sine transform coefficients into a set of quantized transform coefficients. Brief Description of the Drawings The above and other objects and features of the present invention will become apparent from the following description of preferred embodiments given in conjunction with the accompanying drawings, in which: Fig.1 depicts a block diagram of the inventive contour approximation apparatus for representing a contour image; Figs. 2A to 2C illustrate an exemplary polygonal approximation process of the contour image; and Figs. 3A and 3B show exemplary diagrams, each of which representing errors between a line segment joining two vertices and its corresponding contour image. Detailed Description of the Preferred Embodiments Referring to Fig. 1, there is shown a block diagram of the inventive contour approximation apparatus for representing a contour image of an object expressed in a video signal. The contour image data representing the contour of an object is fed to a polygonal approximation section 100 and an error detector 300. At the polygonal approximation section 100, the contour image is approximated by a polygonal approximation technique. The polygonal approximation of the object shape is achieved through the use of a conventional approximation algorithm for fitting the contour image by line segments. Referring to Figs. 2A to 2C, there is illustrated a segmentation process for an exemplary contour image 10 according to the polygonal approximation technique. First, two starting vertices are selected. If the contour image is of an open loop, two end points, e.g., A and B as shown in Fig. 2A, are selected as the starting vertices. On the other hand, if the contour image is in the form of a closed loop, two farthest points on the contour are selected as the starting vertices. And then, the farthest point on the contour from a line segment AB is determined. If the distance D max between the farthest point, e.g., C, and the line segment AB is greater than a predetermined threshold value, the point C becomes a vertex. This procedure is repeated until said D max for each segment becomes smaller than the predetermined threshold value. The number of vertices depends on the predetermined threshold value. As can be seen from Figs. 2A to 2C, the representation of the contour image by line segments becomes more accurate with a smaller predetermined threshold value at the expense of coding efficiency. Referring back to Fig. 1, vertex information representing the positions of the determined vertices, e.g., A, B, C, D and E, of the contour image 10 is provided from the polygonal approximation section 100 to a sampling circuit 200 and a contour coder 500. The sampling circuit 200 provides N sample points for each line segment to the error detector 300, the N sample points being equi-spaced on each line segment between two vertices with N being an integer. Based on the vertex information from the sampling circuit 200 and the contour image data, the error detector 300 calculates an approximation error at each of the N sample points on each line segment and provides the errors to a discrete sine transform(DST) and quantization block 400. The approximation errors represent the distances between a line segment joining two vertices and the contour segment between the two vertices. Figs. 3A and 3B illustrate exemplary diagrams representing errors between line segments and corresponding contour segments, wherein Fig. 3A depicts errors between the line segment AD and its corresponding contour segment and Fig. 3B shows errors between the line segment DC and its corresponding contour segment. Each of the errors d1 to d4 or d1' to d4' represents the distance from each sample point s1 to s4 on the line segment AD or s1' to s4' on the line segment DC to the corresponding contour segment. As can be seen in Figs. 3A and 3B, the approximation errors for the vertices are all "zeros". For all the vertices are positioned on the contour. The errors calculated by the error detector 300 are supplied to the DST and quantization block 400 for generating quantized DST coefficients. The DST and quantization block 400 performs one-dimensional DST operation on each set of errors to produce a set of DST coefficients, errors for each set including errors for N sample points and two vertices of each line segment; and quantizes the set of DST coefficients to provide a set of quantized DST coefficients corresponding to each line segment to the contour coder 500 for further processing. At the contour coder 500, each set of the quantized DST coefficients is encoded, e.g., by using the binary arithmetic code of JPEG(Joint Photographic Experts Group), while the vertex information from the polygonal approximation section 100 is encoded by using, e.g., a fixed length code without compression since the vertices are sparsely correlated. The encoded digital signal comprising the encoded quantized DST coefficients and the vertex information is transmitted to a transmitter for the transmission thereof. While the present invention has been described with reference to the particular embodiments, it will be apparent to those skilled in the art that various changes and modifications may be made without departing from the scope of the invention as defined in the following claim.

Claims: A contour approximation apparatus, for use in a video signal encoder, for representing a contour image of an object, which comprises: means for determining a number of vertices on the contour image; means for fitting the contour image with a plurality of line segments to provide a polygonal approximation of the contour image, each of the line segments joining two neighboring vertices; means for providing N sample points for each of the line segments, said N sample points being equi-spaced on each of the line segments; means for calculating an error for each of the N sample points on each of the line segments to produce a set of errors for each of the line segments, each of the errors or the set representing the distance between said each of the N sample points and the contour image; means for transforming each set of errors into a set of discrete sine transform coefficients; and means for converting the set of discrete sine transform coefficients into a set of quantized transform coefficients.

Inventors: KIM JIN-HUN, KIM JONG-LAK, KIM, JIN-HUN, KIM, JONG-LAK
Applicants: DAEWOO ELECTRONICS CO LTD, DAEWOO ELECTRONICS CO., LTD
Application year: 1995
Main classification: H04N7
IPC codes: G06T9, H04N1, H04N7, G06K9, G06T3