Sharpness processing apparatus

Abstract: A sharpness processing apparatus for enhancing or suppressing tone variations in an original image. A lookup table (12) for converting RGB signals into HSL values which are the three attributes of perceived colors is used to obtain HLS values of pixels in the original image stored in a frame memory (2). The HSL values (14) of the pixels are successively compared (16) with HSL values (11) indicating an effective range of sharpness processing determined with reference to a designated reference color (6), to determine pixels to be subjected to the processing. The processing is effected by applying a parameter (13) to the RGB signals of the pixels subjected to the processing. In this way, the apparatus facilitates designation of a region of sharpness processing. Besides, the value of the parameter (13) is variable with differences between the HSL values of the pixels corresponding to the reference color (6) and the HSL values of the pixels (14) determined to be subjected to the processing, whereby the sharpness processing is effected without impairing smoothness of the original image.

Description: BACKGROUND OF THE INVENTION (1) Field of the Invention This invention relates to sharpness processing apparatus used, for example, in a video plate-making process for enhancing or suppressing tone variations in outline portions of an original image. (2) Description of the Related Art The principle of sharpness processing will be described with reference to Fig. 1. Assume that a particular region of an original image has an image signal S (i.e. an original image S) as shown in Fig. 1 (A). Reference pixels in the particular region are successively selected, and an average signal is obtained from color component signals, for example, of 5 x 5 pixels surrounding each reference pixel. This corresponds to an unsharp signal U as shown in Fig. 1 (B). Next, the unsharp signal U is subtracted from the original signal S to obtain an unsharp mask signal (S-U) as shown in Fig. 1 (C). The unsharp mask signal (S-U) is added to the original signal S to obtain a signal enhancing outline portions as shown in Fig. 1 (D). At this time, the unsharp mask signal (S-U) is multiplied by a level k to adjust a degree of processing. The original signal S consists of three color component signals (RGB signals). Consequently, the sharpness processing is expressed as follows: S R + k (S-U) S G + k (S-U) S B + k (S-U) A signal with enhanced sharpness is obtained if level k is larger than zero. However, if -1<k<0, the signal will be something between the original signal S and unsharp signal U as seen from the above expressions. This is a signal having reduced sharpness opposite to enhancement; a signal having undergone what is known as smoothing processing. When such sharpness enhancement processing (or suppression processing: these are collectively called sharpness processing) is effected only for a particularly region in an original image, a pointing device such as a mouse is operated to designate the region on a monitor screen displaying the original image, and the above processing is carried out only for the pixels within this region. However, a very difficult and irksome operation is required for designating such a particular region. In the first place, where sharpness processing is desired only for a particular graphic figure, the more complicated the image is, the longer time is spent in designating the region. Where sharpness processing is desired only for graphic figures of a particularly color in the original image, the graphic figures having its color components must be designated individually. This involves a great amount of work. When a particular region is designated in an original image having gradually changing image signals throughout, the image tends to be converted into an unnatural image with boundaries of the region abruptly becoming sharp or unsharp. According to GB-A-2 117 902, data of an original image stored in disks 12, 13 are converted by a conversion circuit into the three attribute values of perceived colors C1, C2, C3, and then stored in memory planes. A selective color detector detects a color portion to be subjected to image processing among the data stored. A color modification circuit modifies the color portion detected. The modified data are converted into RGB data by a C1, C2, C3 to RGB conversion circuit to be applied to an output device. That is, in the apparatus described in GB-A-2 117 902, a color portion to be processed is selected by using the three attribute values of perceived colors, and image processing is carried out for the three attribute values of perceived colors. Consequently, GB-A-2 117 902 requires C1, C2, C3 to RGB conversion for returning data after the image processing to RGB data, which accordingly complicates the apparatus. A color portion to be processed is selected by using the three attribute values of perceived colors and the sharpness processing is carried out for such three attribute values of perceived colors. As the apparatus of GB-A-2 117 902 carries out image processing for the three attribute values of perceived colors converted, the quality of an output image will be impaired if processing is carried out by reducing the number of bits in the digitized RGB data of pixels. Therefore, the apparatus of GB-A-2 117 902 requires a large-scale conversion circuit capable of handling all the bits constituting individual RGB data, as a conversion circuit for converting the RGB data of each pixel in an original image into the three attribute values of perceived colors. SUMMARY OF THE INVENTION Having regard to the above state of the art, a primary object of this invention is to provide a sharpness processing apparatus which facilitates designation of a particular region or regions to be subjected to sharpness processing. Another object of the invention is to provide a sharpness processing apparatus capable of effecting sharpness processing for a particular region of an original image having gradually changing image signals, without impairing the smoothness thereof. The above objects are fulfilled, according to the present invention, by a sharpness processing apparatus as defined in claim 1. The apparatus according to the present invention has a table for converting the RGB signals of the original image into attribute values which are the three attributes of perceived colors. Thus, a color range for the sharpness processing may be determined with the HSL values. When, for example, sharpness processing is desired only for a complex graphic figure, a particular color component of the graphic figure may be designated to indicate a color range since a color range for processing may be determined with values in a color space. A similarly simple operation is adequate also when only a plurality of graphic figures of the same color are subjected to sharpness processing. The object pixel determining means determines pixels subjected to the sharpness processing, by comparing the HSL values indicating a color range for sharpness processing determined and the attribute values of pixels in the original image. The sharpness processing means effects the sharpness processing by applying the parameter designated to the RGB signals of pixels determined to be subjected to the sharpness processing. That is, the RGB signals are converted into attribute values in order only to determine whether a key pixel is in an effective range of sharpness processing. The sharpness processing is carried out for the RGB signals of the pixels determined to be within the effective range. Consequently, the apparatus does not require a table for changing the attribute values converted as above back to RGB signals. This effectively avoids an increased cost of the apparatus due to an enlarged capacity of the storage means. For the same reason, a high degree of precision is not required for the conversion from RGB signals to attribute values. It is conceivable to designate a color range with values of RGB signals. In this case, however, colors must always be considered with reference to an additive color mixture, and such designation can be made only by a skilled person capable of grasping a correlation between values designated and a range of color envisaged. By contrast, the designation with the attribute values which are the three attributes of colors perceived by humans enables a simple operation in that colors may be grasped by intuition. The attribute values showing a color range of sharpness processing may be designated with numeric values (attribute values), with attribute values obtained by applying to the image data conversion table the RGB signals of pixels showing the effective range and designated in the original image displayed on display means, or with default values of the attribute values showing an effective range. The above apparatus may further comprise level amending means according to claim 10. Then, a particular region of the original image having smoothly varying image signals may undergo sharpness processing without losing the smoothness. Assume that the attribute values of the reference color acting as a central object of the sharpness processing are (HSL), and the attribute values of the pixels determined by the object pixel determining means to be the objects of the sharpness processing are (hsl). Since (hsl) are values found within the color range based on (HSL), (hsl) are present between (HSL) and critical values of the effective range. Thus, the differences between (HSL) and (hsl) are minimum when (HSL) = (hsl), and become the larger the closer (hsl) are to the critical values of the effective range, i.e. to a boundary between object pixels for the sharpness processing and non-object pixels in the color space. The sharpness processing is carried out with the level amended such that the larger the above differences are, the smaller the level becomes. The intensity of the sharpness processing using this parameter is minimum at the boundary between object pixels and non-object pixels, and becomes the greater the closer the object pixels are to the pixels corresponding to the reference color. Consequently, the sharpness processing produces smooth tone variations. BRIEF DESCRIPTION OF THE DRAWINGS For the purpose of illustrating the invention, there are shown in the drawings several forms which are presently preferred, it being understood, however, that the invention is not limited to the precise arrangements and instrumentalities shown. Fig. 1 is an explanatory view of the principle of sharpness processing in the prior art; Fig. 2 is a perspective view showing an outward appearance of a sharpness processing apparatus embodying the present invention; Fig. 3 is a block diagram showing an interior arrangement of the sharpness processing apparatus; Fig. 4 is a view showing a way in which a mouse is used to designate a reference color in an original image displayed on an image monitor; Figs. 5A and 5B are views each showing a designated pixel and surrounding pixels; Figs. 6A and 6B are views each showing an example of input screens for inputting numeric values of RGB signals to designate a reference color; Fig. 7 is a view showing a distribution in an original image of RGB signals of the reference color; Fig. 8 is a view showing an example of menus for selecting a method of designating an effective range of sharpness processing; Fig. 9 is a view showing an example of input screens for designating an effective range of sharpness processing with attribute values; Fig. 10 is an explanatory view showing a method of designating a color range for the sharpness processing with pixels in the original image; and Fig. 11 is a view showing a relationship between an HSL color space and Lab color space having hue, saturation and lightness values in a three-dimensional coordinate system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described in detail hereinafter with reference to the drawings. Fig. 2 is a perspective view showing an outward appearance of a sharpness processing apparatus. The apparatus includes, as main components thereof, an image monitor 3 for displaying an image subjected to sharpness processing and an image resulting from the sharpness processing, a data input device 4, a drive unit 1 for driving a magneto-optical disk storing image data (i.e. a magneto-optical disk driver 1), and a frame memory unit 20 having frame memories for storing image data before and after the processing, respectively. The data input device 4 includes a control monitor 9, a keyboard 10 and a mouse 5 for the operator (user of this apparatus) to input data, and a computer 21 whose chief function is the sharpness processing. Fig. 3 is a block diagram of a system of this apparatus. The construction and operation of this apparatus will be described with reference to this block diagram, and in combination with controls made by the operator. It is to be noted that Fig. 3 shows the part of functions of the computer 21 relating to the sharpness processing independently in the block diagram. The functions to carry out other types of processing, such as processing to output and display data on the control monitor 9, are assigned to the data input device 4. The magneto-optical disk driver 1 acts to take digitalized image signals of an image to be processed (hereinafter called an original image) into this apparatus. Although it is assumed that original image signals are stored on a magneto-optical disk, these signals may be stored on a magnetic tape or a hard disk. In the latter case, the magneto-optical disk driver 1 is replaced with a drive unit for accessing the alternative storage medium. Further, the device for taking digitalized image signals of an original image into this apparatus may be an input scanner 30. The first frame memory 2 has a capacity to store, in each frame, original image signals, i.e. color component signals of R (red), G (green) and B (blue), of one original image read through the magnet-optical disk driver 1. The original image signals in the first frame memory 2 are outputted through an internal switch SW to the image monitor 3 to display the image thereon. The operator controls a pointing device such as the mouse 5 of the data input device 4 while looking at the screen of the image monitor 3, to move an arrow YR on the screen to a position of a key color (reference color) in a color distribution region for which the operator desires to effect sharpness processing, as shown in Fig. 4. The operator then clicks a button on the mouse 5 to designate the region for sharpness processing by means of the color. When the reference color is designated, the data input device 4 outputs coordinate data of the point designated on the screen of the image monitor 3 as an address for reading by the first frame memory 2. It is assumed here that the color component signals of R, G and B of the color read are Ru, Gu and Bu signals. Although the Ru, Gu and Bu signals are the RGB signals of the point (pixel) designated with the mouse 5, the color of the point designated by the operator, i.e. the reference color as seen in the eyes of the operator, strictly speaking, does not consist in the color of the designated point alone but is influenced by colors surrounding the designated point. Thus, as shown in Figs. 5A and 5B, the Ru, Gu and Bu signals may be based on average values of RGB signals of four adjacent pixels P1-P4 (Fig. 5A) or eight pixels P1-P8 (Fig. 5B) around the point P0 designated with the mouse 5. The Ru, Gu and Bu signals may be determined, for example, by inputting values of RGB signals directly through the keyboard 10 while looking at an input screen displayed on the control monitor 9, instead of operating the mouse 5 to designate a pixel in the original image displayed on the image monitor 3. In this case, if the RGB signals stored in the first frame memory 2 are 8-bit digital signals, the Ru, Gu and Bu signals may be designated with numeric values "0 to 255" to which the digital signals are decimalized, as shown in Fig. 6A. Alternatively, the Ru, Gu and Bu signals may be designated with values in percentage "0 to 100(%)" corresponding to the values "0 to 255" as shown in Fig. 6B. The reference color designated with pixels in the original image or with numeric values as above may be displayed in a color patch superposed on the original image, in a predetermined region (e.g. a region in a lower left corner) on the screen of the image monitor 3 as indicated by reference CP in Fig. 4. The color patch refers to a predetermined region on the image monitor 3 filled with a reference color designated, to enable the operator to observe the designated color independently of the original image. Where, as noted above, the Ru, Gu and Bu signals are designated with numeric values inputted through the keyboard 10, a designated reference color (color patch) is displayed on the image monitor 3 in real time. This enables the operator to grasp instantly a correlation between the numeric values of the Ru, Gu and Bu signals designated and a reference color as envisaged by the operator. If the color patch differs from the reference color envisaged, the operator may vary the numeric vales of Ru, Gu and Bu signals to designate the reference color easily and accurately. As shown in Fig. 7, all the pixels in the original image corresponding to the Ru, Gu and Bu signals of the reference color may be highlighted by a special color or by flashing. This allows the operator readily to grasp a distribution of the reference color in the original image, for convenience in confirming a region subjected to sharpness processing on the screen. In Fig. 7, a sweater ST shown in hatching is displayed in the special color or flashed. The Ru, Gu and Bu signals are stored in a first pixel value memory 6. This memory and other memories described hereinafter are present as part of a storage region in an internal memory (main storage) of the computer 21. The computing units described hereinafter correspond to a CPU (central processing unit) for executing a program based on a processing algorithm. Subsequently, the operator designates a color range for the sharpness processing, and sets a level for use in the processing. In this apparatus, a color range is determined by using attribute (HSL)values or by designating a pixel or pixels in the original image, or default values may be used instead of designating a color range. The operator selects the color range designation with the HSL values, or with a pixel or pixels in the original image, or use of the default values, on a menu screen displayed on the control monitor 6 as shown in Fig. 8, through the keyboard 10 or otherwise. The selection may be made by moving a frame to a choice item by operating cursor keys or the like on the keyboard 10 and pressing the return key or the like. When the HSL values are used for designation, values of dH, dS and dL as shown in Fig. 9 are inputted through the keyboard 10 and stored in an effective range memory 11. These values are expressed by Hu±dH, Su±dS and Lu±dL, where Hu is hue, Su is saturation and Lu is lightness corresponding to the Ru, Gu and Bu signals of the reference color. A color range is designated with HSL values because one must be conscious of an additive color mixture whenever handling the colors in a color mixing system such as of R, G and B, and it is difficult to designate a color by intuition. In this embodiment, a color range of a color to be processed is designated with values in HSL color space having color differences suited to differences of perception by humans. When the designation is made with a pixel or pixels in the original image, the mouse 5 is operated to designate a pixel or pixels in the original image displayed on the image monitor 3 as when designating a reference color (see Fig. 4). This designation mode has a number of variations, which will be described with reference to Fig. 10. It is assumed, for example, that the color (Ru, Gu, Bu) of a certain part of the red sweater in the original image is designated to be the reference color. (1) Designate one example of pixels for which sharpness processing is desired. Where, for example, sharpness processing is desired for the red sweater ST and the red of an apple AP adjacent the sweater ST, a pixel of the apple AP in the original image may be designated as an example of pixels subjected to the sharpness processing. (2) Designate one example of pixels for which sharpness processing is not desired. Where, for example, sharpness processing is not desired for the red of a tomato TM adjacent the red sweater ST, a pixel of the tomato TM in the original image may be designated as an example of pixels to be excluded from the sharpness processing. (3) Designate one example of pixels for which sharpness processing is desired and one example of pixels for which the sharpness processing is not desired. Where, for example, sharpness processing is desired for the red sweater ST and the red of the apple AP adjacent the sweater ST but not for the red of the tomato TM adjacent the sweater ST, a pixel of the apple AP in the original image may be designated as an example of pixels subjected to the sharpness processing, and a pixel of the tomato TM in the original image may be designated as an example of pixels to be excluded from the sharpness processing. (4) Designate a plurality of examples of pixels for which sharpness processing is desired. Where, for example, sharpness processing is desired for the red sweater ST, the red of the apple AP and the red of a red muffler MF adjacent the sweater ST, a pixel of the apple AP and a pixel of the muffler MF in the original image may be designated as examples of pixels subjected to the sharpness processing. (5) Designate a plurality of examples of pixels for which sharpness processing is not desired. Where, for example, sharpness processing is not desired for the red of the tomato TM or the red of a red glove GL adjacent the red sweater ST, a pixel of the tomato TM and a pixel of the glove GL in the original image may be designated as examples of pixels to be excluded from the sharpness processing. (6) Designate a plurality of examples of pixels for which sharpness processing is desired, and a plurality of examples of pixels for which the sharpness processing is not desired. Where, for example, sharpness processing is desired for the red sweater ST, the red of the apple AP and the red of the muffler MF adjacent the sweater ST, but not the red of the tomato TM or the red of the red glove GL adjacent the red sweater ST, a pixel of the apple AP and a pixel of the muffler MF in the original image may be designated as examples of pixels subjected to the sharpness processing, and a pixel of the tomato TM and a pixel of the glove GL in the original image as examples of pixels to be excluded from the sharpness processing. When the designation is made on the screen of the image monitor 3, the RGB signals stored at the addresses in the first frame memory 2 corresponding to the designated points (examples of pixels subjected to sharpness processing and/or those excluded from the sharpness processing) are read as R 1 x, G 1 x and B 1 x signals (of the examples of pixels subjected to the processing) and/or R 0 x, G 0 x and B 0 x signals (of the examples of pixels excluded from the processing) (where x is the number of pixels designated), and stored in an effective range pixel value memory 7. Since the pixels may be designated in various ways as noted above, the RGB signals are stored in the effective range pixel value memory 7 according to a selected designating mode. Based on the R 1 x, G 1 x and B 1 x signals and/or R 0 x, G 0 x and B 0 x signals stored in the effective range pixel value memory 7, a color range dH, dS, dL is determined by color range determination processing described hereinafter, and stored in the color range memory 11. Where a color range is not designated, default values of a color range stored in a default memory 8 are applied as they are to the color range memory 11. These default values are stored in the form of dH, dS and dL which can be updated. The designated level determines a degree of sharpness processing as described with reference to the prior art, and is affixed with reference k herein. For sharpness enhancement processing, the operator sets a value of parameter k>0 through the keyboard 10. For sharpness suppression processing, the operator sets a value of level -1<k<0. The parameter k inputted is stored in level memory 13. This apparatus determines, prior to execution of sharpness processing, whether the color components of pixels in the original image stored in the first frame memory 2 are in the effective range of sharpness processing or not. This determination is based on the information thus far inputted or extracted, i.e. "the RGB signals of the pixel (reference color) of the point designated with reference to the color of the region to be processed (Ru, Gu and Bu signals)", "the HSL values showing a color range of sharpness processing, or the pixels showing a color range of sharpness processing, or the default values of the color range where no color range is designated", and "the value of level k". In order to determine whether the color components of pixels in the original image are in the color range of sharpness processing or not, the values of R, G and B are converted into values of hue H, saturation S and brightness L. For this purpose, a lookup table 12 is prepared and stored in the following sequence. The values of R, G and B, which do not correspond directly to the values of hue H, saturation S and brightness L, are converted into values in Lab color space (This color space is recommended by the Commission Internationale de l'Eclairage (CIE) as an equivalent perceived color space). The values in Lab color space are converted into values in HSL color space. For converting the values of R, G and B for Lab color space, tristimulus values Ximax, Yimax and Zimax (i = R, G, B) when maximum values Rmax, Gmax and Bmax of R, G and B are applied to the image monitor 3 are first measured with a spectral radiometer. Next, the gamma of the image monitor 3 (a constant showing a relationship between input signal and luminous output of a color monitor: hereinafter expressed by sign "t" for expediency) is used to derive, from the following equations, tristimulus values X, Y and Z when given values r, g and b of RGB are inputted: X = Σ(j/imax) t ·Ximax :(i = R, G, B, j = r, g, b) Y = Σ(j/imax) t ·Yimax :(i = R, G, B, j = r, g, b) Z = Σ(j/imax) t ·Zimax :(i = R, G, B, j = r, g, b) In the above equations, as i = R, G or B, so j = r, g or b. The tristimulus values X, Y and Z are used to convert the values of R, G and B into values in Lab color space, as by the following equations. These converting equations are stipulated by the CIE. L = 116·(Y/Yn) 1/3 - 16 a = 500·[(X/Xn) 1/3 - (Y/Yn) 1/3 ] b = 200·[(Y/Yn) 1/3 - (Z/Zn) 1/3 ] where Yn = ΣYimax (i = R, G, B), Xn = ΣXimax (i = R, G, B), and Zn = ΣZimax (i = R, G, B). Fig. 11 shows a relationship between Lab color space and HSL color space. In Fig. 11, the L-axis of Lab color space corresponds directly to lightness L of HSL color space, a radius vector on two-dimensional coordinates of the a-axis and b-axis corresponds to saturation S, and an angle  between the a-axis and radius vector corresponds to hue H. Thus, the L value obtained above is regarded as the value of lightness in HSL color space, and saturation S and hue H are derived from the following equations: S 2 = A 2 + B 2 H = tan -1 (B/A) However, when A<0, 180 degrees are added to a result of computation for hue H, and when A>0 and B<0, 360 degrees are added thereto. This is done in order to avoid results of computation showing negative values. The values of H, S and L derived from the above operational expressions and corresponding to the values of R, G and B are stored in the lookup table 12 shown in Fig. 3. However, if the number of bits in the digitalized RGB signals is n, the number of combinations of the values of R, G and B is n 3 . The values of H, S and L corresponding to all of these would make an enormous amount of data. Thus, for example, several lower bits may be deleted from the n-bits to make m-bits (n>m), and the values of H, S and L (which are in n-bits since data need not be deleted therefrom) corresponding to the RGB signals in m-bits may be stored in the lookup table 12. As noted hereinbefore, the values of RGB signals are converted into the values of HSL color space in order to determine whether the color components of pixels in the original image are within the designated effective range of sharpness processing or not. Since the values of HSL color space obtained by the conversion are not used in the sharpness processing, no problem of low precision arises from the reduction in the number of bits of the RGB signals. Then, only the m-bits left after deleting the several lower bits from-the Ru, Gu and Bu signals (in n-bits) of the color to be processed, stored in the first pixel value memory 6 are outputted to the lookup table 12 to obtain the H, S and L values in n-bits. These are expressed as Hu, Su and Lu. The values Hu, Su and Lu are stored in a different storage region of the first pixel value memory 6. A color range determiner 18 determines a color range designated with a pixel or pixels. Prior to the determination of the color range by the color range determiner 18, only the m-bits left after deleting the several lower bits from R 1 x, G 1 x and B 1 x signals and/or R 0 x, G 0 x, B 0 x signals (stored in the color range pixel value memory 7) extracted from the pixel or pixels designated, as in the case of the first pixel value memory 6, are outputted to the lookup table 12 to obtain H 1 x, S 1 x and L 1 x signals and/or H 0 x, S 0 x and L 0 x signals in n-bits. These signals are stored in a different storage region of the color range pixel value memory 7. The color range is determined by various methods depending on the way (1)-(6) in which the pixel or pixels are designated as described hereinbefore. Each method will be described below. (1) Where one pixel is designated as an example of pixels for sharpness processing, the R 1 x, G 1 x and B l x signals and H 1 x, S 1 x and L 1 x signals (where x = 1) are stored in the color range pixel value memory 7. Absolute differences between the H 1 x, S 1 x and L l x signals and Hu, Su and Lu which are the HSL values of the reference color, multiplied by α (α>1) are stored in the color range memory 11 as a color range dH, dS and dL expressed in HSL values. These values are derived from the following equations: dH = H 1 x - Hu X α dS = S 1 x - Su X α dL = L 1 x - Lu X α The absolute differences between the H 1 x, S 1 x and L 1 x signals and Hu, Su and Lu are multiplied by α for the following reason. If dH, dS and dL were regarded as absolute differences between the H 1 x, S 1 x and L 1 x signals and Hu, Su and Lu, the pixel designated as an example of pixels subjected to the sharpness processing would be on a boundary of the color range. The sharpness processing for the boundary of the color range would have no effect when the level k is amended to be K as described hereinafter, and applied to the respective pixels in the original image. Then, contrary to the operator's intention, the pixel designated as an example of pixels to be processed would not be processed. Absolute differences between the H 1 x, S 1 x and L 1 x signals and Hu, Su and Lu are multiplied by α (α>1) to enlarge values of the boundary of the effective range, thereby effecting sufficient sharpness processing for the pixel designated as an example to be processed. In this embodiment, "2" is set as a though the value of a may be varied as desired. (2) Where one pixel is designated as an example of pixels for which sharpness processing is not desired, the R 0 x, G 0 x and B 0 x signals and H 0 x, S 0 x and L 0 x signals (where x = 1) are stored in the color range pixel value memory 7. Absolute differences between the H 0 x, S 0 x and L 0 x signals and Hu, Su and Lu are stored in the color range memory 11 as a color range dH, dS and dL. These values are derived from the following equations: dH = H 0 x - Hu dS = S 0 x - Su dL = L 0 x - Lu The vales of dH, dS and dL are derived without multiplying by α as distinct from the case (1) above. The reason for this is that the pixel designated as an example for which the sharpness processing is not desired will be on the boundary of the color range, and it is preferable that the sharpness processing produces no effect on that pixel. (3) Where one pixel is designated as an example of pixels for sharpness processing, and another pixel as an example of pixels for which the sharpness processing is not desired, the R 1 x, G 1 x and B 1 x signals, R 0 x, G 0 x and B 0 x signals, H 1 x, S 1 x and L 1 x signals and H 0 x, S 0 x and L 0 x signals (where x = 1) are stored in the effective range pixel value memory 7. Averages of absolute differences between the H 1 x, S 1 x and L 1 x signals and Hu, Su and Lu and absolute differences between the H 0 x, S 0 x and L 0 x signals and Hu, Su and Lu are stored in the color range memory 11 as a color range dH, dS and dL. These averages are derived from the following equations: dH = ( H 1 x - Hu + H 0 x - Hu ) ÷ 2 dS = ( S 1 x - Su + S 0 x - Su ) ÷ 2 dL = ( L 1 x - Lu + L 0 x - Lu ) ÷ 2 When |H 1 x - Hu| > |H 0 x - Hu|, the apparatus determines that this is a designation error made by the operator. Then, an error message with a type of error, for example, is displayed on the control monitor 9 or the like, prompting the operator to designate pixels again. This is a case where the pixel designated as an example for which the processing is not desired lies within the color range designated for sharpness processing, which is contradictory for the purpose of processing. This apparatus takes account of the fact that the operator often refers to differences in hue when designating pixels. Hence, even when |S 1 x - Su|> |S 0 x - Su| or |L 1 x - Lu|> |L 0 x - Lu|, the apparatus does not regard this as an error but computes the effective range dH, dS and dL. However, for the sake of strictness, designated values for saturation and lightness may also be checked as for hue. (4) Where a plurality of pixels are designated as examples for sharpness processing, the R 1 x, G 1 x and B 1 x signals and H 1 x, S 1 x and L 1 x signals (where x is the number of pixels designated) are stored in the color range pixel value memory 7. Maximum values are obtained from among absolute differences between the H 1 x, S 1 x and L 1 x signals and Hu, Su and Lu. The maximum values (|H 1 x-Hu| MAX , |S 1 x-Su| MAX and |L l x-Lu| MAX ) multiplied by α (α>1) are stored in the effective range memory 11 as a color range dH, dS and dL. These values are derived from the following equations: dH = H 1 x - Hu MAX X α dS = S 1 x - Su MAX X α dL = L 1 x - Lu MAX X α (5) Where a plurality of pixels are designated as examples of pixels for which sharpness processing is not desired, the R 0 x, G 0 x and B 0 x signals and H 0 x, S 0 x and L 0 x signals (where x is the number of pixels designated) are stored in the color range pixel value memory 7. Minimum values are obtained from among absolute differences between the H 0 x, S 0 x and L 0 x signals and Hu, Su and Lu, and are stored in the color range memory 11 as an color range dH, dS and dL. These values are derived from the following equations: dH = H 0 x - Hu MIN dS = S 0 x - Su MIN dL = L 0 x - Lu MIN (6) Where a plurality of pixels are designated as examples for sharpness processing, and a plurality of pixels as examples of pixels for which the sharpness processing is not desired, the R 1 x, G 1 x and B 1 x signals, R 0 x, G 0 x and B 0 x signals, H 1 x, S 1 x and L 1 x signals, and H 0 x, S 0 x and L 0 x signals (where x is the number of pixels designated) are stored in the color range pixel value memory 7. Maximum values are obtained from among absolute differences between the H 1 x, S 1 x and L 1 x signals and Hu, Su and Lu. Minimum values are obtained from among absolute differences between the H 0 x, S 0 x and L 0 x signals and Hu, Su and Lu. Averages of the maximum values (|H 1 x-Hu| MAX , |S 1 x-Su| MAX and |L 1 x-Lu| MAX ) and minimum values (|H 0 x-Hu| MIN , |S 0 x-Su| MIN and |L 0 x-Lu| MIN ) are stored in the color range memory 11 as a color range dH, dS and dL. These averages are derived from the following equations: dH = ( H 1 x - Hu MAX + H 0 x - Hu MIN ) ÷ 2 dS = ( S 1 x - Su MAX + S 0 x - Su MIN ) ÷ 2 dL = ( L 1 x - Lu MAX + L 0 x - Lu MIN ) ÷ 2 When |H 1 x Hu| MAX > |H 0 x - Hu| MIN , error processing is carried out as in the case (3) above. Next, the RGB signals of pixels in the original image stored in the first frame memory 2 are successively read and temporarily stored in the second pixel value memory 14. If the number of pixels in the horizontal direction of the first frame memory 2 is x and that in the vertical direction thereof is y, Rij, Gij and Bij signals of pixels ij (i = 1, 2, ...x, j = 1, 2, ... y) are successively stored in the second pixel value memory 14. Then, Rij, Gij and Bij signals in the m-bits after deleting the several lower bits, as in the case of the first pixel value memory 6, are outputted to the lookup table 12. The corresponding values Hij, Sij and Lij in n-bits are stored in a different storage region of the second pixel value memory 14. The Rij, Gij and Bij signals are outputted also to a sharpness processor 15. These are the original n-bit signals retaining the lower several bits. A comparator 16 compares Hu, Su and Lu stored in the first pixel value memory 6 and Hij, Sij and Lij successively stored in the second pixel value memory 14, to determine whether the absolute differences therebetween are larger than the values of dH, dS and dL stored in the effective range memory 11. The comparisons are based on the following expressions: Hij - Hu < dH Sij - Su < dS Lij - Lu < dL When all of the values of Hij, Sij and Lij satisfy the above comparison expressions (i.e. when the values in HSL color space of pixels ij read from the first frame memory 2 are in the color range), the comparator 16 outputs a control signal to the sharpness processor 15 to execute sharpness processing. Conversely, when even one of Hij, Sij and Lij does not satisfy the above comparison expression (i.e. outside the effective range), the sharpness processor 15 receives a control signal not to execute sharpness processing. In response to the control signal to execute the processing, the sharpness processor 15 reads the data of Hu, Su and Lu stored in the first pixel value memory 6, the data of Hij, Sij and Lij stored in the second pixel value memory 14, the data of dH, dS and dL stored in the color range memory 11, and the data of k stored in the level memory 13. Further, the sharpness processor 15 carries out sharpness processing, as described hereinafter, of the Rij, Gij and Bij signals outputted from the second pixel value memory 14, and stores results in a second frame memory 17. Upon receipt of the control signal not to execute the processing from the comparator 16, the sharpness processor 15 stores the Rij, Gij and Bij signals outputted from the second pixel value memory 14 in the second frame memory 17 without processing the signals. The sharpness processing, basically, is carried out by applying the value of k stored in the parameter memory 13 to the following equations: rij = Rij + k (Rij - U R ) gij = Gij + k (Gij - U G ) bij = Bij + k (Bij - U B ) In the above equations, U R , U G and U B are unsharp signals obtained, for example, by averaging color component signals R, G and B of each of 5 x 5 pixels around key pixel "ij", respectively, and rij, gij and bij are RGB signals of key pixel "ij" after the processing. However, the following problem could arise from the above. If execution or non-execution of the sharpness processing is determined, with reference to the designated color range, for a group of pixels in a portion of the original image where the RGB signals have smoothly varying values, the sharpness may be enhanced or suppressed abruptly across the group of smoothly varying pixels, resulting in an unnatural image. This is a phenomenon known as a tone jump. To eliminate this problem, the following processing is carried out prior to the sharpness processing. First, absolute values ΔH, ΔS and ΔL of the differences between the Hij, Sij and Lij data of Rij, Gij and Bij signals of pixels ij to be processed and the Hu, Su and Lu data of Ru, Gu and Bu signals of the color to be processed are derived from the following equations: Hij - Hu = ΔH Sij - Su = Δs Lij - Lu = ΔL Coefficients for varying the level k according to these differences are derived as follows: 1 - (ΔH/dH) = kh 1 - (ΔS/dS) = ks 1 - (ΔL/dL) - kl In the above equations, dH, dS and dL are values showing the color range of sharpness processing stored in the color range memory 11, i.e. values showing a boundary between the pixels to be processed and other pixels. Letters kh, ks and kl denote coefficients which approach a minimum "0" as ΔH, ΔS and ΔL approach dH, dS and dL, and approach a maximum "1" as ΔH, ΔS and ΔL approach "0", i.e. move away from dH, dS and dL. Thus, when the coefficients kh, ks and kl are applied to the sharpness processing level k in the equation set out below, a new level is obtained which makes k the smaller as it approaches the boundary values (i.e. moves away from the color to be processed) and which approaches the value of k as it moves away from the boundary values (toward the color to be processed). This parameter is named K. K = kr·kh·ks·kl By substituting level K for level k in the foregoing equations (1)-(3) to effect sharpness processing, a natural sharpness processing is effected without the tone of the image changing abruptly across the group of smoothly varying pixels. The letters and signs kh·ks·kl to the right side of the above level K may be replaced with the square root of kh·ks·kl. These rij, gij and bij after the sharpness processing are stored in the second frame memory 17. The image signals resulting from the sharpness processing and stored in the second frame memory 17 and the image (original image) signals before the processing stored in the first frame memory 2 are selectively outputted to and displayed on the image monitor 3 by an internal switch SW of the data input device 4 operable by a switch or the like of the mouse 5. This is convenient in practice since the images before and after the processing can be alternately observed for comparison. The images before and after the processing may be displayed side by side in a split screen mode on the image monitor 3. The processed image corresponding to one frame and stored in the second frame memory 17 are outputted to an output scanner 31 after being converted from the RGB signals into signals of cyan (C), magenta (M), yellow (Y) and black (B), and recorded on the film. While the output scanner 31 is connected to the apparatus so that the RGB signals of the processed image are outputted to the output scanner 31, the RGB signals of the processed image may be outputted, for example, to the magneto-optical disk driver 1 for storage on a magneto-optical disk to be transferred to a separate plate-making system or the like. The medium for transferring the RGB signals of the processed image to the separate plate-making system or the like is not limited to the magneto-optical disk but may be magnetic tape or the like. According to this embodiment, the sharpness processing is carried out only for the pixels within a designated effective range, which may be all pixels in an original image. That is, all pixels within a designated color range in one original image are subjected to the sharpness processing. If this is inconvenient, the above processing may be effected only for a region designated with the mouse 5 or the like of the data input device 4.

Claims: A sharpness processing apparatus for enhancing or suppressing tone variations in an original image, comprising: original image data storage means for storing digitized signals of R (red), G (green) and B (blue) of pixels in said original image; an image data conversion table for converting RGB signals into three attribute values (e.g. hue H, saturation S and brightness L: HSL values); reference color designating means for designating in said original image a reference color acting as a reference color within a color range of said original image to be subjected to said sharpness processing; color range designating means for designating, in terms of said attribute values, said color range for said sharpness processing to obtain a color range defined by said attribute values; level designating means for designating a level in the effect of the sharpness processing; object pixel determining means for determining whether pixels in said original image are to be subjected to said sharpness processing, by obtaining differences between the attribute values obtained by applying said RGB signals of said pixels in said original image stored in said original image data storage means to said image data conversion table, and attribute values of said reference color obtained by applying the RGB signals of said reference color to said image data conversion table, and comparing said attribute value-differences with said attribute value-color range designated for said sharpness processing; and sharpness processing means for effecting said sharpness processing for the RGB signals of pixels determined by said object pixel determining means to be objects of the sharpness processing, to the degree indicated by said level designated by said level designating means if said absolute attribute value difference is within said attribute value-color range. An apparatus as defined in claim 1, further comprising display means for displaying said original image upon receipt of the RGB signals of said original image stored in said original image data storage means. An apparatus as defined in claim 2, wherein said display means is operable to highlight all of the pixels in said original image displayed that correspond to the RGB signals of said reference color as designated by said reference color designating means. An apparatus as defined in claim 2, wherein said reference color designating means is operable to designate said reference color, with a pixel in said original image displayed on said display means, and to extract the RGB signals of said reference color from said original image data storage means based on an address of the pixel designated. An apparatus as defined in claim 2, wherein said reference color designating means is operable, based on an address of a pixel of the reference color in said original image designated, to extract the RGB signals of said pixel designated and adjacent pixels from said original image data storage means, and to regard averages of the RGB signals as RGB signals of the reference color. An apparatus as defined in claim 1, wherein said reference color designating means is operable to designate said reference color with numeric values of said RGB signals. An apparatus as defined in claim 1, wherein said color range designating means is operable to designate said color range of the sharpness processing with said attribute values expressed in numerical values. An apparatus as defined in claim 2, wherein said color range designating means is operable to designate the color range of the sharpness processing by designating a pixel or pixels in said original image displayed on said display means. An apparatus as defined in claim 1, wherein said color range designating means is operable to designate the color range of the sharpness processing in the form of attribute values set in advance. An apparatus as defined in claim 1, further comprising level amending means for computing differences between said attribute values of pixels corresponding to the reference color and said attribute values of pixels determined by said object pixel determining means to be subjected to the sharpness processing, and amending said level for the sharpness processing such that the larger the differences are, the lower said level of the sharpness processing is made. An apparatus as defined in claim 2, wherein said display means is operable to display the reference color to act as the central object for the sharpness processing in superposition in a predetermined region on a screen showing the original image. An apparatus as defined in claim 8, wherein said color range designating means is operable to designate the color range of the sharpness processing from at least one example of pixels designated for undergoing the sharpness processing. An apparatus as defined in claim 8, wherein said color range designating means is operable to designate the color range of the sharpness processing from at least one example of pixels designated for exclusion from the sharpness processing. An apparatus as defined in claim 8, wherein said color range designating means is operable to designate the color range of the sharpness processing from at least one example of pixels designated for undergoing the sharpness processing, and at least one example of pixels designated for exclusion from the sharpness processing. An apparatus as defined in claim 12, wherein said color range designating means is operable to designate the color range of the sharpness processing from the attribute values with reference to said reference color, by computing absolute values of differences between the attribute values obtained by applying, to said image data conversion table, the RGB signals of the pixels designated as the examples of pixels to be subjected to the sharpness processing, and the attribute values obtained by applying, to said image data conversion table, the RGB signals of the reference color as designated by said reference color designating means, selecting maximum absolute values of the differences from among the pixels designated as examples of pixels to be subjected to the sharpness processing, and multiplying the selected maximum absolute values of the differences by a predetermined coefficient, said values obtained being used as said color range of the sharpness processing. An apparatus as defined in claim 13, wherein said color range designating means is operable to designate the color range of the sharpness processing from the attribute values with reference to said reference color, by computing absolute values of differences between the attribute values obtained by applying, to said image data conversion table, the RGB signals of the pixels designated as the examples of pixels to be excluded from the sharpness processing, and the attribute values obtained by applying, to said image data conversion table, the RGB signals of the reference color as designated by said reference color designating means, and selecting minimum absolute values of the differences from among the pixels designated as examples of pixels to be excluded from the sharpness processing, said selected minimum absolute values being used as said color range of the sharpness processing. An apparatus as defined in claim 14, wherein said color range designating means is operable to designate the effective range of the sharpness processing from the attribute values with reference to said reference color, by computing absolute values of differences between the attribute values obtained by applying, to said image data conversion table, the RGB signals of the pixels designated as the examples of pixels to be subjected to the sharpness processing, and the attribute values obtained by applying, to said image data conversion table, the RGB signals of the reference color as designated by said reference color designating means, selecting maximum absolute values of the differences from among the pixels designated as examples of pixels to be subjected to the sharpness processing, computing absolute values of differences between the attribute values obtained by applying, to said image data conversion table, the RGB signals of the pixels designated as the examples of pixels to be excluded from the sharpness processing, and the attribute values obtained by applying, to said image data conversion table, the RGB signals of the reference color as designated by said reference color designating means, selecting minimum absolute values of the differences from among the pixels designated as examples of pixels to be excluded from the sharpness processing, and computing averages of the selected maximum absolute values of the differences and the selected minimum absolute values of the differences, said averages computed being used as said color range of the sharpness processing. An apparatus as defined in claim 10, wherein said level amending means is operable to amend the levels by computing absolute values of differences between the attribute values of pixels corresponding to the reference color and the attribute values of pixels determined by said object pixel determining means to be subjected to the sharpness processing, deriving coefficients kh, ks, kl for varying the level (k) according to the absolute values ΔH, ΔS, ΔL of differences from the following equations using the attribute values dH, dS, dL showing the color range of the sharpness processing: kh = 1 - (ΔH/dH) ks = 1 - (ΔS/dS) kl = 1 - (ΔL/dL) and applying the coefficients kh, ks, kl derived to the level k . An apparatus as defined in claim 18, wherein said level amending means is operable to amend the level by multiplying the level k by a product (kh·ks·kl) of the coefficients (kh, ks, kl). An apparatus as defined in claim 18, wherein said level amending means is operable to amend the level by multiplying the level k by the square root of a product (kh·ks·kl) of the coefficients (kh, ks, kl).

Inventors: MURAKAMI SHIGEO, MURAKAMI, SHIGEO, Murakami, Shigeo, c/o DAINIPPON SCREEN MFG. CO.LTD
Applicants: DAINIPPON SCREEN MFG, DAINIPPON SCREEN MFG. CO., LTD.
Application year: 1993
Main classification: H04N1
IPC codes: G06T5, G06T1, G03F3, H04N1, H04N9