This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2020-058482 filed Mar. 27, 2020.
The present disclosure relates to an image processing system, an image processing apparatus, and a non-transitory computer readable medium.
The color scheme of video content influences purchase motivation and sales. It is challenging to determine how colors of web design, package design, brochures, or articles are combined. To meet such needs, the service of analyzing and quantifying the color scheme of video content has been increasingly available recently. Using such a service, studies have been made to analyze the histogram of colors of and the distribution of hue and chroma of colors of an image of a well-sold design.
Japanese Unexamined Patent Application Publication No. 2011-248641 discloses a color scheme simulation system. The color scheme simulation system includes a model image database, model image display, color solid display, instruction unit, and controller. The model image database stores multiple pieces of color scheme region data related to model image data and representative color data of each piece of the color scheme region data. The model image display displays the model image data. The color solid display displays a specific color solid on which the representative color data is attached. The instruction unit issues an instruction to modify the representative color data in response to a sense term. The controller modifies the displaying on the model image display in response to the modification instruction and the displaying of the representative color data on the color solid display.
Japanese Unexamined Patent Application Publication No. 2011-86092 discloses a color scheme conversion apparatus. The color scheme conversion apparatus includes a color characteristic database, color difference analysis information database, and conversion rule database. The color scheme conversion apparatus analyzes the distribution of the color scheme acquired on a display and stores information related to the definition of color on the color characteristic database. The color scheme conversion apparatus classifies the analyzed color scheme into color scheme type by analyzing a color difference and stores information used to analyze the color difference on the color difference analysis information database. The color scheme conversion apparatus converts the color scheme on the acquired image by modifying the color difference in response to the classified color scheme type and stores a rule related to the modification of the color difference on the conversion rule database. The color scheme conversion apparatus outputs conversion results of the color scheme.
Without analyzing the colors used in images, a basic rule or a theory of harmony may be present on the color scheme that people like. Such human cognitive mechanism may be applied to color scheme. For example, similarity harmony may be implemented by combining colors of similar hues, identical harmony may be implemented by using colors of the same hue, or contrast harmony may be implemented by using highly saturated complementary colors to vividly stand out against each other.
A desirable color scheme pattern or a theory of harmony may be available. If applying the color scheme or the theory of harmony is actually attempted to a variety of images, colors to be applied may be changed or interchanged on each of elements or objects in an image in a persistent effort. Adjustment may be performed in view of the balance of entire harmony and a lot of work may be performed before user reaches the desirable status.
Aspects of non-limiting embodiments of the present disclosure relate to providing an image processing apparatus that reduces workload of a user more by reflecting on the color scheme of a processing target image in accordance with a color scheme pattern prepared in advance than when the user adjusts a color of the processing target image and a modified color of the processing target image.
Aspects of certain non-limiting embodiments of the present disclosure address the above advantages and/or other advantages not described above. However, aspects of the non-limiting embodiments are not required to address the advantages described above, and aspects of the non-limiting embodiments of the present disclosure may not address advantages described above.
According to an aspect of the present disclosure, there is provided an image processing apparatus. The image processing apparatus includes a processor configured to determine a color distribution of a processing target image and a color distribution of multiple sample colors prepared in advance as a set, and perform an operation to modify a color of the processing target image in accordance with a relationship between the color distribution of the processing target image and the color distribution of the sample colors.
Exemplary embodiments of the present disclosure will be described in detail based on the following figures, wherein:
Referring to the drawings, exemplary embodiments of the disclosure are described below.
Image Processing System
The image processing apparatus 10 is a general-purpose personal computer (PC). The image processing apparatus 10, under the control of an operating system (OS), operates a variety of software applications, thus creating image information.
The image processing apparatus 10 includes a central processing unit (CPU), memory, and storage, such as a hard disk drive (HDD) or solid-state drive (SSD). The CPU is a kind of processor and executes OS and software applications. The memory stores data used to execute a variety of software applications and the storage stores data input to the software applications and data output from the software applications.
The image processing apparatus 10 further includes a communication interface (hereinafter referred to as a communication I/F) used to communicate with external devices, and input devices including a keyboard, mouse, touch panel and/or stylus pen.
The display 20 displays an image on the display screen 21. The display 20 displays the image in additive mixture of color and may be a liquid-crystal display for PC, liquid-crystal television or projector. The display 20 is not limited to liquid-crystal type. Referring to
The input apparatus 30 includes a keyboard and mouse. The input apparatus 30 starts up or ends a software application for an image processing process. The input apparatus 30 is also used to enter an instruction for the image processing apparatus 10 to perform the image processing process.
The image processing apparatus 10 is connected to the display 20 via a digital visual interface (DVI). The image processing apparatus 10 and display 20 may also be connected to each other via high-definition multimedia interface (HDMI (registered trademark)) or DisplayPort.
The image processing apparatus 10 is connected to the input apparatus 30 via a universal serial bus (USB). The image processing apparatus 10 and the input apparatus 30 may also be connected to each other via IEEE1394 or RS-232C interface.
According to the exemplary embodiments, the image processing process is performed as described detail below. In the image processing process, the color distribution of a processing target image is caused to match the color distribution of sample colors. The color scheme of the sample colors is thus reflected on the color scheme of the processing target image and the impression of the processing target image thus becomes close to the impression of the sample color.
The display 20 in the image processing system 1 first displays a sample color and a processing target image that is an image prior to the image processing process. When a user gives to the image processing apparatus 10 an instruction to perform the image processing process using the input apparatus 30, the image processing apparatus 10 performs the image processing process on image information on the processing target image. The results of the image processing process are reflected on an image displayed on the display 20. The processing target image having undergone the image processing process is thus displayed on the display 20. In this case, the user may perform image processing while viewing the display 20.
The image processing system 1 of the exemplary embodiments is not limited to the configuration in
According to related art techniques, a distribution having a feature of a better image is analyzed and quantized as data. Although the user may refer to the quantized data, it is difficult to reflect the feature on another image and reproduce the impression of the better image.
Related art techniques have provided a system that allows an intuitive operation to be performed or a method that interchanges efficiently color code of hypertext markup language (HTML). In a mechanism of such related art, multiple regions that may serve partially as a strict color scheme target are determined, the color of the regions as the target is modified, and an association database of sense and color is used in assistance to combine a colors.
The exemplary embodiments implement an operation to prepare in advance multiple sample colors representing the impression of an image and reflect the sample color on an image quality of the processing target image.
The image processing apparatus 10 implementing this operation is described below.
Configuration of Image Processing Apparatus
A first exemplary embodiment is described. According to the first exemplary embodiment, a color scheme pattern is prepared in advance. When the user selects a color scheme image, the color scheme of the color scheme image is reflected on the color scheme of a processing target image.
The processing target image acquisition unit 11 acquires the processing target image. According to the first exemplary embodiment, the processing target image is a target image on which color adjustment is performed in the image processing process. The processing target image is determined when the user selects an image that is to undergo the color adjustment and the processing target image acquisition unit 11 acquires the processing target image selected by the user.
The color scheme image acquisition unit 12 acquires the color scheme image. According to the first exemplary embodiment, the color scheme image includes multiple sample colors that are combined in advance as a set. The color scheme image may also be understood as a predetermined color scheme pattern.
The combination of sample colors may be linked with a specific impression, such as “cool”, “warm”, “soft”, or “hard”. The combination may include multiple selected colors that are likely to be used for an image making such impressions. The color may be the one that is empirically selected as a color linked to one of these impressions.
The color scheme image, if selected by the user, is determined and the color scheme image acquisition unit 12 then acquires the color scheme image selected by the user.
The user may thus intuitively understand the color scheme image M displayed as the color bar Cba.
The color distribution analysis unit 13 determines the color distribution of the processing target image and the color distribution of the color scheme image M. The color distribution may be understood as the feature value of the processing target image or the color scheme image M. The color distribution may thus be represented by the mean, dispersion, or histogram of each color component forming the image. Used herein as the color distribution is an arithmetic mean as an example of the mean or a standard deviation as an example of the dispersion.
The color distribution analysis unit 13 performs color conversion on image information (input image data) that the display 20 uses to display the processing target image and color scheme image M. The image information is herein video data of RGB (red, green, and blue). For example, the RGB data is converted into Lαβ data. Specifically, chromaticity in the RGB color space is converted to chromaticity in the Lαβ space. The Lαβ color space is a color space that is designed to be statistically orthogonal by analyzing, in terms of a component, LMS complex response to a nature image. The Lαβ color space is invented based on human perception. In this case, L, α, and β respectively represent value (L), yellow-blue axis (α), and red-green axis (β).
Let (Ls, αs, βs) represent pixel values of the processing target image and (Lt, αt, (βt), pixel values of the color scheme image M.
The color distribution analysis unit 13 calculates the arithmetic mean of the pixel values (Ls, αs, βs) of the processing target image and the arithmetic mean of the pixel values (Lt, αt, βt) of the color scheme image M. The calculation operation is expressed in upper and lower equations (1). The upper equation (1) expresses the arithmetic mean of (Ls, αs, βt) and the lower equation (1) expresses the arithmetic mean of (Lt, αt, βt).
(
(
The color distribution analysis unit 13 calculates the standard deviations (σs,L, σs,α, σs,β) of the pixel values (Ls, αs, βs) of the processing target image and the standard deviations (σt,L, σt,α, σt,β) of the pixel values (Lt, αt, βt) of the color scheme image M.
Turning back to
Specifically, the color adjusting unit 14 converts the pixel values (Ls, αs, βs) of the processing target image to the pixel values (Lo, αo, βo) in the color conversion, using the arithmetic mean and standard deviation in accordance with equations (2):
The display image creation unit 15 creates image information on the pixel values color-adjusted by the color adjusting unit 14 and outputs the image information. The image information subsequent to the color adjustment is transmitted to the display 20. The display 20 thus displays an image in accordance with the image information.
Through the above process, the color distribution of the color scheme image M is reflected on the color distribution of the processing target image. The color adjustment is thus performed to modify the impression of the processing target image to the impression based on the color scheme image M. According to the first exemplary embodiment, the color distribution analysis unit 13 and color adjusting unit 14 convert the image information expressed by chromaticity in the RGB color space into the image information in the Lαβ color space and perform the process using chromaticity in the Lαβ color space. The disclosure is not limited to this method. The process may be performed through the conversion from the RGB color space to the RGB color space or may be performed using chromaticity in L*a*b* color space.
The color scheme image M is not limited to the one illustrated in
The sample color Mc may not necessarily be displayed as the color scheme image M but may be presented to the user as the image information. In such a case, the display screen 21 in the display 20 displays the image information, such as RGB=(0, 50, 100), (50, 50, 200), and (200, 100, 0).
When the color distribution of the color scheme image M is reflected on the color distribution of the processing target image, the color adjustment may be performed using the weight of each of the sample colors Mc forming the color scheme image M. For example, among the sample colors Mc, a color closer to a color that is included at the highest occurrence of frequency in the processing target image is weighted more heavily than other colors. In this case, the color-adjusted image is likely to be more natural.
Weights of the sample colors Mc may be predetermined. The color scheme image M may be displayed with the weight represented by area size. An area filled with each sample color of the sample color Mc is used as a weight when the process is performed. The user thus intuitively understands the weights.
The areas may be set to be modifiable by the user. In addition to the sample colors Mc prepared in advance, the user may further add another sample color Mc.
A processing target image H is displayed on the left-hand side portion of
According to the first exemplary embodiment, the processing target image H and the color scheme image M serving as an example of multiple sample colors Mc are displayed side by side. The color adjustment is thus performed in accordance with the color scheme image M selected by the user.
The layout of the processing target image H, the color scheme image M, and the color-adjusted processing target image H′ on the screen is identical to the layout in
A second exemplary embodiment is described below. According to the second exemplary embodiment, the user selects a sense term that represents an impression of an image and the sample colors Mc are acquired in accordance with the sense term.
As illustrated in
The term conversion unit 16 converts a sense term selected by the user into the sample colors Mc. The sense term is an example of term and is a word that expresses the impression of an image. The sense term and the sample colors Mc are linked to a predetermined sense and the linking is stored on a memory. The memory may be included in the image processing apparatus 10. The memory may be an external apparatus, such as a cloud server, and the term conversion unit 16 may download the linking from the external apparatus.
The preference model is a classification of images that a person may have on an object in terms of preference. The preference model disclosed in “Understanding Customer Preferences and Designing Sales Materials Using Preference Model”, Fuji Xerox Technical Report No. 23 2014 is described herein. This preference model represents the image with a map Mp defined by two mutually orthogonal axes WARM-COOL and SOFT-HARD. The sense terms Ky, such as “lovely”, “romantic”, “cute”, and the like are placed on the map Mp. The terms are placed where the sense term Ky and an image represented by the preference model match. The two axes may be determined in accordance with any criteria.
The color scheme image M illustrated in
When the user has selected one of the sense terms Ky on the map Mp, the color scheme image M is determined and the color adjustment is performed.
The user may select the sense term Ky by touching a region on the map Mp labeled with the sense term Ky.
When multiple color scheme images M, such as two color bars Cba2 and Cba3, are displayed as illustrated in
Two color bars Cba4 and Cba5 are displayed as the color scheme images M and the user may be enabled to select one of the two. The color scheme images M may be displayed in advance or when the user touches the color scheme images M.
The map Mp does not include the color scheme image M including the sample colors Mc but includes the color scheme image M including a single sample color Mc. The sample color Mc is monochrome and may be associated with sepia tone. When the arithmetic mean and standard deviation are calculated, the calculation may be performed in a manner such that the monochrome image has subtle gradations. Alternatively, the chromaticity of the monochrome may be simply applied.
Referring to
Referring to
Referring to
A third exemplary embodiment is described below. According to the third exemplary embodiment, the user may specify a region where the color adjustment is to be performed on the processing target image H.
Referring to
In response to an instruction from the user, the region specifying unit 17 specifies a region that the user may or may not desire to perform the color adjustment in the processing target image H. Specifically, if the user specifies in the processing target image H the region on which the user desires to make the color adjustment, the region is going to undergo the color adjustment while the other region is going to not. If the user specifies in the processing target image H the region on which the user does not desire to make the color adjustment, the region is going to not undergo the color adjustment while the other region is going to. The latter case is described below. The former case is identical to the latter case except that the region to be color-adjusted or the region not to be color-adjusted are reversed.
If the user specifies in the processing target image H the region where the user does not desire to make the color adjustment, the user may specify the region on the processing target image H displayed on the display screen 21, using the input apparatus 30, such as a mouse. The region specifying unit 17 creates a mask on the region specified by the user.
A fourth exemplary embodiment is described below. According to the fourth exemplary embodiment, a user interface (UI) used to actually perform the color adjustment is described.
The processing target image H (herein an original image) is displayed on the top-left portion of the display screen 21 and the color-adjusted processing target image H′ (herein a reproduced image) is displayed on the top-right portion of the display screen 21. A list of the sense terms Ky is displayed on the bottom portion of the display screen 21. If the user presses a radio button Rb, a corresponding sense term Ky is selected and a corresponding color scheme image M is selected. The color scheme image M is not displayed herein. Alternatively, a check button may be used instead of the radio button.
In comparison with the first example of the screen in
Process of Image Processing System
The process of the image processing system 1 is described below.
The color scheme image acquisition unit 12 acquires the image information on the color scheme image M (step S102). According to the first exemplary embodiment, the user selects the color bar Cba or the color block Cbr as the color scheme image M. According to the second exemplary embodiment, the user selects the sense term Ky. In this case, the term conversion unit 16 retrieves the color scheme image M from the memory in accordance with the sense term Ky and transfers the sense term Ky to the color scheme image acquisition unit 12.
The color distribution analysis unit 13 determines the color distributions for the processing target image H and the color scheme image M (step S103). For example, the color distribution analysis unit 13 determines the arithmetic mean and the standard deviation as the color distribution.
The color adjusting unit 14 performs the color adjustment to reflect the color scheme of the color scheme image M on the color scheme of the processing target image H (step S104). The display image creation unit 15 creates the image information color-adjusted by the color adjusting unit 14 and then outputs the color-adjusted image information (step S105).
According to the exemplary embodiments, the image processing apparatus 10 selects the color scheme image M that reflects the sample colors. The user may thus easily color-adjust the processing target image H. According to the second exemplary embodiment, the user may easily perform the color adjustment on the processing target image H by selecting the sense term Ky.
The workload of the user is reduced more by reflecting the color scheme pattern prepared in advance on the color scheme of the processing target image H than when the user adjusts the color of the processing target image H and the modified color.
Program
The process of the image processing apparatus 10 of the exemplary embodiments is implemented when software resources cooperate with hardware resources. Specifically, the CPU in the image processing apparatus 10 executes a program implementing the functions of the image processing apparatus 10 and thus performs the functions.
The process of the image processing apparatus 10 may be construed as a program that causes a computer to implement the function of determining a color distribution of the processing target image H and a color distribution of the sample colors Mc prepared in advance as a set and a function of performing an operation to modify the color of the processing target image H in accordance with the color distribution of the processing target image H and the color distribution of the sample colors Mc.
In the exemplary embodiments described above, the arithmetic mean is used as the mean. Alternatively, the geometric mean may be used. The standard deviation is used as the dispersion. Alternatively, other statistics, such as root-mean-square values or variance, may be used.
In the exemplary embodiments described above, the color distribution analysis unit 13 converts the RGB data into Lαβ data. Any chromaticity data, if separable into a chromaticity component and a luminance component, may be used instead of the Lαβ data. For example, the RGB data may be converted into CIE L*a*b* data, IPT data, CAMO2 data, or HSV data.
In the exemplary embodiments above, the term “processor” refers to hardware in a broad sense. Examples of the processor includes general processors (e.g., CPU: Central Processing Unit), dedicated processors (e.g., GPU: Graphics Processing Unit, ASIC: Application Specific Integrated Circuit, FPGA: Field Programmable Gate Array, and programmable logic device).
In the exemplary embodiments above, the term “processor” is broad enough to encompass one processor or plural processors in collaboration which are located physically apart from each other but may work cooperatively. The order of operations of the processor is not limited to one described in the exemplary embodiments above, and may be changed.
The foregoing description of the exemplary embodiments of the present disclosure has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The embodiments were chosen and described in order to best explain the principles of the disclosure and its practical applications, thereby enabling others skilled in the art to understand the disclosure for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the disclosure be defined by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
JP2020-058482 | Mar 2020 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
20070216773 | Kojima | Sep 2007 | A1 |
20080231876 | Harada | Sep 2008 | A1 |
20170048400 | Berfanger | Feb 2017 | A1 |
20190279402 | Panetta | Sep 2019 | A1 |
20190301941 | Kawabata | Oct 2019 | A1 |
Number | Date | Country |
---|---|---|
2011-86092 | Apr 2011 | JP |
2011-248641 | Dec 2011 | JP |
Entry |
---|
Ozawa, Kazushi et al., “Understanding Customer Preferences and Designing Sales Materials Using Preference Models” No. 23 pp. 4-15, 2014. |
Number | Date | Country | |
---|---|---|---|
20210304454 A1 | Sep 2021 | US |