JP2008227897A - Unit and method for processing image - Google Patents

Unit and method for processing image Download PDF

Info

Publication number
JP2008227897A
JP2008227897A JP2007062992A JP2007062992A JP2008227897A JP 2008227897 A JP2008227897 A JP 2008227897A JP 2007062992 A JP2007062992 A JP 2007062992A JP 2007062992 A JP2007062992 A JP 2007062992A JP 2008227897 A JP2008227897 A JP 2008227897A
Authority
JP
Japan
Prior art keywords
image data
image
correction amount
inspection
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2007062992A
Other languages
Japanese (ja)
Inventor
Atsushi Hoshii
淳 星井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007062992A priority Critical patent/JP2008227897A/en
Publication of JP2008227897A publication Critical patent/JP2008227897A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To output an image easily by applying correction to a desired image in the same way. <P>SOLUTION: Deviation of color used in a reference image is detected for each inspection region, in a plurality of inspection regions set in a color space. Based on the deviation of use detected for each inspection region, the amount of correction applied to the reference image is estimated, and image data are corrected based on the estimated amount of correction, thus estimating the amount of correction applied to the reference image, even if there are no uncorrected image data, and hence, correcting user's image data to have similar impressions as those of the reference image for output. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像データを補正する技術に関する。   The present invention relates to a technique for correcting image data.

今日では、画像はデジタルデータの形態(すなわち画像データ)で取り扱われることが多くなっており、これに伴って、画像データを画像として出力する際にも、そのまま出力するのではなく、より好ましい印象の画像となるように、何らかの補正処理を施して出力されることが通常となっている。そして近年では更に進んで、画像を出力する際に画像データに施された補正処理の内容は、画像の構図や描かれた(あるいは撮影された)対象と並んで、画像の印象を決定づける重要な要素となっている。   Nowadays, images are often handled in the form of digital data (that is, image data). Accordingly, when image data is output as an image, it is not output as it is, but a more favorable impression. In general, the image is output after being subjected to some correction processing so as to be an image. In recent years, the content of correction processing applied to image data when outputting an image is important in determining the impression of the image along with the composition of the image and the drawn (or photographed) object. It is an element.

尚、本明細書では、好ましい印象の画像とするために、画像データに施される補正処理のことを「絵作り」と称することにする。画像データを出力する際には、例えば機器の特性の違いを吸収するために、画像データに何らかの変換が行われることが通常であるが、ここでいう「絵作り」とは、このように画像データを正しく再現するために行われる変換を越えて、より好ましい印象の画像とするために施される全ての画像変換を含んだ広い概念である。   In the present specification, the correction processing applied to the image data in order to obtain a preferable impression image is referred to as “picture making”. When outputting image data, for example, some conversion is usually performed on the image data in order to absorb differences in the characteristics of the device. It is a broad concept that includes all image transformations that are performed to produce a more favorable image beyond the transformations that are performed to correctly reproduce the data.

このように絵作りは、画像の印象を決定づける重要な要素となっているにも拘わらず、適切な絵作りを行うためには高度な専門知識や経験が必要であるため、画像に応じた適切な絵作りを行うことは、プロのカメラマンやクリエータなどの専門家でなければ難しい。そこで、専門家がいろいろな画像に対して行った絵作りの内容を記憶しておき、出力しようとする画像に近い画像を選択して、選択した画像に対して記憶されている内容で絵作りを行う技術が提案されている(特許文献1)。また、専門家が行った絵作りの内容を正確に抽出するための技術も提案されている(特許文献2)。   Despite the fact that picture making is an important factor that determines the impression of an image, advanced expertise and experience are required to make an appropriate picture. It is difficult to make a simple picture unless you are an expert such as a professional photographer or creator. Therefore, memorize the contents of the picture making performed by various experts on various images, select an image close to the image to be output, and make the picture making with the contents stored for the selected image. A technique for performing the above has been proposed (Patent Document 1). In addition, a technique for accurately extracting the contents of picture making performed by an expert has been proposed (Patent Document 2).

特開2006−005766号公報JP 2006-005766 A 特許2001−045316号公報Japanese Patent No. 2001-045316

しかし、提案されている技術では、一般的なユーザーが好みの絵作りを自由に行うことは依然として困難であった。というのは、提案の技術では、専門家が行った絵作りの内容が予め記憶されているか、若しくは、専門家の絵作りの内容を抽出するために、絵作り前の画像データと絵作り後の画像データとを入手可能であることが前提となる。ところが実際には、絵作りの内容は多分にノウハウ的な要素が強く、多数の絵作りの内容が選択可能に記憶されていることは稀であり、また、絵作り前後の画像データを入手できることも稀である。このため、一般的なユーザーが好みの絵作りを行って画像を出力することは依然として困難であるという問題があった。   However, with the proposed technology, it was still difficult for general users to freely create their favorite pictures. This is because in the proposed technology, the contents of the picture making performed by the expert are stored in advance, or in order to extract the contents of the picture making of the expert, the image data before the picture making and the after the picture making It is assumed that the image data can be obtained. In reality, however, the content of painting is often a know-how element, and it is rare that a large number of painting content is stored in a selectable manner, and image data before and after painting can be obtained. Is rare. For this reason, there is a problem that it is still difficult for a general user to make a favorite picture and output an image.

本発明は、従来技術が有する上述した課題を解決するためになされたものであり、一般的なユーザーが、好みの絵作りの画像を簡便に出力可能とする技術の提供を目的とする。   The present invention has been made in order to solve the above-described problems of the prior art, and an object of the present invention is to provide a technique that allows a general user to easily output an image of a favorite picture creation.

上述した課題の少なくとも一部を解決するために、本発明の画像処理装置は次の構成を採用した。すなわち、
画像データを受け取って補正を加える画像処理装置であって、
所定の色空間内に複数の検査領域を設定する検査領域設定手段と、
予め選択された参照画像の画像データを解析することにより、前記検査領域内の色彩の使用頻度の偏りを、該検査領域毎に検出する参照画像解析手段と、
前記検査領域毎に検出した使用頻度の偏りに基づいて、前記画像データに加える補正量を決定する補正量決定手段と、
前記決定された補正量に基づいて、前記受け取った画像データの補正を実行する補正実行手段と
を備えることを要旨とする。
In order to solve at least a part of the problems described above, the image processing apparatus of the present invention employs the following configuration. That is,
An image processing apparatus that receives image data and applies correction,
Inspection area setting means for setting a plurality of inspection areas in a predetermined color space;
Analyzing reference image data of a reference image selected in advance, a reference image analysis means for detecting a bias in use frequency of colors in the inspection region for each inspection region;
A correction amount determining means for determining a correction amount to be added to the image data based on a bias in use frequency detected for each inspection region;
And a correction execution means for executing correction of the received image data based on the determined correction amount.

また、上記の画像処理装置に対応する本発明の画像処理方法は、
画像データを受け取って補正を加える画像処理方法であって、
所定の色空間内に複数の検査領域を設定する工程と、
予め選択された参照画像の画像データを解析することにより、前記検査領域内の色彩の使用頻度の偏りを、該検査領域毎に検出する工程と、
前記検査領域毎に検出した使用頻度の偏りに基づいて、前記画像データに加える補正量を決定する工程と、
前記決定された補正量に基づいて、前記受け取った画像データの補正を実行する工程と
を備えることを要旨とする。
The image processing method of the present invention corresponding to the above image processing apparatus is
An image processing method for receiving and correcting image data,
A step of setting a plurality of inspection areas in a predetermined color space;
Analyzing the pre-selected reference image image data to detect a bias in use frequency of colors in the inspection region for each inspection region;
Determining a correction amount to be added to the image data based on a bias in use frequency detected for each inspection area;
And a step of correcting the received image data based on the determined correction amount.

かかる本発明の画像処理装置および画像処理方法においては、参照画像に使用されている色彩の使用頻度の偏りを、色空間内に複数設定された検査領域内で、検査領域毎に検出する。そして、検査領域毎に検出した使用頻度の偏りに基づいて、参照画像に加えられた補正量を推定し、推定した補正量補正量に基づいて、画像データの補正を行う。   In the image processing apparatus and the image processing method according to the present invention, a deviation in the usage frequency of the colors used in the reference image is detected for each inspection region within a plurality of inspection regions set in the color space. Then, the correction amount added to the reference image is estimated based on the bias in the usage frequency detected for each inspection region, and the image data is corrected based on the estimated correction amount correction amount.

このようにして参照画像の補正量を推定してやれば、補正前の画像データがなくとも、参照画像に加えられた補正量を推定することができる。通常は、好ましい印象に補正された参照画像を見つけても、補正前の画像データがなければ、どのように補正されているのかは分からないので、手持ちの画像データを同じような印象が得られるように補正することはできないところを、本発明の画像処理装置および画像処理装置では、手持ちの画像データを参照画像と同じような印象の画像に補正することが可能となる。   If the correction amount of the reference image is estimated in this way, the correction amount added to the reference image can be estimated even if there is no image data before correction. Normally, even if a reference image corrected to a favorable impression is found, if there is no image data before correction, it is not known how it is corrected, so a similar impression can be obtained with the image data on hand. However, in the image processing apparatus and the image processing apparatus of the present invention, it is possible to correct the image data on hand to an image having the same impression as the reference image.

また、かかる本発明の画像処理装置においては、色空間内に少なくとも色相を異ならせて設定された複数の検査領域について、参照画像で使用されている色彩の使用頻度の偏りを、検査領域毎に検出した後、検出した使用頻度の偏りに基づいて、色相についての補正量を決定して、画像データを補正することとしても良い。ここで色空間としては、明度、色相、彩度の3つの要素を、直接的あるいは間接的に表現可能であれば、どのような色空間であってもよく、例えば、RGB色空間、Lab色空間、CMY色空間、HSV色空間、HSL色空間、YCC色空間Luv色空間、XYZ色空間などを用いることができる。   Further, in the image processing apparatus of the present invention, with respect to a plurality of inspection areas set with at least different hues in the color space, the use frequency bias of colors used in the reference image is determined for each inspection area. After the detection, the correction amount for the hue may be determined based on the detected bias in the usage frequency, and the image data may be corrected. Here, the color space may be any color space as long as the three elements of lightness, hue, and saturation can be expressed directly or indirectly, for example, RGB color space, Lab color, and the like. Space, CMY color space, HSV color space, HSL color space, YCC color space Luv color space, XYZ color space, and the like can be used.

色相を補正すると、画像の印象に大きく影響を与えることから、少なくとも色相を異ならせて設定した複数の検査領域に基づいて補正量を推定すれば、好ましい印象が得られるように画像データを補正することが可能となる。   Correcting the hue greatly affects the impression of the image. Therefore, if the correction amount is estimated based on a plurality of inspection areas set with different hues, the image data is corrected so that a favorable impression is obtained. It becomes possible.

また、かかる本発明の画像処理装置においては、次のようにして補正量を決定しても良い。先ず、検査領域としては、光の三原色に相当する赤色(R)、緑色(G)、青色(B)の各色相についての検査領域を設定しておく。また、参照画像の画像データは、RGBの各成分によって表されたRGB画像データの形態で受け取って、RGBの各色相の検査領域での頻度分布を検出する。そして、Rの検査領域で検出された頻度分布と、RGB画像データのR成分との偏差に基づいて、Rの色相についての補正量を決定する。同様に、Gの検査領域で検出された頻度分布とRGB画像データのG成分との偏差に基づいて、Gの色相についての補正量を決定し、Bの検査領域での頻度分布と、RGB画像データのB成分との偏差からBの色相についての補正量を決定してもよい。   In the image processing apparatus of the present invention, the correction amount may be determined as follows. First, as the inspection area, inspection areas for the red (R), green (G), and blue (B) hues corresponding to the three primary colors of light are set. Further, the image data of the reference image is received in the form of RGB image data represented by RGB components, and the frequency distribution in the inspection region of each hue of RGB is detected. Then, the correction amount for the R hue is determined based on the deviation between the frequency distribution detected in the R inspection region and the R component of the RGB image data. Similarly, based on the deviation between the frequency distribution detected in the G inspection area and the G component of the RGB image data, a correction amount for the G hue is determined, and the frequency distribution in the B inspection area and the RGB image are determined. The correction amount for the hue of B may be determined from the deviation from the B component of the data.

画像データは、通常、RGBの各成分によって表現されることが多いから、画像データの補正量もRGBの各成分について求めておけば、画像データを簡単に補正することが可能となるので好ましい。   Since image data is usually often expressed by RGB components, it is preferable to obtain the correction amount of image data for each RGB component because the image data can be easily corrected.

更に本発明は、上述した画像処理方法を実現するためのプログラムをコンピュータに読み込ませ、所定の機能を実行させることにより、コンピュータを用いて実現することも可能である。従って、本発明は次のようなプログラムとしての態様も含んでいる。すなわち、上述した画像処理方法に対応する本発明のプログラムは、
画像データを受け取って補正を加える画像処理方法を、コンピュータを用いて実現させるプログラムであって、
所定の色空間内に複数の検査領域を設定する機能と、
予め選択された参照画像の画像データを解析することにより、前記検査領域内の色彩の使用頻度の偏りを、該検査領域毎に検出する機能と、
前記検査領域毎に検出した使用頻度の偏りに基づいて、前記画像データに加える補正量を決定する機能と、
前記決定された補正量に基づいて、前記受け取った画像データの補正を実行する機能と
をコンピュータにより実現することを要旨とする。
Furthermore, the present invention can be realized using a computer by causing a computer to read a program for realizing the above-described image processing method and executing a predetermined function. Therefore, the present invention also includes the following aspects as a program. That is, the program of the present invention corresponding to the image processing method described above is
A program for realizing an image processing method for receiving and correcting image data using a computer,
A function for setting a plurality of inspection areas in a predetermined color space;
A function of detecting a bias in use frequency of colors in the inspection area by analyzing image data of a reference image selected in advance, for each inspection area;
A function of determining a correction amount to be added to the image data based on a bias in use frequency detected for each inspection region;
The gist of the present invention is that a function of executing correction of the received image data is realized by a computer based on the determined correction amount.

かかるプログラムをコンピュータに読み込んで、上記の各機能を実現させれば、一般的なユーザーであっても、好みの絵作りの画像を簡便に出力することが可能となる。   If such a program is read into a computer and each of the above functions is realized, even a general user can easily output a favorite picture-making image.

以下では、上述した本願発明の内容を明確にするために、次のような順序に従って実施例を説明する。
A.装置構成:
B.画像出力処理:
C.変形例:
Hereinafter, in order to clarify the contents of the present invention described above, examples will be described in the following order.
A. Device configuration:
B. Image output processing:
C. Variation:

A.装置構成 :
図1は、本実施例の画像処理装置を搭載した印刷装置10の外観形状を示す斜視図である。図示されるように、本実施例の印刷装置10は、スキャナ部100と、プリンタ部200と、スキャナ部100およびプリンタ部200の動作を制御する制御部300などから構成されている。スキャナ部100は、印刷された画像を読み込んで画像データを生成するスキャナ機能を有しており、プリンタ部200は、画像データを受け取って印刷媒体上に画像を印刷するプリンタ機能を有している。制御部300は、CPUを中心として、ROMや、RAM、デジタルデータをアナログ信号に変換するD/A変換器、更には、周辺機器との間でデータのやり取りを行うための周辺機器インターフェースPIFなどから構成されており、スキャナ部100やプリンタ部200の動作を制御する機能を有している。また、制御部300は、スキャナ部100で読み取った画像の画像データや、外部から供給された画像データに対して所定の画像処理を施して、プリンタ部200から画像を出力することが可能である。
A. Device configuration :
FIG. 1 is a perspective view showing an external shape of a printing apparatus 10 equipped with the image processing apparatus of this embodiment. As illustrated, the printing apparatus 10 according to the present exemplary embodiment includes a scanner unit 100, a printer unit 200, a control unit 300 that controls operations of the scanner unit 100 and the printer unit 200, and the like. The scanner unit 100 has a scanner function of reading a printed image and generating image data, and the printer unit 200 has a printer function of receiving image data and printing an image on a print medium. . The control unit 300 is a CPU, a ROM, a RAM, a D / A converter that converts digital data into an analog signal, and a peripheral device interface PIF for exchanging data with peripheral devices. And has a function of controlling operations of the scanner unit 100 and the printer unit 200. Further, the control unit 300 can perform predetermined image processing on image data of an image read by the scanner unit 100 or image data supplied from the outside, and output an image from the printer unit 200. .

B.画像出力処理 :
図2は、印刷装置10で画像を出力する際に行われる画像出力処理の流れを示したフローチャートである。かかる処理は、印刷装置10内の制御部300によって実行される処理である。
B. Image output processing:
FIG. 2 is a flowchart showing the flow of image output processing performed when the printing apparatus 10 outputs an image. Such a process is a process executed by the control unit 300 in the printing apparatus 10.

図示されるように、本実施例の画像出力処理では、先ず初めに参照画像の画像データを取得する(ステップS100)。ここで参照画像とは、画像を出力しようとする者によって、好ましい画像として予め選択された画像である。また、参照画像の画像データは、参照画像をスキャナ部100によって読み込むことによって取得しても良いし、あるいは予め取得して記憶されている画像データを読み込んで取得することも可能である。   As shown in the figure, in the image output process of this embodiment, first, image data of a reference image is acquired (step S100). Here, the reference image is an image selected in advance as a preferable image by a person who intends to output the image. The image data of the reference image may be acquired by reading the reference image with the scanner unit 100, or may be acquired by reading image data that has been acquired and stored in advance.

次いで、取得した参照画像の画像データを解析することにより、サンプリング色域でのヒストグラムを取得する(ステップS102)。ここでサンプリング色域とは、色空間(ここでは、Lab色空間とする)内に予め設定されている色域である。カラー画像データは、通常、RGB各色成分によって表現されることを考慮して、本実施例では、赤(R)色を表す色域、緑(G)色を表す色域、青(B)色を表す色域に、それぞれサンプリング色域が設定されている。もちろん、サンプリング色域は、このような色の色域に限らず、例えばシアン(C)色や、マゼンタ(M)色、イエロ(Y)色の色域や、紫色、オレンジ色の色域など、画像の印象を作用するような色彩の部分に設定することができる。尚、これらサンプリング色域は、明度や彩度があまりに高い領域や低い領域を避けて、設定しておくことが望ましい。   Next, a histogram in the sampling color gamut is acquired by analyzing the image data of the acquired reference image (step S102). Here, the sampling color gamut is a color gamut preset in a color space (here, referred to as a Lab color space). In consideration of the fact that color image data is usually expressed by RGB color components, in this embodiment, a color gamut representing a red (R) color, a color gamut representing a green (G) color, and a blue (B) color. Sampling color gamuts are respectively set in the color gamuts representing Of course, the sampling color gamut is not limited to such a color gamut. For example, a cyan (C) color, a magenta (M) color, a yellow (Y) color gamut, a purple or orange color gamut, or the like. , It can be set to a color portion that affects the impression of the image. Note that it is desirable to set these sampling color gamuts avoiding regions where the lightness and saturation are too high and low.

また、サンプリング色域を設定する色空間についても、Lab色空間に限られるものではなく、例えば、RGB色空間、CMY色空間、HSV色空間、HSL色空間、YCC色空間、Luv色空間、XYZ色空間など、種々の色空間内にサンプリング色域を設定することも可能である。   Also, the color space for setting the sampling color gamut is not limited to the Lab color space. For example, the RGB color space, CMY color space, HSV color space, HSL color space, YCC color space, Luv color space, XYZ It is also possible to set a sampling color gamut in various color spaces such as a color space.

図3には、Lab色空間内にRGB各色用の3つのサンプリング色域が設定されている様子が概念的に示されている。本実施例では、これらサンプリング色域でのヒストグラムを、次のようにして取得する。先ず、参照画像の画像データを取得して、各画素の色彩をLab色空間内にプロットすることにより、参照画像で使用されている色彩のヒストグラムを生成する。次いで、生成したヒストグラムから、サンプリング色域の部分を切り出すことにより、それぞれのサンプリング色域でのヒストグラムを取得する。もちろん、参照画像の画像データを解析して、初めからサンプリング色域の部分だけのヒストグラムを生成するようにしても良い。   FIG. 3 conceptually shows how three sampling color gamuts for each color of RGB are set in the Lab color space. In this embodiment, histograms in these sampling color gamuts are acquired as follows. First, the image data of the reference image is obtained, and the color histogram used for the reference image is generated by plotting the color of each pixel in the Lab color space. Next, by extracting a portion of the sampling color gamut from the generated histogram, a histogram in each sampling color gamut is acquired. Of course, the image data of the reference image may be analyzed to generate a histogram only for the sampling color gamut from the beginning.

図4は、R用のサンプリング色域で取得されたヒストグラムの一例を概念的に示した説明図である。図示した例では、参照画像に用いられている赤色は、少しだけ黄色がかった赤色が多用されている。G用のサンプリング色域や、B用のサンプリング色域についてもヒストグラムを取得することにより、参照画像にはどのような緑色が態様されているか、青色についてはどのような青色が多用されているかを知ることができる。   FIG. 4 is an explanatory diagram conceptually showing an example of a histogram acquired in the sampling color gamut for R. In the example shown in the drawing, the red used for the reference image is often a slightly yellowish red. By acquiring histograms for the sampling color gamut for G and the sampling color gamut for B as well, what kind of green color is used in the reference image, and what kind of blue color is frequently used for blue I can know.

図2に示した画像出力処理では、このようにサンプリング色域毎にヒストグラムを取得すると、それぞれのサンプリング色域について、ヒストグラムの偏りを取得する(ステップS104)。ヒストグラムの偏りは、本実施例では、次のような方法によって算出する。先ず、サンプリング色域内で、最も使用頻度の高い色彩の座標値を検出する。図4に示した例では、少しだけ黄色がかった赤色に対応する座標値が検出される。そして、サンプリング色域内に予め設定しておいた基準の赤色の座標値との偏差を算出する。基準の赤色としては、サンプリング色域内の中央にある色彩を用いることができる。あるいは、カラー画像データの規格によって規定されているRの色を、基準の赤色として用いることもできる。   In the image output process shown in FIG. 2, when a histogram is acquired for each sampling color gamut in this way, the histogram bias is acquired for each sampling color gamut (step S104). In this embodiment, the histogram bias is calculated by the following method. First, the coordinate value of the most frequently used color is detected within the sampling color gamut. In the example shown in FIG. 4, coordinate values corresponding to a slightly yellowish red are detected. Then, a deviation from a reference red coordinate value preset in the sampling color gamut is calculated. As the reference red color, the color at the center in the sampling color gamut can be used. Alternatively, the R color defined by the color image data standard can be used as the reference red color.

こうしてサンプリング色域毎に得られたヒストグラムの偏りに基づいて、参照画像に、どのような補正が施されているのか、換言すれば、参照画像の補正量を推定する(ステップS106)。ここで、本実施例の画像出力処理の中で、サンプリング色域毎に得られたヒストグラムの偏りから、参照画像に加えられた補正量を推定している原理について説明する。   Based on the bias of the histogram thus obtained for each sampling color gamut, what kind of correction is performed on the reference image, in other words, the amount of correction of the reference image is estimated (step S106). Here, the principle of estimating the correction amount added to the reference image from the bias of the histogram obtained for each sampling color gamut in the image output processing of the present embodiment will be described.

参照画像に加えた補正量を知るためには、通常は、補正前の画像データと補正後の画像データとが分かっていなければならないと考えるものである。そして、こう考えると、たとえ大まかな補正量を推定するのであっても、何らかの形で補正前の画像データを推定する必要があると考えるものである。しかし見方を変えて、次のように考えれば、補正前の画像データを推定せずとも、参照画像に加えられた大まかな補正量を推定することが可能である。例えば、図4に示した例では、参照画像に多用されている赤色は、少し黄色がかった赤色である。そして、このような赤色が最も多く使用されていることが、参照画像の印象に大きな影響を与えていると考えることができる。同様に、緑色や青色についても、最も多く使用されている緑色がどのような緑色なのか、あるいは最も多く使用されている青色がどのような青色なのかということが、参照画像の印象に大きな影響を与えていると考えることができ、これらの効果が組み合わさって、参照画像の印象を決定づけていると考えられる。そこで、例えば赤色であれば、少し黄色がかった赤色となるように画像データを補正してやる。具体的な補正量は、R用のサンプリング色域内に予め設定しておいた基準の赤色が、参照画像から得られた少し黄色がかった赤色となるように決めてやればよい。   In order to know the correction amount applied to the reference image, it is usually considered that the image data before correction and the image data after correction must be known. In view of this, even if a rough correction amount is estimated, it is considered that it is necessary to estimate the image data before correction in some form. However, if the viewpoint is changed as follows, it is possible to estimate a rough correction amount added to the reference image without estimating the image data before correction. For example, in the example shown in FIG. 4, the red color frequently used in the reference image is a slightly yellowish red color. Then, it can be considered that the most frequently used red color has a great influence on the impression of the reference image. Similarly, for green and blue, what kind of green is the most used green, or what is the most used blue is a big influence on the impression of the reference image. It is considered that these effects combine to determine the impression of the reference image. Therefore, for example, if the color is red, the image data is corrected so that the color is slightly yellowish red. The specific correction amount may be determined so that the standard red color set in advance in the sampling color gamut for R becomes a slightly yellowish red color obtained from the reference image.

図5には、このようにして赤色についての補正量を決定している様子が概念的に示されている。図示した例では、基準の赤色として、RGB画像データの規格であるsRGB規格に規定されたRが用いられている。sRGB規格のRGB画像データは、規格に規定されたR,G,Bの組合せによって表現されているから、sRGB画像データの画像で用いられている赤色は、常識的には規格に規定されたRを中心として分布している場合が多いものと考えられる。そこで、sRGB規格のRが、参照画像から得られた少し黄色がかった赤色と一致するように補正することで、全体として参照画像の印象に近づけることが可能である。他の色(緑色、青色)についても、同様にして決定した補正量して、それぞれの色を補正することで、もちろん正確ではないにしろ、全体として参照画像の印象に近付くように画像を補正することが可能となる。   FIG. 5 conceptually shows how the correction amount for red is determined in this way. In the illustrated example, R defined in the sRGB standard, which is a standard for RGB image data, is used as the reference red color. Since the RGB image data of the sRGB standard is expressed by a combination of R, G, and B specified in the standard, the red color used in the image of the sRGB image data is commonly R based on the standard. It is thought that there are many cases where the distribution is centered around. Therefore, it is possible to approximate the impression of the reference image as a whole by correcting R of the sRGB standard so as to match the slightly yellowish red color obtained from the reference image. For other colors (green and blue), the correction amount determined in the same way and correcting each color will correct the image so that it approaches the impression of the reference image as a whole, although it is not accurate. It becomes possible to do.

また、画像データは、例えばホワイトバランスを取る場合のように、色の偏りを補正して、より自然な印象の画像となるように自動的に補正された状態で、出力されることが通常である。同様に、表現可能な階調範囲のごく一部しか使われていない場合には、コントラストを調整する補正が自動的に行われた状態で、出力されることが通常である。結局、特に意図して画像データを補正しない限りは、RGB画像データのヒストグラムは自ずから一定の傾向を呈するようになる。そこで、単純に、sRGBに規格のR,G,Bを基準の色として用いるのではなく、これら規格の色に対して、半ば自動的に行われる各種の補正を考慮することにより、各サンプリング色域の基準の色を設定しておくこととしても良い。そして、このようにして設定しておいた基準の色が、それぞれのサンプリング色域内で得られた参照画像を特徴付ける色と一致するように補正してやれば、参照画像により近い印象の画像を得ることが可能となる。   Also, the image data is usually output in a state in which the color deviation is corrected and the image is automatically corrected so as to obtain a more natural impression image, for example, when white balance is taken. is there. Similarly, when only a small part of the representable gradation range is used, it is usually output in a state in which correction for adjusting the contrast is automatically performed. As a result, unless the image data is corrected specifically, the histogram of the RGB image data naturally exhibits a certain tendency. Therefore, instead of simply using standard R, G, and B as standard colors for sRGB, each sampling color is considered by considering various corrections that are performed semi-automatically for these standard colors. It is also possible to set a reference color for the area. If the standard color set in this way is corrected so as to match the color characterizing the reference image obtained in each sampling color gamut, an image with an impression closer to the reference image can be obtained. It becomes possible.

更に、逆の見方をすれば、このことは次のように考えることもできる。すなわち、特に意図した補正が加えられていなければ、各サンプリング色域のヒストグラムは、予め設定しておいた基準の色から大きくはズレない筈である。ところが、基準の色から大きなズレが発生しているのであれば、そのズレ量に近い補正が加えられていると考えられる。そして、このように考えれば、補正後の画像(すなわち参照画像)の画像データだけから、大まかな補正内容を推定することが可能となるのである。   Furthermore, from the opposite viewpoint, this can be considered as follows. That is, unless a particularly intended correction is applied, the histogram of each sampling color gamut should not deviate significantly from a preset reference color. However, if a large deviation occurs from the reference color, it is considered that a correction close to the deviation amount is applied. In this way, rough correction contents can be estimated from only the image data of the corrected image (that is, the reference image).

図2に示した画像出力処理のステップS106では、以上のような原理に基づいて、各サンプリング色域で検出されたヒストグラムの偏りから、図5に例示したようにして、参照画像に加えられた補正量を推定する。   In step S106 of the image output process shown in FIG. 2, based on the principle as described above, it is added to the reference image as illustrated in FIG. 5 from the bias of the histogram detected in each sampling color gamut. Estimate the correction amount.

尚、上述した説明では、sRGBの規格のRGB、あるいは、これら規格のRGBに対して半ば自動的に行われる各種の補正を考慮した色を、基準の色として用いることにより、参照画像に加えられた補正量を推定するものとした。しかし、必ずしもsRGB規格のRGBに限らず、その他の規格のRGBや、ユーザーが独自に設定したRGB(更には、これらRGBに各種補正を考慮した色)を基準の色として用いることも可能である。更に加えて、事前にユーザーが、自分の好みの色を設定しておき、その色を基準の色として用いることも可能である。   In the above description, sRGB standard RGB or colors that take into account various corrections that are automatically performed on these standard RGB colors are used as the reference color, thereby being added to the reference image. The amount of correction was estimated. However, it is not necessarily limited to the RGB of the sRGB standard, and other standard RGB or RGB uniquely set by the user (further, these RGB colors that take various corrections into account) can be used as reference colors. . In addition, it is also possible for the user to set his / her favorite color in advance and use that color as the reference color.

こうして参照画像に加えられた補正量を推定したら、その後は、通常の画像を出力する場合と同様な処理を行えばよい。以下、簡単に説明すると、出力しようとする画像データを取得する(ステップS108)。次いで、推定した補正量を用いて、画像データを補正する(ステップS110)。例えば、図5に示した例では、赤色の色相については、若干、黄色側の方向に色相を補正する。このとき、補正される領域と補正されない領域との境界で、色の不連続が発生しないように、補正量を徐々に減らすようにしても良い。   After the correction amount added to the reference image is estimated in this way, thereafter, the same processing as that for outputting a normal image may be performed. Briefly described below, image data to be output is acquired (step S108). Next, the image data is corrected using the estimated correction amount (step S110). For example, in the example shown in FIG. 5, for the red hue, the hue is slightly corrected in the direction of the yellow side. At this time, the correction amount may be gradually reduced so that color discontinuity does not occur at the boundary between the corrected region and the uncorrected region.

あるいは、参照画像から推定された補正量をそのまま用いるのではなく、一定の比率で補正量を減じて、画像データを補正することとしても良い。更には、推定した補正量を用いて補正した画像データと、補正していないオリジナルの画像データとを一定の比率で合成して、最終的な補正後の画像データとしてもよい。このように、推定した補正量を一定の比率で減じたり、補正後の画像データと補正前の画像データとを合成して最終的な画像データとすれば、結果的に補正量が抑制されるので、たとえ推定した補正量が不適切であった場合でも、大きく破綻することなく画像データを補正することが可能となる。   Alternatively, the correction amount estimated from the reference image may not be used as it is, but the correction amount may be reduced at a certain ratio to correct the image data. Furthermore, the image data corrected using the estimated correction amount and the original image data that has not been corrected may be combined at a fixed ratio to obtain final corrected image data. In this way, if the estimated correction amount is reduced by a certain ratio, or if the corrected image data and the uncorrected image data are combined into final image data, the correction amount is consequently suppressed. Therefore, even if the estimated correction amount is inappropriate, it is possible to correct the image data without causing major breakdown.

こうして画像データを補正したら、補正後の画像データに従って画像を出力する(ステップS112)。画像を出力する形態は、例えば印刷媒体上にインクドットを形成して画像を印刷する形態とすることもできるし、印刷媒体上にトナーを付着させて画像を印刷する形態とすることもできる。あるいは、印刷媒体ではなく、モニターやスクリーン上に色光による画像を表示する形態とすることも可能である。   When the image data is corrected in this way, an image is output according to the corrected image data (step S112). The form of outputting an image may be, for example, a form in which ink dots are formed on a print medium and the image is printed, or a form in which toner is attached to the print medium and the image is printed. Alternatively, it is also possible to display an image with colored light on a monitor or screen instead of a print medium.

以上に説明したように、本実施例の画像出力処理では、参照画像に加えられた補正量を、補正前の画像データを入手せずとも推定して、補正された画像を出力することができる。このため、たとえば好ましい印象の画像を入手するだけで、手持ちの画像データを、その画像に近い印象の画像となるように補正して出力することが可能となる。   As described above, in the image output process according to the present embodiment, the correction amount added to the reference image can be estimated without obtaining the image data before correction, and the corrected image can be output. . For this reason, it is possible to correct and output the image data on hand so that it becomes an image having an impression close to that image only by obtaining an image having a preferable impression, for example.

C.変形例 :
上述した実施例では、画像データを色相方向に補正するものとして説明したが、画像データを彩度方向あるいは明度方向に補正することも可能である。例えば、サンプリング色域を、色相方向ではなく彩度方向に複数設定しておき、各サンプリング色域内でのヒストグラムを求めることにより、彩度方向の補正量を推定しても良い。あるいは、図6に例示するように、サンプリング色域を色相毎に彩度方向に分割することによって、複数のサンプリング色域を設定しても良い。こうすれば、参照画像から、その画像に施された彩度方向の補正量を推定することが可能となる。もちろん、彩度方向および色相方向の両方の補正量を推定することも可能である。
C. Modified example:
In the above-described embodiments, the image data is corrected in the hue direction. However, it is also possible to correct the image data in the saturation direction or the brightness direction. For example, the correction amount in the saturation direction may be estimated by setting a plurality of sampling color gamuts in the saturation direction instead of the hue direction, and obtaining a histogram in each sampling color gamut. Alternatively, as illustrated in FIG. 6, a plurality of sampling gamuts may be set by dividing the sampling gamut in the saturation direction for each hue. In this way, it is possible to estimate the correction amount in the saturation direction applied to the image from the reference image. Of course, it is also possible to estimate the correction amount in both the saturation direction and the hue direction.

以上、本実施例の印刷装置について説明したが、本発明は上記すべての実施例および変形例に限られるものではなく、その要旨を逸脱しない範囲において種々の態様で実施することができる。   Although the printing apparatus of the present embodiment has been described above, the present invention is not limited to all the embodiments and modifications described above, and can be implemented in various modes without departing from the spirit of the present invention.

本実施例の画像処理装置を搭載した印刷装置の外観形状を示す斜視図である。1 is a perspective view showing an external shape of a printing apparatus equipped with an image processing apparatus according to an embodiment. 印刷装置で画像を出力する際に行われる画像出力処理の流れを示したフローチャートである。6 is a flowchart illustrating a flow of image output processing performed when an image is output by the printing apparatus. Lab色空間内にRGB各色用の3つのサンプリング色域が設定されている様子を概念的に示した説明図である。It is explanatory drawing which showed notionally the mode that three sampling color gamuts for each color of RGB were set in the Lab color space. R用のサンプリング色域で取得されたヒストグラムの一例を概念的に示した説明図である。It is explanatory drawing which showed notionally an example of the histogram acquired by the sampling color gamut for R. 赤色についての補正量を決定している様子を概念的に示した説明図である。It is explanatory drawing which showed notionally the mode that the correction amount about red was determined. 彩度方向に複数のサンプリング色域を設定した様子を例示した説明図である。It is explanatory drawing which illustrated a mode that the some sampling color gamut was set to the saturation direction.

符号の説明Explanation of symbols

10…印刷装置、 100…スキャナ部、
200…プリンタ部、 300…制御部
10 ... Printing device, 100 ... Scanner section,
200: Printer unit, 300: Control unit

Claims (5)

画像データを受け取って補正を加える画像処理装置であって、
所定の色空間内に複数の検査領域を設定する検査領域設定手段と、
予め選択された参照画像の画像データを解析することにより、前記検査領域内の色彩の使用頻度の偏りを、該検査領域毎に検出する参照画像解析手段と、
前記検査領域毎に検出した使用頻度の偏りに基づいて、前記画像データに加える補正量を決定する補正量決定手段と、
前記決定された補正量に基づいて、前記受け取った画像データの補正を実行する補正実行手段と
を備える画像処理装置。
An image processing apparatus that receives image data and applies correction,
Inspection area setting means for setting a plurality of inspection areas in a predetermined color space;
Analyzing reference image data of a reference image selected in advance, a reference image analysis means for detecting a bias in use frequency of colors in the inspection region for each inspection region;
A correction amount determining means for determining a correction amount to be added to the image data based on a bias in use frequency detected for each inspection region;
An image processing apparatus comprising: a correction execution unit that executes correction of the received image data based on the determined correction amount.
請求項1に記載の画像処理装置であって、
前記検査領域設定手段は、前記色空間内に少なくとも色相を異ならせて、前記複数の検査領域を設定する手段であり、
前記補正量決定手段は、前記検査領域毎に検出した前記使用頻度の偏りに基づいて、色相についての補正量を決定する手段である画像処理装置。
The image processing apparatus according to claim 1,
The inspection area setting means is a means for setting the plurality of inspection areas with at least different hues in the color space,
The correction amount determination means is an image processing apparatus which is a means for determining a correction amount for a hue based on the bias in use frequency detected for each inspection region.
請求項2に記載の画像処理装置であって、
前記検査領域設定手段は、光の三原色に相当する赤色(R)、緑色(G)、青色(B)の各色相について前記検査領域を設定する手段であり、
前記参照画像解析手段は、前記参照画像の画像データを、RGBの各成分によって表されたRGB画像データの形態で受け取って解析する手段であり、
前記補正量決定手段は、前記R,G,Bの各色相の検査領域で検出された使用頻度と、前記RGB画像データのRGB各成分との偏差に基づいて、RGBの各色相についての補正量を決定する手段である画像処理装置。
The image processing apparatus according to claim 2,
The inspection area setting means is a means for setting the inspection area for each hue of red (R), green (G), and blue (B) corresponding to the three primary colors of light,
The reference image analysis means is means for receiving and analyzing the image data of the reference image in the form of RGB image data represented by RGB components,
The correction amount determining unit is configured to correct a correction amount for each hue of RGB based on a deviation between the use frequency detected in the inspection region for each hue of R, G, and B and each RGB component of the RGB image data. An image processing apparatus as means for determining
画像データを受け取って補正を加える画像処理方法であって、
所定の色空間内に複数の検査領域を設定する工程と、
予め選択された参照画像の画像データを解析することにより、前記検査領域内の色彩の使用頻度の偏りを、該検査領域毎に検出する工程と、
前記検査領域毎に検出した使用頻度の偏りに基づいて、前記画像データに加える補正量を決定する工程と、
前記決定された補正量に基づいて、前記受け取った画像データの補正を実行する工程と
を備える画像処理方法。
An image processing method for receiving and correcting image data,
A step of setting a plurality of inspection areas in a predetermined color space;
Analyzing the image data of the reference image selected in advance, detecting a bias in the use frequency of the colors in the inspection region for each inspection region;
Determining a correction amount to be added to the image data based on a bias in use frequency detected for each inspection area;
An image processing method comprising: correcting the received image data based on the determined correction amount.
画像データを受け取って補正を加える画像処理方法を、コンピュータを用いて実現させるプログラムであって、
所定の色空間内に複数の検査領域を設定する機能と、
予め選択された参照画像の画像データを解析することにより、前記検査領域内の色彩の使用頻度の偏りを、該検査領域毎に検出する機能と、
前記検査領域毎に検出した使用頻度の偏りに基づいて、前記画像データに加える補正量を決定する機能と、
前記決定された補正量に基づいて、前記受け取った画像データの補正を実行する機能と
をコンピュータにより実現するプログラム。
A program for realizing an image processing method for receiving and correcting image data using a computer,
A function for setting a plurality of inspection areas in a predetermined color space;
A function of detecting a bias in the use frequency of the colors in the inspection region for each inspection region by analyzing image data of a reference image selected in advance;
A function of determining a correction amount to be added to the image data based on a bias in use frequency detected for each inspection area;
The computer implement | achieves the function which performs correction | amendment of the received image data based on the determined correction amount.
JP2007062992A 2007-03-13 2007-03-13 Unit and method for processing image Withdrawn JP2008227897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007062992A JP2008227897A (en) 2007-03-13 2007-03-13 Unit and method for processing image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007062992A JP2008227897A (en) 2007-03-13 2007-03-13 Unit and method for processing image

Publications (1)

Publication Number Publication Date
JP2008227897A true JP2008227897A (en) 2008-09-25

Family

ID=39845975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007062992A Withdrawn JP2008227897A (en) 2007-03-13 2007-03-13 Unit and method for processing image

Country Status (1)

Country Link
JP (1) JP2008227897A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016187069A (en) * 2015-03-27 2016-10-27 ブラザー工業株式会社 Image processing apparatus and computer program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016187069A (en) * 2015-03-27 2016-10-27 ブラザー工業株式会社 Image processing apparatus and computer program

Similar Documents

Publication Publication Date Title
EP1047263B1 (en) Color image reproduction with accurate inside-gamut colors and enhanced outside-gamut colors
US20070030499A1 (en) Color processing method and apparatus
US8477366B2 (en) Apparatus, method and medium outputting wide gamut space image
US8045242B2 (en) Color conversion apparatus and color conversion method
US8896892B2 (en) System and method for color calibration of a color printing system with recording media brightness compensation
JP4196212B2 (en) Image processing apparatus, image processing method, and image processing program
JP2005253072A5 (en)
US7733525B2 (en) Gamut mapping method and apparatus
JP2003324623A (en) Color conversion apparatus, program and table in the same, and table preparing apparatus and program in the same
JP2006129479A (en) System and method for color print
JP2007336537A (en) Image processor, image processing method, and image processing program
US8384961B2 (en) Method of creating color-mapping lookup table and color-mapping method using the same
US8456720B2 (en) Reducing noise induced by color mixing spot color recipe search
JP4944677B2 (en) Image processing apparatus, image processing method, and image processing program
JP2007280402A (en) Method and system for generating gray tones from color image data
US6567186B1 (en) Method for determining gray values in a printer
US9626604B2 (en) Method for dynamic printing process calibration
JP2008227897A (en) Unit and method for processing image
US7679782B2 (en) System and method for extracting grayscale data in accordance with a prescribed tolerance function
JP2008227898A (en) Unit and method for processing image
JP4692603B2 (en) Profile correction apparatus, profile correction program, and profile correction method
JP2007195015A (en) Color conversion apparatus, method, and program
US20100253960A1 (en) Sensitivity matrix determination via chain rule of differentiation
US11531855B2 (en) Image processing apparatus, image processing method, and storage medium
JP2007324861A (en) Apparatus and program of creating color conversion definition

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100601