IMAGE PROCESSING SYSTEM

Abstract: An image processing system includes: a memory unit for storing an image in the form of vectors; a discrimination unit for fetching vector data representative of the image stored in the memory unit and discriminating the signs of a component of a normal vector of the vector data at a point constituting the contour of the image; and a moving unit for moving the point constituting the contour of the image on the basis of the discrimination result by the discrimination unit.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a method of transforming delineative patterns such as graphic characters which method is used with a graphic pattern processing system employing vector data for processing the delineative patterns and more particularly, to an image processing System in which contour line data, composed of vector data, of the delineative pattern is moved by discriminating the signs of the normal vector component of the contour line data so that the widths along the vertical and horizontal directions of the delineative pattern can be changed independently from each other. Related Background Art The method of processing graphic characters in the form of vector data is very advantageous in its high data compression rate and its high quality of displayed graphic patterns which have undergone desired graphic pattern transformation, such as magnification, reduction and the like. However, with the conventional pattern transformation, when character "H" as shown in Fig. 7A for example is subjected to proportional magnification, the resultant transformed characters are such as those shown in Fig. 7B and Fig. 7C. Thus, in case where a character is magnified or reduced in scale, the ratio of the width along the vertical direction to the width along the horizontal direction is constant and the relative width between both directions cannot be changed. An example of a prior art method of displaying an image is disclosed in European Patent Application No. 0137856. SUMMARY OF THE INVENTION According to the present invention an image processing system of the kind in which there is memory means to store data representing the contour of a figure in the form of trains of points connected by vectors, is characterised by direction determining means for determining at each one point a direction at substantially the same angle to both vectors adjacent to said point; means for thickening the figure in the horizontal direction or in the vertical direction independently from each other by moving said each one point in a horizontal component or in a vertical component of a fixed distance in the respective direction determinated by said determining means in case of thickening the figure in either one of the horizontal and vertical directions; and means for narrowing the figure in the horizontal direction or in the vertical direction independently from each other by moving said each one point in a direction opposite to said horizontal component or in a direction opposite to said vertical component in case of narrowing the figure in either one of the horizontal and vertical directions. According to the present invention and image processing method of the kind in which data representing the contour of a figure is stored in the form of points connected by vectors, is characterised by the steps of: determining at each one point a direction at substantially the same angle to both vectors adjacent to said point; thickening the figure in the horizontal direction or in the vertical direction independently from each other by moving said each one point in a horizontal component or in a vertical component of a fixed distance in the respective direction in the case of thickening the figure in either one of the horizontal and vertical directions; and narrowing the figure in the horizontal direction or in the vertical direction independently from each other by moving said each one point in a direction opposite to said horizontal component or in a direction opposite to said vertical component in the case of narrowing the figure in either one of the horizontal and vertical directions. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram illustrating an embodiment of the image processing system according to the present invention; Fig. 2 is an example of vector data of the contour of graphic character "P"; Fig. 3 shows normal vectors of the vector data of Fig. 2; Fig. 4A illustrates the vertical width transformation of the graphic character of Fig. 2; Fig. 4B shows vector data of the graphic character after undergoing the transformation of Fig. 4A; Fig. 5 illustrates an approximate solution of normal vectors according to the present invention; Figs. 6A and 6B show examples of graphic characters obtained according to the present invention; and Figs. 7A, 7B and 7C show examples of graphic characters obtained according to the prior art. DETAILED DESCRIPTION OF THE EMBODIMENT The embodiment of the present invention will now be described with reference to the accompanying drawings. In the image processing system of the present invention, the objects to be processed may include an image, graphic pattern, graphic character and the like. Obviously, the system may be constructed of a composite apparatus or a unitary apparatus. Fig. 1 is a block diagram showing the embodiment of the image processing apparatus of the present invention. In the Figure, reference numeral 1 represents a vector processor, reference numeral 2 represents a vector data memory, reference numeral 3 represents a pattern generator, and reference numeral 4 represents a temporary pattern memory. Character (or image) data in the form of vector data is stored in the vector data memory 2. The vector processor 1 receives an execution command from an external circuit and reads necessary data from the vector data memory 2. The vector processor 1 processes the read-out vector data to obtain necessary data which in turn is sent to the pattern generator 3. The pattern generator 3 develops the vector data as numerical data into an actual vector pattern and writes it into the temporary pattern memory 4. The written pattern is then read out to an external circuit as a processed data output. The contour of a graphic character is represented by a vector data point train shown by o symbols, linear line segments and/or curved line segments being interposed between points. The direction of each vector data, and hence the order of each point is arranged as shown by arrows so that the inside of the graphic pattern (inside of the contour) is always located to the right side relative to the direction of each vector data. The normal vectors at respective points are shown in Fig. 3. As seen from Fig. 3, the normal vectors are directed to the outside of the contour, which results from the above-noted order of each point. To make broader only the width along the vertical direction of the pattern, only the sign of the x component of each normal vector is to be noticed and the point is moved by a predetermined amount in the direction of the x component of the normal vector. An example of the character thus processed by moving the points of Fig. 2 character is shown in Fig. 4. In Fig. 4A illustrating the process of making broader the width, o symbols represent the points before the process while ▵ symbols represent the points after the process. Fig. 4B shows the contour of the character thus obtained. Alternatively, to make narrow the width along the vertical direction of the pattern, the point is moved in the direction opposite to that of the x component of the normal vector. Similarly, as to the width along the horizontal direction of the pattern, only the signs of the y component of the normal vector is taken into consideration for widening or narrowing the width. With the above processes, it is possible to independently make broader or narrower the widths along the vertical and horizontal directions of the contour of a graphic character. It is noted that the direction of movement of the point train of the vector data depends only upon the signs of the x and y components of the normal vectors. Therefore, it is not necessary to use a precise normal vector for each point, but an approximate value can be employed using a simplified algorithm. An approximate solution of a normal vector applied to the present embodiment will be described with reference to Fig. 5. Fig. 5 shows vector data point train P n-1 (x n-1 , y n-1 ), P n (x n , y n ) and P n+1 (x n+1 , y n+1 ), and vectors V n and V n+1 interconnecting the points. The relation between each points and vectors V n and V n+1 can be expressed in the following equations: V n = (x n - x n-1 , y n - y n-1 ) V n+1 = (x n+1 - x n , y n+1 - y n ) } (1) Assuming here that tangent vector t₁ is defined as having the same angle α and β , tangent vector t₁ can be expressed in the following equation because the half of the angle between vectors V n+1 and V n are obtained by adding the unit vectors thereof: t₁ = (V n+1 /|V n+1 | ) + (V n / |V n | ) (2) Normal vector (unit vector n perpendicular to tangent vector t(t x , t y ) and directing to the left side relative to the direction of vectors, is given by: n = (-t y , t x ) (3) Therefore, from the equations (1), (2) and (3): n = {-|V n |·(y n+1 - y n ) - |V n+1 |· (y n - y n-1 ) , |V n | · (x n+1 - x n ) + |V n+1 |· (x n - x n-1 )} where t = t₁/(|V n |·|V n+1 |) The approximate normal vector can be solved as above. In this case, if the width only along the vertical direction of the pattern is processed, the y component of the normal vector is not needed, or vice versa. After the graphic character is subjected to the above widening or narrowing process, transformation such as magnification, reduction or rotation is carried out. Examples of such transformation applied to the character shown in Fig. 7A are shown in Figs. 6A and 6B, wherein the magnified character with broadened width along the vertical direction is shown in Fig. 6A, and the magnified character with narrowed width along the horizontal direction is shown in Fig. 6B. As seen from the foregoing description of the present invention, it is possible to independently change the widths along the vertical and horizontal directions of a delineative pattern (e.g., graphic pattern) by discriminating the signs of the normal vector and moving the contour line data. Further, application of the present invention to characters enables various patterned characters easy to read.

Claims: An image processing system of the kind in which there is memory means (2) to store data representing the contour of a figure in the form of trains of points connected by vectors, characterised by direction determining means for determining at each one point a direction at substantially the same angle to both vectors adjacent to said point; means for thickening the figure in the horizontal direction or in the vertical direction independently from each other by moving said each one point in a horizontal component or in a vertical component of a fixed distance in the respective direction determined by said determining means in case of thickening the figure in either one of the horizontal and vertical directions; and means for narrowing the figure in the horizontal direction or in the vertical direction independently from each other by moving said each one point in a direction opposite to said horizontal component or in a direction opposite to said vertical component in case of narrowing the figure in either one of the horizontal and vertical directions. An image processing system as claimed in claim 1, including dot data memory means (4) for storing the points moved by the moving means as dot data. An image processing system according to claim 1 or 2, wherein said discriminating means determines each sign on the basis of a component of the corresponding normal vector, and wherein said component is selected from the group consisting of an x component and a y component of said corresponding normal vector. An image processing system according to any one of claims 1 to 3, wherein said direction is a direction of a predetermined component of a normal vector of said contour information. An image processing system according to any one of claims 2 to 4, wherein the dot data stored in said dot data memory means is different from data which would be obtained by representing said vector data in its orginal form by dots. An image processing system according to any previous claim, having control means to discriminate whether each of the points goes in a + sense or in a - sense of the discriminated direction. An image processing system according to any of claims 1 to 5, having control means to discriminate the direction on the basis of a normal component obtained by the point train. An image processing system according to any previous claim, further comprising means for interpolating areas between the points represented by the dot data stored in said dot data memory means. An image processing system according to any one of claims 2 to 8, wherein said dot data memory means stores patterns obtained by representing the image by dots, wherein the image includes an image portion having a width, and wherein each of the patterns stored in said dot data memory means has a portion corresponding to said image portion and having a width different from said width of said image portion. An image processing system according to claim 4, further comprising means for deciding whether the moving action performed by said moving means should be in a + sense or a - sense of the direction the slope of the point train is moved by said moving means. An image processing system according to claim 4, wherein said transformation means includes means for performing at least one of (1) magnification, and (2) rotation of said image information. An image processing system as claimed in any previous claim, further comprising means for executing rotational processing of the thickened or narrowed vector form data. An image processing method of the kind in which data representing the contour of a figure is stored in the form of trains of points connected by vectors, characterised by the steps of: determining at each one point a direction at substantially the same angle to both vectors adjacent to said point; thickening the figure in the horizontal direction or in the vertical direction independently from each other by moving said each one point in a horizontal component or in a vertical component of a fixed distance in the respective direction in the case of thickening the figure in either one of the horizontal and vertical directions; and narrowing the figure in the horizontal direction or in the vertical direction independently from each other by moving said each one point in a direction opposite to said horizontal component or in a direction opposite to said vertical component in the case of narrowing the figure in either one of the horizontal and vertical directions. An image processing method as claimed in claim 13, including the step of storing the moved points as dot data. An image processing method as claimed in claim 13 or 14, including the steps of determining each sign on the basis of a component of the corresponding normal vector, and wherein said component is selected from the group consisting of an x component and a y component of said corresponding normal vector. An image processing method as claimed in any of claims 13 to 15, in which the direction is a direction of a predetermined component of a normal vector of the contour information. An image processing method as claimed in any of claims 14 to 16, in which the dot data stored is different from data which would be obtained by representing the vector data in its orginal form by dots. An image processing method as claimed in any of claims 13 to 17, including the step of discriminating whether each of the points goes in a + sense or in a - sense of the discriminated direction. An image processing method as claimed in any of claims 13 to 17, including the step of discriminating the direction on the basis of a normal component obtained by the point train. An image processing method as claimed in any of claims 13 to 19, including the step of interpolating the areas between the points represented by the stored dot data. An image processing method as claimed in any of claims 13 to 20, comprising storing patterns obtained by representing the image by dots, wherein the image includes an image portion having a width, and wherein each of the stored patterns has a portion corresponding to the image portion and having a width different from the width of the image portion. An image processing method as claimed in any of claims 13 to 21, further comprising the step of deciding whether the moving action performed by the moving means should be in a + sense or a - sense of the direction the slope of the point train is moved by the moving means. An image processing method as claimed in any of claims 13 to 22, including the step of performing at least one of the (1) magnification, and (2) rotation of the image information. An image processing method as claimed in any of claims 13 to 23, including the step of executing rotational processing of the thickened or narrowed vector form data.

Inventors: CHO, KENJIRO
Applicants: CANON KABUSHIKI KAISHA
Application year: 1986
Main classification: G06F15
IPC codes: G09G5, G06T3, G06T1, G06T5