Method and apparatus for generating an image

Abstract: In order to generate an image, modelling data representing image features of the image are stored in a data base (1), and first characteristics, such as colours, are stored in another data base (2). An analyzer unit (3) is then able to assign the first characteristics to the image features in an objective way. Subjective properties, e.g. 'darker', 'lighter', are also defined over a range for the image features and a user interface (7) permits a user to select an appropriate value of the subjective property within the range, thereby to generate a second characteristic on the basis of rules relating to the subjective properties stored in a data base (2). An interpreter unit (4) then modifies the first characteristic on the basis of the second characteristic before the selected image features are rendered into an image by a rendering unit (5) for display by a display unit (6). There is also disclosed an arrangement for associating characteristics of image feature on the basis of an ordered relationship of other characteristics of the image features, preferably making use of a reference image to derive the characteristics to be associated.

Description: The present invention relates to a method of generating images. It is particularly, but not exclusively, concerned with the application of such image generation to computer graphics. In a conventional computer graphics arrangement, particularly for three-dimensional graphics, there are normally two separate steps. Firstly, data relating to individual features of the image to be created are stored. Such data is known as modelling data, and represents the raw material from which the graphics designer must work. Thus, modelling data may define specific shapes, surface textures, specific colours, etc. Then, in order to obtain an image, such modelling data is processed, or rendered, to generate the desired image. The rendering operation combines together the various modelling data, in the way desired, in order to achieve the correct effect. However, the problem is that such a rendering operation requires all the information and instructions for the rendering operation to be determines and entered by a user. As can be imaged, this requires a very long time, since the number of combinations of the modelling data are virtually limitless, and the user must select exactly the correct combination desired. Thus, to take colour as an example, whilst specific colours may be stored as modelling data, the user must select from that modelling data the exact item of that data which defines a specific colour, if that colour is to be presented as the colour of an object. Some image generating systems have tried to address this problem, but in general have addressed only part of the problem. For example, in the article entitled "Proceedings of the ACM SIGGRAPH Symposium on User Interface Software (1988)", pages 117-128, an arrangement was discussed in which specific image data, being e.g. windows, icons and colours of text, in a computer display, were associated with specific colours on the basis of predetermined artistic rules. Thus, predefined ranges of permitted colour parameter combinations, being combinations of the three colour parameters representing hue, lightness and saturation, were associated with the windows, icons, etc. This document corresponds to the pre-characterising part of claim 1. This document also mentions that the colour parameters may be changed by a human expert "tweaking" them. In "Ningen-Kogaku", Volume 22, No. 1, (1986), pages 1-7, there was discussed a method for generating images relating to interior decoration, in which it was possible for the user to vary the colours of objects but only on the basis of a global change to that colour for all the image. It is also known to define a colour palette for the creation of an image, from which colour palette specific colours can be selected by the user. The colour palette is stored in a memory, and may be displayed to the user. Of course, the user cannot then express his choice except in terms of selection from that palette. An example of such an arrangement is disclosed in JP-A-63-90284. Of course, the problem with such an arrangement is that the choice is then limited to those colours stored and displayed in the palette, which may be satisfactory if only a limited range of colours is desired, but it is clearly impractical to present every possible colour as part of a palette. Furthermore, this means that every colour needed must be stored in terms of modelling data, which is also difficult. According to a first aspect of the present invention there is provided a method of rendering an image, comprising the steps of: a) providing modelling data of each of a plurality of spatial image areas; b) providing a predefined range of permitted colour parameter combinations for each of the image areas, each colour parameter combination being a combination of three colour parameters representing hue, lightness and saturation respectively, each of the image areas being associated with a colour parameter combination predetermined from the respective range of permitted combinations; c) selecting at least one of the image areas and rendering an image on the basis of the at least one selected image area and the predetermined colour parameter combination; wherein: d) defining at least one subjective property of the colour parameter combination, with that subjective property having a range of subjective property values which are associated, for each image area, with the respective permitted colour parameter combinations in predetermined relationships, the values of said at least one subjective property affecting all of the colour parameters; e) enabling the user to select one of those subjective property values, and converting said selected subjective property value into a colour parameter combination for said at least one selected image area; f) modifying the predetermined colour parameter combination on the basis of said converted colour parameter combination to generate a modified colour parameter combination associated with the at least one selected image area; and g) rendering an image on the basis of said at least one selected image area and said modified colour parameter combination. According to a second aspect of the present invention there is provided An apparatus for displaying an image, comprising: a) memory means for: (i) storing modelling data of each of a plurality of spatial image areas; and (ii) storing a predefined range of colour parameter combinations for each of the image areas, each colour parameter combination being a combination of three colour parameters representing hue, lightness and saturation respectively, each of the image areas being associated with a colour parameter combination predetermined from the respective range of permitted combinations; b) user operable means for selecting at least one of the image areas; c) rendering means for generating a rendered image on the basis of said at least one selected image area and the predetermined colour parameter combination; wherein: the apparatus further includes d) rule base means for defining at least one property of said colour parameter combinations, with that subjective property having a range of subjective property values which are associated, for each image area, with the respective permitted colour parameter combinations in predetermined relationships, the values of said at least one subjective property affecting all of the colour parameters, the user operable means being further arranged to permit the user to select one of the subjective property values; e) processing means for modifying the predetermined colour parameter combination, to generate a modified colour parameter combination associated with the at least one selected image area; wherein the rendering means is further arranged to generate an image on the basis of said at least one selected image area and said modified colour parameter combination. In order to understand the present invention, consider the case where colours are to be assigned to image features for an image, which are stored as modelling data. Then, it is possible to associate with those image features, specific colours which may be objectively assigned to the image feature. Thus, the colour blue could be assigned to the sea, the colour green to mountains, etc. However, any automatic system for assigning those colours must inevitably select a specific colour, and whilst that could be the correct one for a particular use, it is more likely that the user will find it unsatisfactory. However, the user may be able to define what change is needed only in terms of subjective characteristics, i.e. by such terms as "darker" or "lighter" or even by less directly colour-related subjective characteristics as "shallow" or "deep". Then, the present invention proposes that one or more of such subjective properties be defined, and permitted to vary over a range, and the user can then select where within that range a second characteristic of the colour is to lie, which second characteristic can then be used to modify the first characteristic, i.e. the characteristic which is pre-established in the computer. It can thus be appreciated that it is possible to adjust the effect of the user selection in dependence on the object itself. Thus, for example, the range of colour variation for the sea may be greater than that permitted for the sky, even though both could be defined as "blue". Then, the computer system would first automatically select a median within the permitted range, and the user could then select from a range expressed only in subjective terms a second characteristic, and that second characteristic could then be used to vary the original colour, within its range. An example of this would be to say that if the user selected the characteristic "very dark" this could produce a different blue for the sea and the sky respectively, since the colour characteristics associated with the image features "sea" and "sky" could have different permitted ranges. It is thus fundamental importance in the present invention that some characteristics of an object may be pre-set in an objective way, and related characteristics varied in a subjective way. This concept of division of characteristics is fundamental to the present invention, but has not been fully considered by existing image generation systems. Therefore, in the present specification, it is necessary to develop a terminology for referring to various concepts. Firstly, the term "image features" has been used, and these represent the basic components of an image, which are to be assembled in a rendering operation, and they are defined by modelling data. Thus, "sea", "mountain" may be considered to be image features. Secondly, as discussed above, there are the objective characteristics which may be assigned, preferably as ranges, to those image features, in a subjective way. Thus a range of possible colours for the "sky" may be defined, in a pre-set way. These will be referred to as "objective" characteristics. An objective characteristic may then be combined with an image feature to create a "noun". A "noun" corresponds to the logical statement "the sea is blue", "the mountain is green" etc. Then, there are subjective properties which can be applied, and which will vary over a subjective range "bright to dark", "heavy to light" etc. The present invention, as discussed above, proposes that the user be able to select a point within that range, which will then define a second characteristic, which is a subjective characteristic. Thus "very bright" or "very dark" represent subjective characteristics which may be applied as "adjectives" to the nouns. Normally, the modification of the nouns by the adjectives will be computer controlled, and therefore it is also necessary to refer to the computer operations which define the nouns and adjectives. Thus the term "reference parameter" is used to define the computer processing operations which are associated with the objective characteristics i.e. those computer operations necessary to define the nouns, and the term "corrected parameter" is used to define the modified computer operation which is produced when an adjective modifies the noun associated with that reference parameter. Finally, the term "rendering" is used to define the operation which expresses the nouns and adjectives as a final image, i.e. the operative which assembles the image from the image features on the basis of the subjective and objective characteristics. Of course, the discussion above has assumed that the characteristics are all colour-related. This is a particularly advantageous application of the present invention, because although specific colours are defined by colour scales (and so colours are capable of being stored in a computer), variations from one colour to another are difficult to express, except in subjective terms. However, the present invention is applicable not only to colour-related characteristics, but to other characteristics of an image. For example, if the image is of a walking figure, it may be possible to modify the pattern of that walk in terms of the subjective characteristics "sad", "happy", etc. with those characteristics then permitting a variation in the walking pattern of the figure in a way that meets the subjective requirements, but is still within the range of human possibilities. So far, it has been assumed that all the "adjectives" that are applied are wholly subjective. In practice, this may not always be the case. Again, for the example of colour, some additional rules may be defined such as "contrasting", which may be pre-defined by existing artistic patterns and are generally referred to as "art knowledge". These may be combined with the subjective adjectives e.g. "contrasting and brighter". Embodiments of the present invention will now be described, by way of example, with reference to the accompanying drawings in which: Fig. 1 shows a first embodiment of an image generation apparatus according to the present invention; Fig. 2 illustrates parameters of colours; Fig. 3 illustrates details of a data base for modelling data; Fig. 4 illustrates details of the analyzer unit of Fig. 1; Fig. 5 is a diagram illustrating fuzzy inference procedures; Fig. 6 illustrates in more detail the knowledge data base of Fig. 1; Fig. 7 illustrates examples of noun rules; Fig. 8 shows details of the interpreter unit of Fig. 1; Fig. 9 shows an example of a rule defining art knowledge; Fig. 10 illustrates the operation of that art knowledge rule; Fig. 11 shows examples of adjectives and their variation; Fig. 12 illustrates parameters which are to be evaluated; Fig. 13 illustrates factor load amounts; Fig. 14 illustrates examples of correlation coefficients for parameters; Fig. 15 illustrates relationships between parameters and adjectives; Fig. 16 Illustrates subjective scale rules; Fig. 17 shows how such subjective scale rules may be derived; Fig. 18 shows in more detail the interface unit of Fig. 19 shows in more detail a rendering unit for use in the arrangement of Fig. 1; Fig. 20 illustrates in more detail a display unit for use in the embodiment of Fig. 1; Fig. 21 illustrates a modification of the present invention in which there is further a rule regulating mechanism; Fig. 22 illustrates the operation of the rule regulating mechanism; Fig. 23 shows a further modification in which there is a direct input part; Fig. 24 illustrates the operation of the direct input part; Fig. 25 illustrates a further modification in which only restricted adjectives are to be used; Fig. 26 is a block diagram of an arrangement which is not an embodiment of the present invention but may be used in conjunction with the present invention; Figs. 27(a) and (b) are flow charts showing the operation of the arrangement of Fig. 26; Fig. 28 illustrates a three-dimensional model; Fig. 29 corresponds to the model of Fig. 28, but reduced to two-dimension; Fig. 30 is a picture which may be used with the embodiments of Fig. 26; Fig. 31 shows graphs of analyzed features of the picture of Fig. 30; Fig. 32 illustrates the analysis of the picture of Fig. 30; Fig. 33 shows the assignment relationship used in the arrangement of Fig. 26; Fig. 34 shows a modification of the arrangement shown in Fig. 26; and Fig. 35 is a further modification of the arrangement shown in Fig. 26. A first embodiment of the present invention will now be described with reference to Fig. 1. The general operation of the embodiment will be discussed first, and the operations carried out by individual components of the embodiment will be discussed in more detail later. As in known methods of rendering, any or all of the modelling data, being data relating to shapes and movements of components of an image are stored in a modelling data base 1, are subjected to a rendering operation by a rendering unit 5 and are delivered to a display unit 6 in the form of image information so as to permit an image to be displayed. However, in this series of processing steps, the present invention is particularly concerned with determination of parameters which are to be input to the rendering unit 5. As shown in Fig. 1, an analyzer unit 3 first extracts noun data from the modelling data base 1 and converts it into a reference parameter by applying a noun rule contained in a knowledge data base 2. Subsequently, an interpreter unit 4 receives the reference parameter from the analyzer unit 3 and adjective data from an interface unit 7 and converts them into a corrected parameter by applying an adjective rule in the knowledge data base 2. Then, the rendering unit 5 receives modelling data from the modelling data base 1 and the corrected parameter from the interpreter unit 4 and subjects that modelling data to a rendering operation so as to deliver the image information to the display unit 6. Finally, an image is obtained. The operations of the respective units in Fig. 1 will now be described in detail. Furthermore, as the parameters to be input to the rendering unit 5 include colour parameters, texture parameters, composition parameters, illumination parameters, etc. a method of determining colour parameters will be explained below as an example. Colour parameters will be first described with reference to Fig. 2. All colours are defined by three parameters: namely hue, lightness and saturation. A colour model defined by these parameters is in the form of a double cone as shown in Fig. 2. Achromatic colours from white to black are arrayed along the center axis of the cone, while saturated colours such as red, yellow, green, blue and violet are located around the central circumference, corresponding to a mid position on the lightness axis. The parameter of hue expresses tints, the parameter of lightness expresses the brilliance of the colour, and the saturation parameter expresses the vividness of the colour. When these three parameters are specified, the rendering unit 5 can determine colour information for an image feature (modelling data). The processing of the analyzer unit 3 will now be described by considering the details of the processing operations carried out by the individual units. The modelling data base 1 to which the analyzer unit 3 refers, contains information items (i.e. modelling data) which a user stores before the rendering operation, and the internal structure of the modelling data base is shown in Fig. 3. The data base 1 has image features in the form of shape models 11, and motion models 14, which are further constituted by noun data items 12, 15 and model data items 13, 16. Noun data expressing the semantic content of the corresponding model data items 13, 16 are stored as the noun data items 12, 15. The noun data may thus define "mountain" and "sea". On the other hand, the model data items 13, 16 are actually modelled data. For example, in a case where the shape models are expressed as the set of triangular data items, the vertex coordinate values etc. of triangles are stored. Next, the structure of the analyzer unit 3 is shown in Fig. 4. The analyzer unit 3 includes a fuzzy inference mechanism 31. It converts the noun data 12 or 15 from the modelling data base 1, into a noun corresponding to a reference parameter by the use of a noun rule from the knowledge data base 2, and delivers the reference parameter to the interpreter unit 4. Here, a fuzzy inference procedure 31 will be briefly described with reference to Fig. 5. Assume that, a first rule is defined as: "If X 1 is medial, then Y is enlarged". In this rule, the conditional clause beginning with "If" is defined as a 'fore-part' of the rule, while the conclusion clause beginning with "then" is defined as a 'rear-part'. Membership functions are defined for the respective parts. Each membership function indicates the distribution of probabilities, and a position at which the value of the membership function is "1" is the most probable. In an actual calculation, the area of the membership function of the rear-part is evaluated by a "min" operation on the basis of a membership value corresponding to an input value. The region of the area to be evaluated is the hatched one. The area of a hatched part is similarly evaluated as regards the second rule defined as: "If X 2 is small, then Y is made medial". Using the conclusions of the two rules, the two hatched parts are combined by a "max" operation so as to calculate the position of the center of gravity, which gives an output value. The rules which are utilized for fuzzy inference in the analyzer unit 3, are derived from the knowledge data base 2. The structure of the knowledge data base 2 is shown in Fig. 6. Here, the data base 2 is divided into adjective rules 21 and noun rules 24. The noun rules 24 are used by the analyzer unit 3. The adjective rules 21 will be explained later, and practical examples of the noun rules 24 are shown in Fig. 7. By way of example, the noun rules may be: (If the noun data = "mountain", then the hue is set at green.) (If the noun data = "sea", then the hue is set at blue.) Thus, "mountain is green" and "sea is blue" are nouns defined by the noun data and the noun rules. The membership functions are also defined. Here, only the rear-parts are illustrated assuming that the membership functions of the fore-parts are set at "1" at all times. In addition, the shape of each of the membership functions is set as illustrated in Fig. 7 so that the hue considered to be a reference may become the peak of the membership value. The analyzer unit 3 searches for the noun rule 24 conforming to the noun data 12, by means of a fuzzy inference mechanism 31, and it delivers the clause defining the conclusion of the logical statement (rear-part) and membership function thereof to the interpreter unit 4 as a reference parameter. The processing of the interpreter unit 4 will be described below. The internal structure of the interpreter unit 4 is as shown in Fig. 8, and it includes a fuzzy inference mechanism 41 which is similar to that of the analyzer unit 3. The interpreter unit 4 receives the reference parameter representing the conclusion clause and membership function delivered from the analyzer unit 3, as a reference parameter so that the adjective rule 21 from the knowledge data base 2 is applied to the adjective data from the interface unit 7. It delivers the corrected parameter to the rendering unit 5. The content of the knowledge data base in which the adjective rules are stored is as shown in Fig. 6. It should be noted that, in Fig. 6, the sub-division of the knowledge data base illustrated is a logical division and there need be no physical division of memories in which knowledge rules are stored. The adjective rules are subdivided into two types: art knowledge rules 22 and subjective rules 23. These two types of rules, and methods of constructing them, will now be described. Art knowledge rules 22 are rules based on expertise which artists and designers utilize when producing images. In practice, they can be found e.g. in technical books, or by interviews with experts. An example of a rule derived from such expertise is shown in Fig. 9. It supplies instructions concerning colour schemes, and when a certain reference colour P is given, the permitted range of hue values for harmonizing colours is indicated. According to this art knowledge rule, regions defining harmonizing colours and regions defining clashing colours exist at ranges of angles symmetric with respect to the reference colour. The regions defining clashing colours are called the first and second obscurity regions, while the regions defining harmonic colours (hatched in Fig. 9) are called coincidence, similarity and contrast harmony regions. The names of the harmony regions signify that the reference colour and the colours of the corresponding parts are in the relationships of coincidence, similarity and contrast. The above art knowledge expressed in a rule form for fuzzy inference is shown in Fig. 10. The rule body is described as: (If the adjective = "contrastive" and the adjective = "harmonious", then the hue is set at P'.) In addition, the membership function of the rear-part is determined so that, as illustrated in the figure by way of example, the membership value may be set to have a value of "1" in a section from hues P" to P‴ in Fig. 9 and "0" in the other sections. The rule and the membership function described above is an example of an art knowledge rule 22; others will be immediately apparent. The method of construction of the subjective rules 23 will now be discussed and examples will be thereafter mentioned. The user's intentions for rendering the image are expressed in terms of adjectives, and it is the major function of the subjective rules to convert the adjectives into parameters which the renderer can make use of. In constructing the subjective rules, it is required to present a sample to a plurality of subjects of an experiment, to ask them to evaluate the proportions to which adjectives relate to the sample, and to analyze the results of the evaluations. As a technique for the analysis, the use of the Semantic Differential (SD) method will be described as an example below. Fig. 11 shows a diagram illustrating one example of the evaluating method based on adjectives. First, the adjectives which are thought to have a great influence on the relevant parameter are selected, and they are combined with opposed adjectives, thereby to predetermine such adjective pairs as "bright - dark" which define a range of values. Subsequently, the sample is presented to the subjects, and these subjects are asked to mark that part of the range of each adjective pair which is thought to be the most suitable, to define a relationship between the sample and the adjective pair and so define a subjective characteristic of the noun. As indicated in Fig. 12, the range may, for example on this occasion consist of seven stages which extend from "intermediate" to "very" in both plus and minus directions and which are given values from +3 to -3. In order to investigate the relationships between the adjective pairs and the colour parameters, as listed in Fig. 12 by way of example, samples totalling twenty-seven sorts are presented to the subjects when it is assumed that each of the three parameters of the hue, lightness and saturation takes three sorts of values. The evaluations with the respective adjective pairs are carried out for all the samples. The evaluated results of the adjective pairs are analyzed to extract common factors. Fig. 13 illustrates the factors which could be extracted, and the factor load amounts thereof. In this example, the three factors I, II and III have been extracted from the ten pairs of adjectives, and they are respectively construed as an impression of activity, an impression of expansion and an impression of complication. Thus, it is indicated that the principal measures of colours are composed of these three factors by way of example. The factor load amounts indicate the proportions in which the factors are loaded with the individual adjective pairs, and they are assumed to be related such that of a 1 > a 2 > ... > a 10 , b 1 > b 2 > ... > b 10 and c 1 > c 2 > ... > c 10 . In this example, the adjective pairs Nos. 5, 4, 2 and 10 are construed as being principally relevant to the factor representing the impression of activity, the adjective pairs Nos. 1, 8 and 3 to the factor representing the impression of expansion, and the adjective pairs Nos. 9, 6 and 7 to the factor representing the impression of complication. Further, an example of the result obtained by calculating the relationships between the colour parameters and the adjective pairs is tabulated in Fig. 14. Letters d , e and f denote the correlation coefficients of the adjective pairs to the hue, lightness and saturation, respectively, and these coefficients are assumed to have values such that d 1 > d 2 > ... > d 10 , e 1 > e 2 > ... > e 10 and f 1 > f 2 > ... > f 10 . The hatched parts in Fig. 14 represent parts which indicate high correlativities which exceed a predetermined threshold value. For example, the adjective pair "sharp - dim" is highly correlated to the hue. Fig. 15 shows an example in which, for this adjective pair, the values of the factor obtained when the hue is changed are plotted. This example reveals that the hue may approach α 3 in order to express a sharp colour and approach α 1 in order to express a dim colour. The contrast of the subjective rules of the knowledge data base are the equations of the relations between the adjectives and the parameter, e.g. as illustrated in Fig. 15. Fig. 16 shows the relationships of Fig. 15 converted into a rule form which can be utilized in fuzzy inference. For the purpose of the conversion, by way of example, the graph of the relations in Fig. 15 is divided into two parts by an axis where the value of the factor becomes zero, and the membership functions are generated. The rule bodies are described as, for example: (If the adjective = "sharp", then the hue is set at α 3 .) (If the adjective = "dim", then the hue is set at α1.) The membership functions of these parts is then derived, with the part which is above 0 in terms of the obtained values of the factor in Fig. 15 being allotted to the rule of "sharp", and the part which is below 0 being allotted to the rule of "dim". That is, the obtained values of the factor are normalized between 0 and 1, and the normalized values are set as membership values. On the other hand, the membership functions of the fore-parts can be found from the factor load amounts indicated in Fig. 13. In the example of Fig. 13, the adjectives "strong", "sharp", "bold" and "lively" load the common factor of the impression of activity heavily and exhibit factor load amounts a 1 to a 4 , respectively. Since the membership functions of the fore-parts need to give the distributions of the probabilities of input magnitudes, the values a 1 to a 4 are set as membership values. The membership functions thus defined are shown in Fig. 17. The art knowledge rules and the subjective rules can be constructed as described above. The interpreter unit 4 searches for the adjective rules i.e. both art knowledge rules and subjective rules which are applicable to the adjective data from the man-machine unit. Subsequently, the interpreter unit 4 determines the final corrected parameter by deriving a conclusion which may be considered as a modification to the reference parameter which is a conclusion drawn by the analyzer unit 3. Thus, this method of determination is such that, as illustrated in Fig. 5, the membership functions are combined by a "max" operation so as to calculate the position of the center of gravity, which is set as the corrected parameter. The interface unit 7 may have an internal structure as shown in Fig. 18. It has an adjective input part 71, which accepts the adjective entered through a tablet or keyboard. The internal structure of the rendering unit 5 is as shown in Fig. 19, and has a projection transformation part 51 which transforms the coordinates of a three-dimensional pattern into those of the two-dimensional screen, a hidden-surface processing part 52 which erases a hidden surface, and a shading processing part 53 which shades a model surface. The rendering unit 5 receives the model data 13 or 16 from the modelling data base 1 and the corrected parameter from the interpreter unit 4 as its inputs, subjects them to a rendering operation and delivers the result as output image information to the display unit 6. The internal structure of the display unit 6 is as shown in Fig. 20, and has a display control part 61 which converts the image information from the rendering unit 5 into an image, which is displayed. In the above embodiment, the art knowledge rules 22 shown in Fig. 6 can be divided as shown in Fig. 21, into rendering rules which are used by the rendering unit 5 and non-rendering rules 226 which are not directly relevant to the rendering unit 5. The rendering rules 221 can further be subdivided into colour scheme rules 222, property impression rules 223, composition rules 224 and illumination rules 225, while the non-rendering rules 226 can be subdivided into makeup rules 227, dressing rules 228 and interior rules 229. When the knowledge items are stored with the rules classified in respective fields in this matter, it is necessary to have a function capable of setting the degrees of importance of the rules in the fields. By way of example, this function may provide that great importance is attached only to the colour scheme rules. This may be achieved by a rule regulating mechanism 230 as shown in Fig. 22. The function of the rule regulating mechanism 230 can be embodied by changing the levels of the membership functions as shown in Fig. 22. More specifically, for the rules of the fields which are not important, the levels of the membership functions of the fore-parts and rear-parts of the rules are forcedly lowered. In Fig. 22, parts shown by broken lines correspond to the membership functions before regulation. By lowering the levels of the functions, the contributive proportion of the pertinent rule diminishes in the calculation of the center of gravity for obtaining an output value, and the output value to be obtained changes in the direction in which the degree of influence of the pertinent rule is lower. Thus, this arrangement can regulate the intensities of the degrees of importance of the rules in the respective fields and therefore brings forth the effect that the intention of the image rendering can be instructed more elaborately. In the arrangement described above, it is also possible to add a direct input part 72 to the interface unit 7 as shown in Fig. 23. The direct input part 72 does not enter physical parameters such as the hue, but it uses the data used for the construction of the subject rules 23. The outlines of the interface unit 7 and the interpreter unit 4 therefor are shown in Fig. 24. Since there are three subjective factors for determining one colour as shown in Fig. 13, the interface unit 7 is provided with three input axes corresponding to the impressions of activity, of expansion and of complication. Those of the adjective paris which have large factor load amounts are assigned to the respective input axes, and the three pairs of "sharp - dim", "bright - dark" and "simple-complicated" are respectively employed. Then, in the light of Fig. 14, the adjective pair "sharp - dim" is highly correlated with the hue, the adjective pair "bright - dark" with the hue and the saturation, and the adjective pair "simple - complicated" with the lightness and the saturation. Consequently, the input axes are respectively coupled with the parameter control portions 42, 43 and 44 of the interpreter unit 4 for only the highly correlative parameters. Subsequently, the interpreter unit 4 converts the direct input values into parameters and delivers the parameters to the rendering unit 5. The relationships between the adjective pairs and the parameters which are illustrated in Fig. 15 are used for this conversion. Thus, the arrangement permits the user to enter direct input values and therefore has the effect that the intention of the image rendering can be instructed in more detail. When constructing the subjective rules 23, illustrated in Figs. 13 and 14, the evaluated results are analyzed in dependence on the factors, and the common factors are extracted, whereupon the correspondences of the common factors with the parameters are found so as to determine the membership functions. However, the membership functions can also be determined directly from the results obtained when the evaluations illustrated in Fig. 11 are carried out on the basis of the factor shown in Fig. 12. The three factor axes need not be extracted, as described above, but the ten adjective pairs used in the evaluations may be used directly. Thus, the average of the estimated values are calculated, whereby a result similar to the relationships between the adjectives and the parameter shown in Fig. 15 can be obtained. Thus even with this method, the subjective rules 23 shown in Fig. 16 can be determined. The arrangement discussed above has the effect that the estimated result can be directly reflected. In the present invention the adjectives from which the subjective characteristics are obtained are not limited to those described. There is no particular restriction on the adjectives which may be used, but adjectives can be entered as the user wishes. It is also possible, however, to restrict the use only to adjective which are highly correlative with parameters as the results of a previous factor analysis. To this end. the usable adjective pairs may be clearly indicated on a display, such as that shown in Fig. 25, thereby permitting the user to select any of them. The arrangements discussed above make it possible to select only the adjectives highly correlated to the parameters, and therefore there is an increase in accuracy when turning a subjective intention into a parameter. With this aspect of the present invention, the user can instruct the image rendering of a rendering operation in terms of adjective and the intention of the user may therefore reflect more easily than when dealing directly with physical parameters. The rendering of the desired image can accordingly be simplified, so that the man-house needed for the rendering operation can be reduced. As will now be described, it is possible for one characteristic of am image to be assigned on the basis of another characteristic of the image. In itself, such an arrangement is not an embodiment of the invention. However, such an arrangement may be used as an additional feature of the present invention. This feature will now be discussed in detail, and will be discussed in terms of the assignment of colour characteristics on the basis of the respective areas of the image features. Of course, as before, the present invention is not limited to the assignment of colours. Arrangements incorporating this feature will now be described, in terms of an apparatus which acts as an aid to colour-arrangement determination. Fig. 26 is a block diagram of a colour-arrangement determination aid apparatus. With the colour-arrangement determination aid apparatus, a user generates a model to be rendered, a three-dimensional model 82 in this embodiment, by means of a CAD system 81. Subsequently, the hidden surface of the model 82 is processed, that is, parts of the model which are not visible are erased by a hidden-surface processing unit 83. Then, the user prepares a reference picture 84 bearing colours in which the model is to be painted, and the user loads the reference picture 84 into the apparatus by means of a colour scanner 85. The arranged colours of the loaded reference picture 84 are extracted by an arranged-colour extraction unit 86. Then a colour-arrangement determination unit 87, allots the colours extracted by the arranged-colour extraction unit 86 to the regions to-be-coloured of the model subjected to the hidden-surface processing by the hidden-surface processing unit 87. Next, the coloured model is shaded by a shading processing unit 88, and the resultant model is rendered to be displayed on a display 89. Fig. 27 is a flow chart showing the detailed steps of the processing operations of the colour-arrangement determination aid apparatus described above. First, the CAD system 1 performs processing at steps 101 and 102. At step 101, the user enters the model to-be-rendered in terms of basic data known as geometrical primitives and defines shapes. For example, a model such as that shown in Fig. 28 may be defined in terms of numerical values of height, width and depth, for a rectangular parallelepiped, and values of height and radius for each of a circular cylinder and a circular cone. On this occasion, an identifier M1 is associated with the rectangular parallelepiped, an identifier M2 with the circular cylinder, an identifier M3 with the circular cone, and an identifier M4 with the background. The geometrical primitives entered as the inputs are then transformed at step 102, into triangular plate elements. That is, all the fundamental patterns are approximated as a set of triangular plates, and also curved surfaces are approximated by flat plates. Subsequently, the set of the triangular plate elements are registered as a three-dimensional model 2. The actual data consists of the apical coordinate values, apical normal vector component values and fundamental-pattern identifiers of the respective triangular plate elements. The hidden-surface processing unit 3 then carries out the processing of steps 103 to 105. Step 103 corresponds to projection transformation processing by which the triangular plate element constituting the three-dimensional model is projected on a two-dimensional screen. As is generally known, this processing can be carried out so that the apical coordinates of each triangular plate element is multiplied by a projection transformation matrix. At step 104, the hidden-surface processing erases parts not seen for every pixel within the projected triangular plate. For example, according to a conventional Z buffer algorithm, processing can be carried out so that depth information with respect to the visual point is stored in a pixel unit and that the depth information is updated when the current depth value is on that side of the stored value corresponding to the viewer. Thus a model of the parts closest to the viewer is generated for each pixel, i.e. a series of image features are assembled, which image features are to be coloured as will now be described. On this occasion, the fundamental-pattern identifier of the relevant pixel is registered at a step 105. This identifier is information for identifying to which of the fundamental patterns the model displayed on the screen belongs. As shown in Fig. 29, the fundamental patterns displayed in the respective pixels can be identified by this processing. It is indicated in the figure that regions Q1, Q2, Q3 and Q4 display the fundamental patterns M1, M2, M3 and M4, respectively. That is, each pixel is managed and stored within a computer in the form in which the identifier information is added to the ordinary red (R), green (G) and blue (B) luminance information items. Next, the operation of the arranged-colour extraction unit 86 will be described. The user selects the image of a colour arrangement as the reference picture 84 (e.g. that of Fig. 30) which is input to the colour scanner 85. That is, the user instructs the arranged colours of a picture in the computer graphics system by entering a photograph, an illustration or the like which already exist (step 108). In the flow chart of Fig. 27, steps 108 to 111 are the processing contents of the arranged-colour extraction unit 86. As step 109, the three histograms of R, G and B are generated on the basis of the RGB information items of the reference picture 84 received from the colour scanner 85. By way of example, the frequences of the R, G and B luminances are calculated and stored as shown in Fig. 31. At step 110, peak parts are detected from within the generated histograms. By way of example, four peaks P1, P2, P3 and P4 can be detected in the histograms shown in Fig. 31 by investigating the maximum values. At step 111, the region to-be-coloured is divided into parts, which parts are to be coloured on the basis of the detected peaks. By way of example, in the case where the histograms depicted in Fig. 31 have been derived from the reference picture depicted in Fig. 30, the region is divided by evaluating sections in which the respective peaks are contained. In Fig. 31, a section from r 1 to r 2 is found for the peak P 1 . Similarly, sections from g 1 to g 2 , from b 1 to b 2 , and from b 2 to b 3 are respectively found for the peaks P2, P3 and P4. When these sections are respectively set as individual regions, the region to be painted can be divided into four regions R1, R2, R3 and R4 as shown in Fig. 32. Here, the region R1 corresponds to the peak P1. Likewise, the region R2 corresponds to the peak P2, the region R3 to the P3, and the region R4 to the peak P4. The peak values can then be used for the colours representing the respective regions. Next, the processing of the colour-arrangement determination unit 87 will be explained, represented by steps 106 and 107 and steps 112 and 113 in the flow chart of Fig. 27. At step 106, the information items of the identifiers of the fundamental patterns obtained as illustrated in Fig. 29 are counted for all the pixels, thereby to calculate the number of the pixels contained in the individual identifiers. Since the areas of the respective identifiers are evaluated in this way, the areas of the regions Q1, Q2, Q3 and Q4 in Fig. 29 are thus known. At step 107, the regions are ordered in a collation list in accordance with the sizes of the areas. The collation list has the structure as shown in Fig. 33, and the regions are registered in the fundamental-pattern collation list 91 at this step. In the case of Fig. 29, for example, the regions are registered in the areal sequence Q4, Q1, Q2 and Q3. Thus, the image features are ordered in terms of one characteristic. At step 112, the results of the regional division of the reference picture 84 found as illustrated in Fig. 32 are registered in a collation list in areal sequence in the same way as at the steps 106 and 107. They are registered in the reference picture collation list 90 in Fig. 33. For the analysis of the reference-picture shown in Fig. 32 the results are registered in the sequence of R3, R2, R4 and R1. At step 113 the colours to-be-arranged are allotted to the image features of model in the areal sequence of the collation lists. To this end, the regions are collated in the areal sequence by the use of the reference-picture collation list 10 and the fundamental-pattern collation list 11. In consequent, the regions R3, R2, R4 and R1 are respectively collated with the regions Q4, Q1, Q2 and Q3 as illustrated in Fig. 33. Thus, the colour information items are determined for the respective geometrical primitives (image features) and the colour arrangement within the screen is also determined. That is, in this embodiment, the colour of mountains (R2) is allotted to the rectangular parallelepiped M1 (Q1) in Fig. 28, the colour of the sky (R4) to the circular cylinder M2 (Q2), the colour of clouds (R1) to the circular cone M3 (Q3), and the colour of the sea (R3) to the background M4 (Q4). Subsequently, in order to shade the fundamental patterns, shading processing at a step 114 is carried out in the shading processing unit 88. The shading processing shades the planes of the fundamental patterns in dependence on the angles defined between them and a light source. Finally, at step 115, the fundamental patterns to which the instructed colours are allotted and which are shaded are displayed on the display 89 by suitable display rendering. In the above arrangement, the reference picture needs to be input for instructing the colours to-be-arranged on each occasion. It is also possible, however, additionally to provide a reference-picture data base 95 as in the modification shown in Fig. 34. In the arrangement shown in Fig. 34, the method of entering reference pictures 84 is the same as in the arrangement of Fig. 26, using a scanner 85, but data relating to those pictures are stored in a reference-picture data base 95 by a reference-picture registration unit 93. Thereafter, when operating the apparatus, a selected reference picture may be retrieved from the data base 95 by a reference-picture retrieval unit 94. The subsequent processing of the retrieved data and the application of that data to the colouring of image features of a model may be the same as that of the arrangement of Fig. 26. This arrangement has the advantage that the same reference picture can be used repeatedly. Furthermore, or as an alternative, an arranged-colour data base 98 can be additionally provided as shown in Fig. 35. This data base 98 stores the reference-picture collation list 90 of Fig. 33. Colours to be arranged are registered by an arranged-colour registration unit 96, and necessary colours to be used are retrieved by an arranged-colour retrieval unit 97. Thus, the arrangement of Fig. 35 is similar to that of Fig. 34, but with the recordal of the colours in the data base being after they have been arranged in sequence, rather than before. The arrangement of Fig. 35 has the advantage that, since the data items are stored when the extraction of the colours to-be-arranged has ended, the arranged-colour extraction processing is dispensed with, so the processing speed can be increased. Thus, a user can instruct colours to-be-arranged in computer graphics by supplying a reference-picture, so that the method of instruction is easy, and the conversation between a computer and the user can be achieved. Moreover, owing to the easy instructions, the number of times of trials by the user decreases, and the number of man-hours for the colour arranging operation decreases. Further, by selecting a reference of excellent colour arrangement for the reference picture, that colour arrangement may be reflected in a picture generated by computer graphics, so that the quality of the picture which can be generated is enhanced. The features described with reference to Figs. 26 to 35 may be used in conjunction with that of Figs. 1 to 25, by using the reference picture to derive, for the modelling data, the subjective characteristic associated with each image feature. Thus, the colour if the 'sky' in an image would be defined to correspond to the colour of the sky in a reference picture, with the user then being able to vary the colour on the basis of subjective characteristics. This may be useful if it is desired to create an image in which the image features correspond in e.g. size or shape to image features of a reference image, but with the colours then being varied subjectively. In such an arrangement, the arranged-colour extraction unit 86 in Fig. 34 supplies a noun rule to the analyzer unit in Fig. 1, which is then applied to noun data from the modelling data base in Fig. 1 in the same way as to the data from the hidden surface processing unit 83 in Fig. 26.

Claims: A method of rendering an image, comprising the steps of: a) providing modelling data of each of a plurality of spatial image areas; b) providing a predefined range of permitted colour parameter combinations for each of the image areas, each colour parameter combination being a combination of three colour parameters representing hue, lightness and saturation respectively, each of the image areas being associated with a colour parameter combination predetermined from the respective range of permitted combinations; c) selecting at least one of the image areas and rendering an image on the basis of the at least one selected image area and the predetermined colour parameter combination; characterized by: d) defining at least one subjective property of the colour parameter combination, with that subjective property having a range of subjective property values which are associated, for each image area, with the respective permitted colour parameter combinations in predetermined relationships, the values of said at least one subjective property affecting all of the colour parameters; e) enabling the user to select one of those subjective property values, and converting said selected subjective property value into a colour parameter combination for said at least one selected image area; f) modifying the predetermined colour parameter combination on the basis of said converted colour parameter combination to generate a modified colour parameter combination associated with the at least one selected image area; and g) rendering an image on the basis of said at least one selected image area and said modified colour parameter combination. A method according to claim 1, wherein said step (f) is carried out on the basis of fuzzy inference processing. A method according to claim 1 or claim 2, wherein said plurality of colour parameter combinations are derived by scanning a preselected reference image. A method according to claim 3, wherein said preselected reference image has a plurality of reference spatial image areas, and said colour parameter combinations are derived from corresponding reference colour parameter combinations of said reference spatial image areas. A method according to claim 4, wherein said reference spatial image areas each have reference areas and colour parameter combinations, said reference areas of said reference spatial image areas are ordered in a reference sequence, and said reference colour parameter combination of each of said spatial image areas is determined to correspond to said reference colour parameter combination of the reference spatial image areas which has a location in said reference sequence which corresponds to the location of a respective one of said spatial image areas in said first sequence. An apparatus for displaying an image, comprising: a) memory means (1, 2) for: (i) storing modelling data of each of a plurality of spatial image areas; and (ii) storing a predefined range of colour parameter combinations for each of the image areas, each colour parameter combination being a combination of three colour parameters representing hue, lightness and saturation respectively, each of the image areas being associated with a colour parameter combination predetermined from the respective range of permitted combinations; b) user operable means (7) for selecting at least one of the image areas; c) rendering means (5) for generating a rendered image on the basis of said at least one selected image area and the predetermined colour parameter combination; characterised in that: the apparatus further includes d) rule base means (2) for defining at least one property of said colour parameter combinations, with that subjective property having a range of subjective property values which are associated, for each image area, with the respective permitted colour parameter combinations in predetermined relationships, the values of said at least one subjective property affecting all of the colour parameters, the user operable means being further arranged to permit the user to select one of the subjective property values; e) processing means (3, 4) for modifying the predetermined colour parameter combination, to generate a modified colour parameter combination associated with the at least one selected image area; wherein the rendering means (5) is further arranged to generate an image on the basis of said at least one selected image area and said modified colour parameter combination. An apparatus according to claim 6, wherein said processing means comprises an analyser (3) for analysing said relationship between each said spatial image area and at least one corresponding colour parameter combination, and an interpreter (4) for controlling said relationship on the basis of said modified colour parameter combination. An apparatus according to claim 6 or claim 7, further including scanning means (85) for scanning a physical image, thereby to drive at least some of said plurality of colour parameter combinations.

Inventors: MIYATA TOMOYUKI, NISHIYAMA JOJI, OTA YOSHIMI, TAKATSUKI HIROAKI, USAMI YOSHIAKI, YANAKA MASAO, MIYATA, TOMOYUKI, NISHIYAMA, JOJI, OTA, YOSHIMI, TAKATSUKI, HIROAKI, USAMI, YOSHIAKI, YANAKA, MASAO
Applicants: HITACHI LTD, HITACHI, LTD.
Application year: 1990
Main classification: G06T11
IPC codes: G06T11