Picture processing apparatus

Abstract: A picture processing apparatus is disclosed in which edges of an input picture are detected by edge detecting means to form edge detection data, which then are transformed so that the histogram of the edge detection data becomes substantially flat, and in which the line picture is displayed on the basis of the transformed edge detection data.

Description: BACKGROUND OF THE INVENTION Field of the Invention This invention relates to a picture processing apparatus for transforming an input picture into a picture of a desired morphological state. More particularly, it relates to a picture processing apparatus for transforming an input picture into a picture in which the edge portions of the picture are expressed as lines, such a picture being referred to hereinafter as a line picture. Description of the Prior Art Most of the structural features contained in a picture outputted from a camera, VTR or the like may be grasped as lines characteristic of the edge portions, such as contours or boundaries, of the photographed object. The line picture in which the features of the original picture are grasped and expressed by lines give a strong impression to the viewer. On the other hand, a crayon picture or an oil painting, which is a picture colored by special techniques, imparts a unique feeling or sense of a piece of art. Conventionally, such line picture or picture colored by special techniques were prepared by manual operation, so that considerable time and labor were expended in preparing such pictures. OBJECTS AND SUMMARY OF THE INVENTION Objects It is a principal object of the present invention to provide a picture processing apparatus whereby the line picture may be prepared automatically based on picture data representing a picture. It is another object of the present invention to provide a picture processing apparatus whereby a colored line picture may be prepared automatically based on picture data representing a picture. It is still another object of the present invention to provide a picture processing apparatus whereby the weighting coefficients are determined in advance by learning for a short time, and the edges of the input picture, such as its contours or boundaries, are detected on the basis of the input picture data for transforming the input picture into the line picture. The publication of the IEEE First International Conference on Neural Networks; 21 June 1987, San Diego, USA; pages 293-300, which is considered the most relevant publication to the appended claims, discloses the use of edge detection in images and the use of a multi-layer perceptron with error back propagation in image mappings. According to the present invention, there is provided a picture processing apparatus for transforming an input picture into a line picture comprising: a) edge detection means for receiving input picture data representing an input picture, for detecting the edges of said input picture and for producing edge detection data representing said edges; b) converting means for receiving edge detection data outputted from said edge detection means, said converting means, in use, converting said edge detection data by transforming their values so that the histogram of said edge detection data at the output side becomes flatter than the histogram of said edge detection data at the input side; and c) means for displaying or storing the line picture on the basis of signals outputted from said converting means. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing an embodiment of a picture processing apparatus of the present invention. Fig. 2 is a flowchart for illustrating the operation of the picture processing apparatus shown in Fig. 1. Figs. 3 to 5 are diagrammatic views for illustrating the operation of the picture processing apparatus shown in Fig. 1. Figs. 6 to 9 are diagrammatic views for illustrating the operation of edge detection by edge detection means provided in the picture processing apparatus shown in Fig. 1. Fig. 10 is a chart showing the histogram of edge detection data outputted from edge detection means provided in the picture processing apparatus shown in Fig. 1. Fig. 11 is a chart showing an example of a transform function employed in the averaging means provided in the picture processing apparatus shown in Fig. 1. Fig. 12 is a shart showing the histogram of edge detection data after transformation by the averaging means provided in the picture processing apparatus shown in Fig. 1. Fig. 13 is a diagrammatic view showing an example of a line picture when averaging is not performed by the averaging means provided in the picture processing apparatus shown in Fig. 1. Fig. 14 is a block diagram showing another embodiment of the picture processing apparatus of the present invention. Fig. 15 is a flowchart for illustrating the operation of the picture processing apparatus show in Fig. 14. Figs. 16 to 19 are diagrammatic views for illustrating the operation of the picture processing apparatus shown in Fig. 14. Fig. 20 is a block diagram showing still another embodiment of the picture processing apparatus of the present invention. Fig. 21 is a diagrammatic view for illustrating the status of the input picture data entered to the apparatus shown in Fig. 20. Fig. 22 is a diagrammatic view for illustrating the operation of picture transformation by the apparatus shown in Fig. 20. Fig. 23 is a block diagram showing still another embodiment of the picture processing apparatus of the present invention. Figs. 24 and 25 are block diagrams showing still another embodiment of the picture processing apparatus of the present invention in which weighting coefficients are set by learning. Fig. 26A is a diagrammatic view for illustrating the input picture data for learning that are entered to the picture processing apparatus shown in Figs. 24 and 25. Fig. 26B is a diagrammatic view for illustrating teacher signals for learning that are entered to the picture processing apparatus shown in Figs. 24 and 25. Fig. 27 is a block diagram showing a further embodiment of the picture processing apparatus of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be explained in more detail hereinbelow by referring to the drawings. Fig. 1 is a block diagram showing the arrangement of a picture processing apparatus 1 according to a first embodiment of the present invention. The picture processing apparatus 1 is comprised of a microprocessor and adapted to perform picture data processing indicated by each virtual circuit block in accordance with the program which is previously written in a memory, not shown. The picture data processing apparatus 1 has an input terminal 2 for picture data, connected to an input device 10, and output terminals 7, 8, connected to an output device 20. A series circuit composed of an edge detection means 3, an averaging means 4 and an inversion means 5 is provided between the input terminal 2 and the output terminal 7. The input terminal 2 and the output of the inversion means 5 are connected via summing means 6 to the other output terminal 8. The input device 10 may be a device whereby analog picture signals of an object photographed by, for example, a video camera device or an electronic still camera device, or analog picture signals reproduced by a video tape recorder (VTR) or a still image filing system, may be converted into digital output data in accordance with the level of the three prime colors of R, G and B, or a device for outputting digital data of digital video camera devices or digital VTRs. The output device 20 connected to the output terminals 7, 8 may be a VTR for recording picture data outputted by the picture data processing apparatus 1, a display device or a printer for reproducing the picture data. The sequence of picture data processing by the picture data processing apparatus 1 is explained more specifically by referring to the schematic diagrams of Figs. 3 to 5 and to the flowchart of Fig. 2. When input picture data, which is a view of a person from back, as shown in Fig. 3, are entered at step S1 from the input device 10, the data processing apparatus 1 performs the following edge detecting operation at step S2 by the edge detecting means 3. That is to say, the levels of the three prime colors R, G and B of the edge portions of the picture shown in Fig. 3, such as the contour of the person, boundary lines or creases etc. of his clothings, differ markedly from those in the near-by regions. The edge detecting means 3 for performing such edge detection operate to detect the discontinuiy in the values of the input picture data supplied from the input device 10 and to produce edge detection data in accordance with the detected discontinuity so that the data are larger in magnitude for bold edge lines, such as contours of the person, and are smaller in magnitude for finer edge lines, such as creases of the person's clothings, appearing as lines against a uniform background. In this manner, there are obtained from the edge detecting means 3 edge detection data that provide a picture in which the edge portions each represent gradation, in accordance with the magnitude of the data values, as indicated by the solid and broken lines in Fig. 4, and the remaining portions become uniform. The principle of edge detection by edge detection means 3 is hereinafter explained. It is assumed that, as shown in Fig. 6, the number of pixels of video signals from a VTR or a camera is equal to n x n. the vertical components of an edge are first detected. A set of 3 x 3 pixels, such as I 11 , I 12 , I 13 , I 21 , I 22 , I 23 , I 31 , I 32 and I 33 , are taken of the totality of the pixels making up the picture signals. The brilliance data of the pixels are multiplied by corresponding coefficients of a template shown in Fig. 7, and the products are summed together, as shown in the formula (1), to find the vertical component B of the edge: B = (-1) x I 11 + (0) x I 12 + (1) x I 13 + (-2) x I 21 + (0) x I 22 + (2) x I 23 + (-1) x I 31 + (0) x I 32 + (1) x I 33 Meanwhile, the coefficients of the template are symmetrical in magnitude and opposite in polarity, when viewed in the left and right direction, so that, when there is no change in the brightness level in the horizontal direction, the value of B in the formula (1) becomes zero. However, when there is a change in the brightness level in the horizontal direction, the value of B in the formula (1) does not become zero. The horizontal component of the edge is then detected. To this end, a set of 3 x 3 pixels is taken of the totality of the pixels making up the picture signals, as in the case of detection of the vertical component of the edge. The brightness data of the pixels are then multiplied by the corresponding coefficients of the template shown in Fig. 8, as shown in the formula (2), and the products are summed together, to find the horizontal component C of the edge: C = (-1) x I 11 + (-2) x I 12 + (-1) x I 13 + (0) x I 21 + (0) x I 22 + (0) x I 23 + (1) x I 31 + (2) x I 32 + (1) x I 33 Meanwhile, the coefficients of the template are symmetrical in magnitude and opposite in polarity when viewed in the up and down direction, so that, when there is no change in the brightness level in the vertical direction, the value of B in the formula (2) becomes zero. However, when there is a change in the brightness level in the vertical direction, the value of B in the formula (2) does not become zero. From the vertical component B and the horizontal component C of the edge, found by the formulas (1) and (2), an edge detection data S 22 : S 22 = B 2 +C 2 is found, which data S 22 represents the strength of the edge at the center one of 3 x 3 pixels, as shown in Fig. 9. This edge detection data S 22 is outputted from the edge detection means 3 as the edge detection data corresponding to the center pixel of the set of 3 x 3 pixels. Then, as shown in Fig. 6, the set of 3 x 3 pixels is shifted rightward by a pitch equivalent to one pixel to find an edge data S 23 representing the edge strength at the center pixel of a set of 3 x 3 pixels of I 12 , I 13 , I 14 , I 22 , I 23 , I 24 , I 32 , I 33 and I 34 , in the similar manner as explained hereinabove. By shifting the set of 3 x 3 pixels rightward in this manner gradually by a pitch equivalent to one pixel, each time, it becomes possible to detect all of the edges in the picture signals. These edge detection data are outputted at edge detecting means 3. In Fig. 10, the frequency of occurrence or histogram of the edge detection data is plotted against the values of the thus found edge detection data. In general, the edge detection data obtained in this manner mostly represent extremely fine edge portions, that is, they are of lesser magnetude, such that the frequency of occurrence of the respective values or histogram presents a curve similar to a curve indicated by the formula (4) Y = 1 X where Y and X stand for the number and the magnitude of the edge detection data. The picture data processing apparatus 1 then functions at step S3 to average out the gradation of the edge portions of the edge detection data from the edge detection means 3, by the averaging means 4, for producing the picture data of the picture shown in Fig. 5. The averaging means 4, performing this averaging operation, performs transformation of the edge detection data outputted from the edge detection means 3, such that the above mentioned histogram will be substantially uniform (hereinafter referred to as histogram transformation). Expressed differently, as shown in Fig. 10, the histogram of the edge detection data is expressed by a curve similar to one shown by the formula (5) Y = 1 x so that, by transforming the values of the edge detection data by a function which is an integration of the above curve with respect to X (the values of the edge detection data), that is, a function which is shown by a chart of Fig. 11 and which is similar to a curve shown by the formula (6) Y = log(X) wherein Y stands for the magnitude of the data after transformation and X the magnitude of the edge detection data, the above mentioned histogram becomes substantially uniform, as shown in Fig. 12. In the picture data processing apparatus 1, the edge detection data are average out in this manner to emphasize the edge portions of the edge detection data. Therefore, the finer edge portions shown by the broken lines in Fig. 4 are emphasized to a level approximate to more well-defined edge portions shown by the solid lines in Fig. 4, so that the picture data may be produced from the averaging means 4, in which the finer edge portions, such as creases in the clothing, are changed to well-defined lines, and thus the edge portions, which should be continuous lines, are expressed as lines devoid of interruptions. Fig. 13 shows a picture which should be obtained when the picture data of the output picture from the edge detection means 3 as shown in Fig. 4 has not been averaged out in the manner as explained hereinabove. On comparing the picture shown in Fig. 13 with that shown in Fig. 5, it may be seen that, in the picture which has undergone the averaging operation shown in Fig. 5, fine lines of the original picture shown in Fig. 3 are represented more satisfactorily as well-defined lines. The picture data processing apparatus 1 then functions at step S4 to perform at the inverting means 5 a data conversion or transformation of the output data from the averaging means 4 in which the edge portions are indicated in black color and the remaining portions are indicated in white color, for example, by way of a negative-positive inversion, to form line picture data, and to output these line picture data at step S5 at the output terminal 7. Similar line picture data may also be obtained when the input picture data supplied from the input device 10 are first subjected at step S4 to data transformation by the inverting means 5, followed by edge detection at step S2 and averaging at step S3, in this sequence. The picture data processing apparatus 1 then functions to combine the picture represented by the line picture data outputted from the inverting means 5 with the picture represented by the input picture data, at the summing means 6, according to an arbitrarily selected mixing ratio, to produce colored line picture data, and to output these colored line picture data at the output terminal 8 at step S7. The picture data processing apparatus 1 may be so designed and arranged as to change the degree of picture coloration by changing the value of the mixing ratio of the two pictures to form picture data for pictures having variegated feelings or tones. Meanwhile, in the picture data processing apparatus 1, means may be preferably provided between the edge detection means 3 and the averaging means 4 for processing the edge detection data formed at the edge detection means 3 and having values larger than the prescribed values so as to have a prescribed value before the data are supplied to the averaging means 4. By providing such processing means, it becomes possible to reduce the difference among the values of the edge detection data in advance and hence to express the fine edge portions more satisfactorily. By performing the picture data processing operation, as explained hereinabove, the picture data processing apparatus 1 is in a position to form data of a line picture in which characteristics of the picture represented by the input picture data are grasped more satisfactorily. Therefore, with the use of the picture data processing apparatus 1, line pictures may be formed with such labor and time substantially lesser than those expended in manual labor. In addition, with the use of a high-speed microprocessor or a dedicated hardware, input picture data may be converted into the line picture data on substantially the real time basis, so that animated pictures may be produced easily. Although the picture data processing device 1 is described hereinabove as handling picture data separated into three prime colors of R, G and B, the above described picture data processing may also be applied to picture data in the form of digitized brightness signals. Fig. 14 is a block diagram showing an arrangement of a second embodiment of a picture processing apparatus according to the present invention. The picture processing apparatus 30 is comprised of a microprocessor, and formed by edge detection means 32, line picture forming means 33, summing means 34 and picture forming or picturizing means 35. Of these, the edge detection means 32 and the summing means 34 are similar to the edge detection means 3 and the summing means 6 of the picture data processing apparatus 1, respectively. The line picture forming means 33 is formed by the averaging means 4 and the inverting means 5 of the picture data processing apparatus 1 combined together. An input device 10, connected to the edge detecting means 32 via input terminal 31, and an output device, 20, connected to the picture forming means 35 via output terminal 36, are similar to the input and output devices of the preceding first embodiment. Fig. 15 shows a flowchart illustrating data processing by the picture data processing apparatus 30. When input color picture data of a person sitting on a chair as shown for example in Fig. 16 are supplied at step T1 to the picture processing apparatus 30, from the input device 10, these input color data are supplied to edge detection means 32 and summing means 34. The picture data processing apparatus 30 functions similarly to the first embodiment in such a manner as to detect discontinuity in the value of the input picture data by the edge detection means 32 at step T2 to detect edge portions of the picture represented by input picture data. Meanwhile, histogram transformation of the brightness signals may be performed before step T2 to reduce the adverse effects caused by noise components. The picture data processing apparatus 30 then proceeds to step T3 where the line picture forming means 33 performs a data conversion or transformation to reduce the difference among the data of the edge portions obtained at the edge detection means 32 to emphasize the fine edge portions to a level close to more well-defined edge portions for averaging the gradation of the edge portions. In this manner, the data of a line picture may be formed, in which features of lines of the picture represented by the input picture data have been grasped satisfactorily. As such data conversion or transformation, the above described histogram transformation or logarithmic transformation may be employed. The picture data processing apparatus 30 then proceeds to step T4 where the data of a line picture are subjected to a negative-positive inverting operation by line picture forming means 33 to form data of the line picture in which the features of the line picture shown in Fig. 16 have been grasped satisfactorily, as shown in Fig. 17. The data formed in this line picture forming means 33 are sent to summing means 34. Meanwhile, when there are obtained picture data in step T3 in which the edge portions are indicated in a black color and the remaining portions are indicated in a white color, it is unnecessary to carry out this step T4. Similar data may be obtained when the steps T2 and T3 are carried out after the input picture data are subjected to data transformation of step T4. The picture data processing apparatus 30 then proceeds to step T5 where the data of a picture combined from the picture represented by output data of the line picture forming means 33 and input picture data from the input device 10 are formed by the summing means 34. The data formed by the summing means 34 represent the data of the line picture of Fig. 17 colored after the picture shown by the input picture data shown in Fig. 16. This picture is comparable to a line picture colored for example with a color pencil. The picture data processing apparatus 30 then proceeds to steps T6 to T11 where the color density or concentration of the picture indicated by data produced by the summing means 34 is averaged out by the picturizing means 35. In the step T6, the output data of the summing means 34 are converted into two color-difference signals (R-Y) and (B-Y). In the next step T7, the color concentration S 1 , that is the data indicative of the color density, is found by the formula (7) S 1 = √ (BY 1 ) 2 + (RY 1 ) 2 from the values of the color-difference signal data (BY 1 ), (RY 1 ). For simplifying the computation, the color concentration S 1 may also be found by the formula (8) S 1 = |(BY 1 )|+ |(RY 1 )| In the next step T8, the frequency of occurrence on histogram h(s) of each value of the color concentration S 1 is found for the picture as a whole. In the next step T9, a transform function H(s) is found, in which the histogram h(s) is integrated with respect to the color concentration S 1 . Although the transform function H(s) has been found by the steps T6 to T9, the transform function may also be substituted by a suitable function, such as a logarithmic function, approximate to the transform function H(s). In the next step T10, the color concentration S 1 is subjected to transformation by the transform function H(s) to find the new color concentration S 2 for each pixel. The transform operation at step T10 may also be performed by a composite function G(H(s)) of the transform function H(s) with another function G(x). In this case, the color concentration may be changed arbitrarily by changing the function G(x). In the next step T11, the values (BY 1 ), (RY 1 ) of the data of each color difference signal are transformed for each pixel by the formulas (9) and (10) (BY 2 ) = (S 2 /S 1 )(BY 1 ) (RY 2 ) = (S 2 /S 1 )(RY 1 ) to find the values of data of new color-difference signals (BY 2 ) and (RY 2 ). The data formed in this manner are transformed so that the color concentration S 1 is averaged out for the whole picture and hence picture data of bright color like those of a crayon picture or an oil painting, such as the picture shown in Fig. 19, are produced. Finally, the picture data processing apparatus 30 proceeds to step T12 to output the bright-color picture data from the picturizing means 35 via output terminal 36 to the output device 20. By forming the data of the bright-color picture data with the use of the picture data processing apparatus 30 in this manner, still or animated pictures may be formed with time and labor markedly lesser than in the case of the manual operation. In the third embodiment of the picture processing apparatus shown in Fig. 20, the picture data processing apparatus of the present invention is constituted by a so-called neural network 40. This picture data processing apparatus is constituted by a four-layer neural network 40 comprised of an inlet layer 41, a first intermediate layer 42, a second intermediate layer 43 and an output layer 44. The input layer 41 is constituted by nine cells I 1 , I 2 , I 3 , I 4 , I 5 , I 6 , I 7 , I 8 and I 9 to which input picture data D IN comprised of a 3 x 3 array of pixels S 1 , S 2 , S 3 , S 4 , S 5 , S 6 , S 7 , S 8 and S 9 shown in Fig. 21 are entered from an input device, not shown. The first intermediate layer 42 is constituted by four cells H 1 , H 2 , H 3 and H 4 connected to the cells I 1 to I 9 of the input layer 41. The second intermediate layer 43 is constituted by a sole cell H 0 connected to the cells H 1 to H 4 of the first intermediate layer 42. The output layer 44 is constituted by a sole cell 0 connected to the cell H 0 of the second intermediate layer 43 and is adapted to supply its output data 0 0 to an output device, not shown. The cells I 1 to I 9 , H 1 to H 4 , H 0 and O of the layers 41, 42, 43 and 44 making up the four-layered neural network structure each perform signal processing corresponding to that of a neuron. As shown schematically in Fig. 22, an output O j of a cell U j connected to a cell U i by a coupling or weighting coefficient W ij is multiplied by the coupling coefficient W ij to give a product W ij O j which is entered to the cell U i as an input. A plurality of such inputs W ij .O j are summed together to give Σ j W ij · O j which is transformed by a predetermined activating function f, such as a sigmoid function, to give a value O i O i = 1 1+e -Σ j W ij ·O j + j which is outputted from the cell U i . The coupling or weighting coefficients of the link from the cells I 1 to I 9 of the input layer to the cells H 1 to H 4 of the first intermediate layer 42 correspond to edge detection operators for detecting the edges of the central pixel S 5 of the array of 3 x 3 pixels in the horizontal direction (+x, -x) and in the vertical direction (+y, -y), that is, the coefficients of the template. The four cells H 1 , H 2 , H 3 and H 4 of the first intermediate layer 42 detect the edge components in the +x, -x, +y and -y directions from each net input. When the above formula (11) is expressed by formula (12) O i = 1 1+e -net+ while each of the cells H 1 and H 2 of the first intermediate layer 42 receives edge detection amounts in the +x and -x directions as input and has the same threshold value , the sum O x of the outputs O h1 , O h2 thereof is given by the following formula (13) O x = O h1 + O h2 = 1 1+e -net+ + 1 1+e net+ This formula (13) represents an even function and may be expanded by Taylor expansion into the formula (14) O x = a 0() + a 2() net 2 + a 4() net 4 + ..... such that, by setting the threshold value  so that a 4() = 0, the formula may be approximated to a quadratic equation. By setting each threshold value , each of the cells H 1 and H 2 of the first intermediate layer 42 supplies to the cell H 0 of the second intermediate layer 43 the outputs O h1 and O h2 that are approximate to the square of the edge component in the x direction, as indicated by the formula (13). Similarly, when each of the H 3 and H 4 of the first intermediate layer 42 receives the amounts of edge detection in the +y and -y directions as inputs, and each threshold value is set correspondingly, the sum of the outputs O h3 , O h4 approximate to the square of the edge components in the y direction O y = O h3 + O h4 is supplied to the cell H 0 of the second intermediate layer 43. That is, the cells H 1 to H 4 making up the first intermediate layer 42 operate as a function for performing a processing operation equivalent to that of the edge detection means 3 in the preceding first embodiment. Also, in this third embodiment, the cell H 0 of the second intermediate layer 43 operates as a function for performing a histogram averaging operation equivalent to that of the averaging means 4 of the first embodiment, when the threshold value of the cell H 0 is set appropriately. In addition, the cell 0 of the output layer 44 has its coupling coefficient and threshold value so set that the cell operates as an inverting function equivalent in operation to the inverting means 5 in the first embodiment. In this picture data processing apparatus 40, the input picture data D IN , produced upon scanning the picture represented by picture data produced in the input device, with the 3 x 3 array of the pixels S 1 to S 9 as one unit, are entered to the input layer 41, in such a manner that picture output data, subjected to the line picture forming operation similar to that performed by the picture data processing apparatus 1 of the above described first embodiment, are produced as the output O 0 of the cell O of the output layer 44. The picture processing device of the present invention is provided with the above described edge detection means and averaging means, whereby there may be formed picture data of a line picture in which the features of the line of the picture represented by the input picture data have been grasped satisfactorily. Therefore, with the use of the picture data processing apparatus of the present invention, line pictures may be formed with time and labor consumption markedly lesser than in the case of manual operation. Further, in accordance with the picture processing apparatus of the present invention, data of a picture with bright color, such as those of a crayon picture or an oil painting, may be produced. Therefore, with the use of the picture processing apparatus of the present invention, line pictures may be produced with similarly lesser time and labor consumption. In addition, the picture processing apparatus according to the present invention may be implemented by a high-speed microprocessor or a dedicated hardware to provide for substantially real time processing of the input picture data to facilitate formulation of animated pictures. A modified embodiment of the present invention will be hereinafter explained in which a learning processing section 60 is annexed as shown in Fig. 24 to a signal processing section 50 comprised of an input layer 51, an intermediate layer 52 and an output layer 53, as shown in Fig. 23, so that the data are subjected in advance to a learning processing operation and the desired picture conversion or transformation is performed in the signal processing section 50. Researches and developments are presently conducted of a signal processing system with the use of a neural network for performing a signal processing corresponding to one of a neuron. For example, a back propagation learning rule may be applied as a learning algorithm to a multi-layered neural network having an intermediate layer between the input layer and the output layer, as a tentative application to a variety of signal processing modes, such as high-speed picture processing or pattern recognition. For "back propagation learning rule", see for example "Parallel Distributed Processing, vol. 1, the MIT Press, 1986, or Nikkei Electronics, August 10 issue, 1987, No. 427, pp 115-124. According to the present invention, the coupling coefficient or the weighting coefficient W ji is determined by applying the above mentioned back propagation learning rule to the neural network shown in Fig. 25, and the picture converting operation of converting the input picture data into a line picture is performed with the use of the neural network in which the coupling or weighting coefficient W ji has been set in advance. Each of the cells I 1 , I 2 , I 3 , I 4 , I 5 , I 6 , I 7 , I 8 , I 9 , H 1 , H 2 , H 3 and O 1 , making up the neural neural network shown in Fig. 25, performs a signal processing corresponding to one of a neuron. The signal outputted from each cell of the input layer 51 is multiplied by a coupling coefficient (weighting coefficient) W ji before being applied to each cell of the intermediate layer 52. Similarly, the signal outputted from each cell of the intermediate layer 51 is multiplied by a coupling coefficient (weighting coefficient) W ji before being applied to the cell of the output layer 53. Each cell of the intermediate layer 52 outputs a value O j which represents the sum of a plurality of signals comprised of output signals of the cells of the input layer 51 multiplied respectively by coupling coefficients (weighting coefficients) W ji , and subsequently transformed by a predetermined function f, such as a Sigmoid function. The cell of the output layer 53 outputs a value O j which represents the sum of a plurality of signals comprised of output signals of the cells of the intermediate layer 52, multiplied respectively by coupling coefficients (weighting coefficients) W ji , and subsequently transformed by a predetermined function f, such as a Sigmoid function. That is, when a value of a patern p is supplied as an input value to each cell of the input layer 51, the output value O pj of each cell of the intermediate layer and the output layer is expressed by The output value O pj of the cell of the output layer 53 is found by sequentially computing the output values of the cells corresponding to the neurons from the input layer 51 towards the output layer 53. In the back propagation learning algorithm, an output value O pj closest to a teacher signal t pj may be outputted from the cell O 1 of the output layer 53, by sequentially performing, from the output layer 53 towards the input layer 51, the learning procedure of changing the coupling coefficients (weighting coefficients) W ji so as to minimize the sum E p = 1 2 Σ i t pj -O pj of the square errors between the output values O pj and the desired output value t pj , wherein the output values O pj represent the actual output value of each cell of the output layer 53 when the pattern p is given to the input layer. If a variation ΔW ji of the coupling coefficients or weighting coefficients W ji which decreases the sum E p of the square errors is expressed as Δ W ji ∝ - ∂E p /∂W ji the above formula (18) may be rewritten to ΔW ji = η · δ pj O pi This process is stated in detail in the above reference material. In the above formula, η stands for the learning rate, which is a constant that may be empirically determined from the number of the units or layers or input or output values, and δ pj stands for errors proper to the cells. Therefore, for determining the variation Δ W ji , it suffices to find the values of the errors δ pj in the reverse direction, i.e. from the output layer towards the input layer of the network. The error δ pj of the cell of the output layer is given by δ pj = (t pj - O pj )f' j (net j ) while the error δ pj of the cell of the intermediate layer may be computed by a recurrent function using the error δ pk and the coupling coefficient W kj of each cell to which the cell of the intermediate layer is connected, herein each unit of the output layer. This process of finding the formulas (20) and (21) is also explained in detail in the above mentioned reference material. Meanwhile, f' j (net j ) in the above formula represents a differentiation of the output function f j (net j ). The variation ΔW ji may be found by the above formula (19) using the results of the above formulas (20) and (21). However, more stable results may be obtained from the following formula (22) ΔW ji(n+1) = η·δ pj ·O pj + α·ΔW ji(n) with the use of the results of the preceding learning. In the above formula, α stands for a stabilization constant for reducing the error oscillations and accelerating the convergence process. This learning is performed repeatedly and terminated at the time point when the sum E p of the square errors between the output values O pj and the value of the teacher signals t pj has become sufficiently small. Referring to Figs. 24 and 25, there is shown a picture transformation apparatus according to a fourth embodiment of the present invention, wherein the learning operation in accordance with the rule of back propagation is applied to a signal processor 50 constituted by a three-layered neural structure. Based on the error information between a teacher signal D te , which is the picture data for a small region of an original picture subjected to a predetermined picture transformation, and an output signal D out obtained from the output layer 53 after transformation of the original picture by the neural network, a learning section 60 applies a learning operation to the signal processing section 50 consisting in sequentially changing the coefficient indicating the strength of coupling between the cells, or weighting coefficient W ji , from the output layer 53 towards the input layer 51, so as to minimize the square errors. For example, a person is photographed as an original picture by a video camera and the photographing output corresponding to each of its pixels is digitized and stored in a memory, not shown, as the digital picture data. On the other hand, as a picture which is the above mentioned original picture subjected to a predetermined picture transformation, a sketch of a person is photographed by a video camera, and the photographing output corresponding to each of its pixels is digitized and stored in a memory, not shown. A learning operation is then applied to the signal processing section 50 for transforming the original picture, that is, the photographed picture of the person, into the picture of the sketch, for each small-picture region consisting of an array of 3 x 3 pixels as a unit. For example, as shown in Fig. 26A, picture data A 1 to A 9 of the array of 3 x 3 pixels in a small picture region of the original picture indicating a feature A are supplied as input picture data for learning operation D in to nine cells I 1 to I 9 of the input layer 51 of the signal processing section 50. On the other hand, picture data A 0 of a center pixel of 3 x 3 pixels, representing the transformed data for the input picture data for learning operation D in , are supplied as the teacher signal D te to the learning section 60. Based on the error data between the teacher signal D te and the output signal D out from the cell O 1 of the output layer 53, the learning section 60 applies a learning operation to the signal processing section 50 consisting in learning the coefficient indicating the coupling strength between the cells, that is, the weighting coefficient W ji , from the output layer 53 towards the input layer 51. After completion of the learning operation with respect to the picture data A 1 to A 9 for the 3 x 3 pixels indicating the feature A, picture data B 1 to B 9 for 3 x 3 pixels, indicating another feature B in the sketch transforming operation, are supplied to the cells I 1 to I 9 of the input layer 51 as the input picture data for learning processing D in , while picture data B 0 of the center pixel of the 3 x 3 pixels, representing the transformed data for the input picture data for learning processing D in , are supplied to the learning processing section 60 as teacher signal D te . Based on the error data between the output signal D out from the cell O 1 of the output layer 53 and the teacher signal D te , the learning processing section 60 subjects the signal processing section 50 to a learning operation of learning the coupling strength between the cells or weighting coefficient W ji from the output layer 53 towards the input layer 51. In the similar manner, the learning processing section 60 subject the signal processing section 50 to learning concerning picture data of small areas of 3 x 3 pixels indicative of various features in the sketch transforming operation. In the signal processing section 50, to which the above described learning processing has been applied, the picture data of the original picture are entered to the cells I 1 to I 9 of the input layer 51 of the signal processing section 50, by small-area picture data of 3 x 3 pixels at a time, and the picture data which have been transformed with respect to all of the pixels are obtained as the transformed output signals D OUT from the cell O 1 of the output layer 53. In this manner, there may be obtained picture data, in which the sketch transforming operation of transforming the original picture, that is, the photographed picture of a person, into the sketch picture, has been completed. In the signal processing section 50, where the learning processing has been made, a data template for sketch picture transformation is formed by the above described learning processing, as the coefficients indicative of the coupling strength between the cells, that is, weighting coefficients W ji . Even when the picture input data Din indicative of an arbitrary picture other than the original picture is entered to the cell I 1 to I 9 of the input layer 51 of the signal processing section 50, by scanning small-area picture data of 3 x 3 pixels at a time, the output picture data D OUT that have undergone a sketch picture transforming operation with respect to all pixels may be obtained as the output signal from the cell O 1 of the output layer 53. The present invention is not limited to the above described embodiment and, as the specified picture transforming operation of the original picture, various picture transforming operations, such as white-black inversion, filtering, line thinning or contour extraction, may be performed in addition to the sketch picture transforming operation, by forming the data template for picture transformation by the above mentioned learning operation. A learning algorithm other than the back-propagation learning rule may also be adopted to apply the learning processing to the learning processing section 50. After completion of the learning processing for the signal processing section 50, the input picture signals entered from the input device 10 into the input layer 51 are entered to the output device 20 after having undergone a predetermined transformation as set by the learning, so as to be then displayed on a display device or recorded by a recording device. The picture transformation apparatus of the present invention may also employ a signal processing section constituted by a multi-layer neural network other than the three-layer neural network of the signal processing section 50 in the above described embodiment. For example, the signal processing section may be constituted by a four-layered neural network in which, as shown in Fig. 27, the input layer 51 is formed by 25 cells I 1 to I 25 to which input picture data D IN of 5 x 5 pixels are entered, the first intermediate layer 52A is formed by nine cells H 11 to H 19 coupled to the cells I 1 to I 25 of the input layer 51, the second intermediate layer 52B is formed by two cells H 21 , H 22 coupled to the cells H 11 to H 19 of the first intermediate layer 52A and the output layer 53 is formed by one cell O 1 . The picture processing apparatus of the present invention is so arranged and constructed that a signal processing section having a learning function and made up of an input layer, an intermediate layer and an output layer, each constituted by plural cells which perform the signal processing comparable to that of a neuron, is subjected to a learning processing operation of learning the coefficient of coupling strength between the cells, with respect to the small-area picture data of the original picture entered to the input layer, on the basis of error signals between the output signal from the output layer and teacher signals, which teacher signals are small-area picture data of a picture obtained by subjecting an original picture to a predetermined picture transformation, in such a manner that any given picture input data are subjected to predetermined picture transformation processing in the signal processing section which has undergone the learning processing. Therefore, in accordance with the present invention, any desired picture transforming function may be realized by applying desired picture data as the teacher signals at the time of learning processing of the signal processing section. Complicated picture transformation processing may be realized speedily by a simplified network by subjecting given picture input data to specific picture transformation processing, such as edge detection, averaging or inversion, at the signal processing section which has previously undergone learning processing.

Claims: A picture processing apparatus (1) for transforming an input picture into a line picture comprising: a) edge detection means (3) for receiving input picture data representing an input picture, for detecting the edges of said input picture and for producing edge detection data representing said edges; b) converting means (4) for receiving edge detection data outputted from said edge detection means (3), said converting means (4), in use, converting said edge detection data by transforming their values so that the histogram of said edge detection data at the output side becomes flatter than the histogram of said edge detection data at the input side; and c) means (20) for displaying or storing the line picture on the basis of signals outputted from said converting means (4). A picture processing apparatus according to claim 1 comprising: mixing means (6) for adding color data signals corresponding to the colors of said input picture to said edge detection data outputted from said converging means (4), and wherein said means (20) is for displaying or storing the color-added line picture on the basis of signals outputted from said mixing means (6). A picture processing apparatus according to claim 1 comprising: mixing means (34) for adding color data signals corresponding to the colors of said input picture to said edge detection data outputted from said converting means (33), and second converting means (35) receiving signals outputted from said mixing means (34) as inputs, said second converting means (35) converting said color data signals so that the histogram of said color data signals on the output side becomes flatter than the histogram of said color data signals on the input side, and wherein said means (20) is for displaying or storing a color-added line picture on the basis of signals outputted from said second converting means (35). A picture processing apparatus according to claim 1, 2 or 3 wherein the edge detection means (3) and the converting means (4) together comprise an input section (51) and an intermediate section (52), each having a plurality of cells (I 1 -I 9 ,H 1 -H 3 ) performing signal processing, and an output section (83) having one cell (O 1 ), wherein the signals outputted from the cells of said input section (51) are each multiplied by a weighting coefficient so as to be entered to the cells of said intermediate section (52) and wherein the signals outputted from the cells of said intermediate section (52) are each multiplied by a weighting coefficient so as to be outputted to the cell of said output section (53), in a manner such that the input picture data representing the input picture entered to said input section (51) undergo desired transformation, said picture processing apparatus (50) comprising: a) comparing means (60) for comparing picture data outputted from said output section with line picture data indicating a desired line picture when picture data representing a partial picture of an arbitrary small area of said input picture are entered to said input section, and b) coefficient setting means for determining the weighting coefficients corresponding to said cells based on the results of comparison from said comparing means (60), wherein said cells in said input section (51), intermediate section (52) and the output section (53) transform the partial picture data representing a given small-area picture of the input picture into line picture data representing a line picture, by making use of said weighting coefficients previously set by said coefficient setting means.

Inventors: HIROI TOSHIYUKI, WATANABE TOSHIRO, HIROI, TOSHIYUKI, WATANABE, TOSHIRO
Applicants: SONY CORP, SONY CORPORATION
Application year: 1989
Main classification: G06T1
IPC codes: G06T5