JP4155290B2 - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP4155290B2
JP4155290B2 JP2005242270A JP2005242270A JP4155290B2 JP 4155290 B2 JP4155290 B2 JP 4155290B2 JP 2005242270 A JP2005242270 A JP 2005242270A JP 2005242270 A JP2005242270 A JP 2005242270A JP 4155290 B2 JP4155290 B2 JP 4155290B2
Authority
JP
Japan
Prior art keywords
correction data
predetermined number
unit
image
data
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.)
Expired - Fee Related
Application number
JP2005242270A
Other languages
Japanese (ja)
Other versions
JP2007060216A (en
Inventor
哲治 山口
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2005242270A priority Critical patent/JP4155290B2/en
Publication of JP2007060216A publication Critical patent/JP2007060216A/en
Application granted granted Critical
Publication of JP4155290B2 publication Critical patent/JP4155290B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

本発明は、複数の画素から構成される画像データの各画素値を補正する画像処理装置、及び前記画像処理装置を備える画像形成装置に関する。   The present invention relates to an image processing apparatus that corrects each pixel value of image data composed of a plurality of pixels, and an image forming apparatus including the image processing apparatus.

スキャナを備え、複数の画素から構成される画像データの各画素値に対して補正を行う(例えばガンマ補正を行う)画像処理装置は、補正前の画素値毎に補正後の画素値が設定された補正データに従って画像データの各画素値を補正する。ここでは、補正がガンマ補正である場合について説明する。ガンマ補正を行う従来の画像処理装置においては、予め装置の特性に基づいて生成されたガンマ補正データが同一機種の全ての装置に格納されていたが、同一機種においても、スキャナを構成する光源やレンズ等の取付誤差があるため、ガンマ補正の精度が充分ではない場合があった。そのため、特許文献1には、装置に適したガンマ補正データを生成し、生成したガンマ補正データに従って画像データの各画素値をガンマ補正する画像処理装置が開示されている。なお、ガンマ補正データは、自装置の電源が切断されても消去されないように、例えばEEPROM(Electrically Erasable and Programmable ROM)等の不揮発性記憶装置に格納されており、不揮発性記憶装置から読み出されてガンマ補正に用いられる。このように、画像処理装置毎に生成したガンマ補正データを用いてガンマ補正を行うことにより、ガンマ補正の精度を向上することができる。
特開平6−22140号公報
An image processing apparatus that includes a scanner and corrects each pixel value of image data composed of a plurality of pixels (for example, performs gamma correction) sets a corrected pixel value for each pixel value before correction. Each pixel value of the image data is corrected according to the corrected data. Here, a case where the correction is gamma correction will be described. In a conventional image processing apparatus that performs gamma correction, gamma correction data generated based on the characteristics of the apparatus in advance is stored in all apparatuses of the same model. In some cases, the accuracy of gamma correction is not sufficient due to mounting errors of lenses. For this reason, Patent Document 1 discloses an image processing apparatus that generates gamma correction data suitable for the apparatus and gamma-corrects each pixel value of the image data according to the generated gamma correction data. The gamma correction data is stored in a nonvolatile storage device such as an EEPROM (Electrically Erasable and Programmable ROM) so that it will not be erased even if the power supply of the device is turned off, and read from the nonvolatile storage device. Used for gamma correction. Thus, by performing gamma correction using the gamma correction data generated for each image processing apparatus, the accuracy of gamma correction can be improved.
JP-A-6-22140

しかしながら、ガンマ補正データ等、補正前の画素値毎に補正後の画素値が設定された補正データを、自装置の電源が切断されても消去されないよう、EEPROM等の不揮発性記憶装置に格納すると、不揮発性記憶装置の記憶容量が大きくなるという問題点があった。   However, if correction data in which pixel values after correction are set for each pixel value before correction, such as gamma correction data, is stored in a non-volatile storage device such as an EEPROM so that it is not erased even when the power of the device is turned off. However, there is a problem that the storage capacity of the nonvolatile storage device becomes large.

また、スキャナが読み取ったRGB表色系のカラー画像データは、ガンマ補正等の補正が行われた後、例えば用紙への印刷等、カラー画像データの使用目的に応じて、Lab表色系、YCrCb表色系等に色空間変換される。そのため、色空間変換後のカラー画像データの色再現性を考慮すると、各表色系に適した補正データを用いて補正を行うことが好ましいが、RGB表色系、Lab表色系、YCrCb表色系等、各表色系に適した補正データを不揮発性記憶装置に格納すると、更に不揮発性記憶装置の記憶容量が大きくなるという問題点があった。   The RGB color system color image data read by the scanner is subjected to corrections such as gamma correction, and then, for example, printing on paper or the like, depending on the intended use of the color image data, Lab color system, YCrCb The color space is converted to a color system or the like. Therefore, in consideration of color reproducibility of color image data after color space conversion, it is preferable to perform correction using correction data suitable for each color system, but the RGB color system, Lab color system, and YCrCb table. When correction data suitable for each color system such as a color system is stored in the nonvolatile storage device, there is a problem that the storage capacity of the nonvolatile storage device further increases.

本発明は、上記問題点に鑑みてなされたものであり、複数の画素から構成される画像データの各画素値を補正データに従って補正する画像処理装置、及び画像形成装置において、不揮発性記憶装置の記憶容量を削減可能な画像処理装置、及び画像形成装置を提供することを目的とする。   The present invention has been made in view of the above problems, and an image processing apparatus and an image forming apparatus that correct each pixel value of image data composed of a plurality of pixels according to correction data. An object of the present invention is to provide an image processing apparatus and an image forming apparatus capable of reducing the storage capacity.

請求項1記載の画像形成装置は、不揮発性記憶装置、及び揮発性記憶装置を有し、複数の画素から構成される画像データの各画素値を、補正前の画素値毎に補正後の画素値が設定された補正データに従って補正する画像処理装置であって、前記画素値の第1の所定数の基準値と前記第1の所定数の基準値の補正後の値をそれぞれ規定する第1の所定数の目標値とを対応付けて前記不揮発性記憶装置に格納する第1の格納手段と、前記第1の格納手段に格納されている第1の所定数の基準値及び第1の所定数の目標値に基づいて、画像データを構成する画素がとり得る前記第1の所定数より大きい第2の所定数の画素値毎の補正後の値を規定する補正データを生成する生成手段と、前記生成手段により生成された補正データを格納する第2の格納手段と、前記第2の格納手段に格納されている補正データに従って画像データの各画素値を補正する補正手段と、を備える画像処理装置を具備し、スキャナ、プリンタ、コピー、及びファクシミリの少なくとも2以上の機能を有する画像形成装置であって、前記複数の機能の内、いずれか1の選択を外部から受け付ける受付手段と、前記受付手段により選択を受け付けた機能に基づいて画像データの表色系を選択する選択手段と、を備え、前記生成手段は、複数の表色系に適した補正データを表色系毎に生成して前記第2の格納手段にそれぞれ格納し、前記補正手段は、前記第2の格納手段に格納されている各補正データの内、前記選択手段により選択された表色系に適した補正データに従って画像データの各画素値を補正することを特徴としている。 The image forming apparatus according to claim 1 includes a nonvolatile storage device and a volatile storage device, and each pixel value of image data composed of a plurality of pixels is corrected for each pixel value before correction. An image processing apparatus that performs correction according to correction data for which a value has been set, wherein the first predetermined number of reference values of the pixel value and a corrected value of the first predetermined number of reference values are defined respectively. A first storage means for storing the predetermined number of target values in association with each other in the nonvolatile storage device, a first predetermined number of reference values and a first predetermined value stored in the first storage means Generating means for generating correction data defining a corrected value for each second predetermined number of pixel values larger than the first predetermined number that can be taken by the pixels constituting the image data, based on the target value of the number; The second case storing the correction data generated by the generating means. Comprising means, an image processing apparatus and a correcting means for correcting each pixel value of the image data according to the correction data stored in said second storage means, a scanner, a printer, a copier, and a facsimile of at least 2 An image forming apparatus having the above functions, wherein a receiving unit that accepts one of the plurality of functions from the outside, and a color system of image data based on the function that has received the selection by the receiving unit Selecting means, and the generating means generates correction data suitable for a plurality of color systems for each color system and stores them in the second storage means, respectively, characterized in that corrects each pixel value of the image data of the correction data stored in said second storing means, according to the correction data suitable for the color system selected by said selection means It is.

上記構成によれば、生成手段によって、複数の表色系に適した補正データが表色系毎に生成されて第2の格納手段にそれぞれ格納される。そして、補正手段によって、第2の格納手段に格納されている各補正データの内、選択を受け付けた機能に基づいて選択手段によって選択された表色系に適した補正データに従って画像データの各画素値が補正される。 According to the above configuration, correction data suitable for a plurality of color systems is generated for each color system by the generation unit and stored in the second storage unit. Then, each pixel of the image data according to the correction data suitable for the color system selected by the selection unit based on the function of the selection received from the correction data stored in the second storage unit by the correction unit The value is corrected.

従って、画像データは、機能に基づいて種々の表色系に色空間変換されるが、選択を受け付けた機能に基づいて選択された表色系に適した補正データに従って補正されるので、色空間変換後の色再現性が良好である。また、複数の表色系に適した補正データが表色系毎に生成されるため、データ量が多くなるが、複数の表色系に適した補正データは、第2の格納手段に格納されるので、不揮発性記憶装置の記憶容量を増加させる必要がない。 Therefore, the image data is color space converted into various color systems based on the function, but is corrected according to the correction data suitable for the color system selected based on the function for which the selection is accepted. Good color reproducibility after conversion. Further, since correction data suitable for a plurality of color systems is generated for each color system, the amount of data increases, but correction data suitable for a plurality of color systems is stored in the second storage means. Therefore, there is no need to increase the storage capacity of the nonvolatile storage device.

請求項2記載の画像形成装置は、請求項1記載の画像形成装置において、自装置の電源が投入された際に、前記生成手段に対して補正データの生成を指示する旨の情報を出力する指示手段を備え、前記生成手段は、前記指示手段から補正データの生成を指示する旨の情報が受け付けられた場合に、前記補正データを生成し、前記第2の格納手段は、前記生成手段により生成された補正データを前記揮発性記憶装置に格納することを特徴としている。 The image forming apparatus according to claim 2, wherein, in the image forming apparatus according to claim 1, wherein, when the power supply of the own device is turned on, and outputs the information for instructing the generation of the correction data to said generating means Instructing means, and the generating means generates the correction data when information indicating the generation of correction data is received from the instructing means, and the second storing means is provided by the generating means. The generated correction data is stored in the volatile storage device.

上記構成によれば、画像処理装置の電源が投入された際に、指示手段によって、生成手段に対して補正データの生成を指示する旨の情報が出力される。そして、指示手段から補正データの生成を指示する旨の情報が受け付けられた場合に、生成手段によって、補正データが生成され、生成された補正データが第2の格納手段に格納される。   According to the above configuration, when the image processing apparatus is turned on, the instruction unit outputs information indicating that the generation unit is instructed to generate correction data. Then, when information indicating the generation of correction data is received from the instruction unit, the generation unit generates correction data, and the generated correction data is stored in the second storage unit.

従って、画像処理装置の電源が切断された際に、補正データが消去されるが、画像処理装置の電源が投入された際に、補正データが生成されるので、画像処理装置の電源が投入されている間は、補正データを保持することができる。   Accordingly, the correction data is deleted when the image processing apparatus is turned off. However, since the correction data is generated when the image processing apparatus is turned on, the image processing apparatus is turned on. The correction data can be held while the image is being displayed.

請求項3記載の画像形成装置は、請求項1又は2記載の画像形成装置において、原稿の画像を読み取り、画像データを生成する読取手段を備え、前記第1の所定数の基準値は、前記読取手段により、原稿に形成された階調が異なる第1の所定数の基準画像を読み取って得られたものであり、前記補正手段は、前記読取手段により生成された画像データの各画素値を補正することを特徴としている。 According to a third aspect of the present invention, there is provided the image forming apparatus according to the first or second aspect, further comprising reading means for reading an image of a document and generating image data, wherein the first predetermined number of reference values is The reading means is obtained by reading a first predetermined number of reference images having different gradations formed on the original, and the correction means calculates each pixel value of the image data generated by the reading means. It is characterized by correction.

上記構成によれば、第1の格納手段に、読取手段により第1の所定数の基準画像を読み取って得られた第1の所定数の基準値と、これら第1の所定数の基準値の補正後の値をそれぞれ規定する第1の所定数の目標値と、が対応付けて格納されており、生成手段によって、第1の格納手段に格納されている第1の所定数の基準値、及び第1の所定数の目標値に基づいて、補正データが生成される。そして、生成された補正データが第2の格納手段に格納されており、補正手段によって、第2の格納手段に格納されている補正データに従って読取手段により生成された画像データの各画素値が補正される。 According to the above configuration, the first storage unit stores the first predetermined number of reference values obtained by reading the first predetermined number of reference images by the reading unit, and the first predetermined number of reference values. A first predetermined number of target values each defining a corrected value are stored in association with each other, and a first predetermined number of reference values stored in the first storage means by the generating means; The correction data is generated based on the first predetermined number of target values. The generated correction data is stored in the second storage means, and each pixel value of the image data generated by the reading means is corrected by the correction means according to the correction data stored in the second storage means. Is done.

従って、読取手段により第1の所定数(例えば、13)の基準画像を読み取って得られた第1の所定数の基準値、及びこれらに対応する第1の所定数の目標値に基づいて生成された補正データに従って、読取手段により生成された画像データの各画素値が補正されるので、読取手段の特性に応じた補正を行うことができる。すなわち、機差に関係なく、精度の良い補正を行うことができる。 Therefore, it is generated based on the first predetermined number of reference values obtained by reading the first predetermined number (for example, 13) of reference images by the reading means, and the first predetermined number of target values corresponding thereto. According to the corrected data, each pixel value of the image data generated by the reading unit is corrected, so that correction according to the characteristics of the reading unit can be performed. That is, accurate correction can be performed regardless of machine differences.

請求項4記載の画像形成装置は、スキャナ、プリンタ、コピー、及びファクシミリの少なくとも2以上の機能を有する画像形成装置であって、不揮発性記憶装置、及び揮発性記憶装置を有し、複数の画素から構成される画像データの各画素値を、補正前の画素値毎に補正後の画素値が設定された補正データに従って補正する画像処理装置であって、前記画素値の第1の所定数の基準値と前記第1の所定数の基準値の補正後の値をそれぞれ規定する第1の所定数の目標値とを対応付けて前記不揮発性記憶装置に格納する第1の格納手段と、前記第1の格納手段に格納されている第1の所定数の基準値及び第1の所定数の目標値に基づいて、画像データを構成する画素がとり得る前記第1の所定数より大きい第2の所定数の画素値毎の補正後の値を規定する補正データを生成する生成手段と、前記生成手段により生成された補正データを格納する第2の格納手段と、前記第2の格納手段に格納されている補正データに従って画像データの各画素値を補正する補正手段と、を備える画像処理装置と、原稿の画像を読み取り、画像データを生成する読取手段と、前記複数の機能の内、いずれか1の選択を外部から受け付ける受付手段と、前記受付手段により選択を受け付けた機能に基づいて画像データの表色系を選択する選択手段と、前記選択手段により選択された表色系が前回選択された表色系と異なる場合、前記読取手段により原稿の画像が読み取られる際に、前記生成手段に対して補正データの生成を指示する旨の情報を出力する指示手段と、を備え、前記第1の所定数の基準値は、前記読取手段により、原稿に形成された階調が異なる第1の所定数の基準画像を読み取って得られたものであり、前記生成手段は、前記指示手段から補正データの生成を指示する旨の情報が受け付けられた場合に、前記選択手段により選択された表色系に適した補正データを生成し、生成した補正データを前記第2の格納手段に格納されている補正データに上書きし、前記補正手段は、前記読取手段により生成された画像データの各画素値を補正することを特徴としている。 5. The image forming apparatus according to claim 4, wherein the image forming apparatus has at least two functions of a scanner, a printer, a copy, and a facsimile, and includes a non-volatile storage device and a volatile storage device, and a plurality of pixels. An image processing apparatus that corrects each pixel value of image data configured according to correction data in which a pixel value after correction is set for each pixel value before correction, and a first predetermined number of the pixel values A first storage means for associating a reference value with a first predetermined number of target values each defining a corrected value of the first predetermined number of reference values, and storing them in the nonvolatile storage device; Based on the first predetermined number of reference values and the first predetermined number of target values stored in the first storage means, the second larger than the first predetermined number that can be taken by the pixels constituting the image data. Value after correction for every predetermined number of pixel values A generation unit that generates correction data to be defined, a second storage unit that stores the correction data generated by the generation unit, and each pixel value of the image data according to the correction data stored in the second storage unit A correction unit that corrects the image, a reading unit that reads an image of a document and generates image data, a reception unit that receives an external selection of any one of the plurality of functions, and A selection unit that selects a color system of image data based on a function that has been selected by the reception unit, and when the color system selected by the selection unit is different from the previously selected color system, the reading unit And an instruction unit that outputs information indicating that the generation unit generates correction data when an image of a document is read, and the first predetermined number of reference values is: The reading means obtains a first predetermined number of reference images having different gradations formed on the original, and the generation means instructs the generation of correction data from the instruction means. When the information is received, the correction data suitable for the color system selected by the selection unit is generated, the generated correction data is overwritten on the correction data stored in the second storage unit, The correcting means corrects each pixel value of the image data generated by the reading means.

上記構成によれば、第1の格納手段に、読取手段により第1の所定数の基準画像を読み取って得られた第1の所定数の基準値と、これら第1の所定数の基準値の補正後の値をそれぞれ規定する第1の所定数の目標値と、が対応付けて格納されており、選択手段により選択された表色系が前回選択された表色系と異なる場合、読取手段により原稿の画像が読み取られる際に、指示手段によって、生成手段に対して補正データの生成を指示する旨の情報が出力される。そして、指示手段から補正データの生成を指示する旨の情報が受け付けられた場合に、生成手段によって、選択手段により選択された表色系に適した補正データが生成され、生成された補正データが第2の格納手段に格納されている補正データに上書きされる。そして、補正手段によって、第2の格納手段に格納されている補正データに従って読取手段により生成された画像データの各画素値が補正される。 According to the above configuration, in the first storage means, the reading means first and a predetermined number of reference values obtained by reading a first predetermined number of the reference image, these first predetermined number of reference value The first predetermined number of target values that define the corrected values are stored in association with each other, and when the color system selected by the selection unit is different from the color system selected last time, the reading unit When the image of the original is read by this, the instruction means outputs information for instructing the generation means to generate correction data. Then, when the information for instructing the generation of correction data is received from the instruction unit, the generation unit generates correction data suitable for the color system selected by the selection unit, and the generated correction data is The correction data stored in the second storage means is overwritten. Then, each pixel value of the image data generated by the reading unit is corrected by the correction unit according to the correction data stored in the second storage unit.

従って、第2の格納手段に、画像データが色空間変換される表色系毎に適した補正データを格納する必要がないため、第2の格納手段の記憶容量を削減することができる。また、読取手段により第1の所定数(例えば、13)の基準画像を読み取って得られた第1の所定数の基準値、及びこれらに対応する第1の所定数の目標値に基づいて生成された補正データに従って、読取手段により生成された画像データの各画素値が補正されるので、読取手段の特性に応じた補正を行うことができる。すなわち、機差に関係なく、精度の良い補正を行うことができる。 Therefore, it is not necessary to store correction data suitable for each color system in which image data is subjected to color space conversion in the second storage means, so that the storage capacity of the second storage means can be reduced. Further, the first predetermined number of reference values obtained by reading a first predetermined number (for example, 13) of reference images by the reading unit, and a first predetermined number of target values corresponding thereto are generated. According to the corrected data, each pixel value of the image data generated by the reading unit is corrected, so that correction according to the characteristics of the reading unit can be performed. That is, accurate correction can be performed regardless of machine differences.

請求項1記載の画像形成装置によれば、読取手段の特性に応じた補正を行うことができる。すなわち、機差に関係なく、精度の良い補正を行うことができる。 According to the image forming apparatus of the first aspect, it is possible to perform correction according to the characteristics of the reading unit. That is, accurate correction can be performed regardless of machine differences.

請求項2記載の画像形成装置によれば、例えば、第2の格納手段が揮発性記憶装置である場合、画像処理装置の電源が切断された際に、補正データが消去されるが、画像処理装置の電源が投入された際に、補正データが生成されるので、画像処理装置の電源が投入されている間は、補正データを保持することができる。 According to the image forming apparatus of the second aspect, for example, when the second storage unit is a volatile storage device, the correction data is erased when the power of the image processing apparatus is turned off. Since correction data is generated when the apparatus is turned on, the correction data can be held while the image processing apparatus is turned on.

請求項3記載の画像形成装置によれば、選択を受け付けた機能に基づいて選択された表色系に適した補正データに従って画像データが補正されるので、色空間変換後の画像データの色再現性が良好である。また、複数の表色系に適した補正データが表色系毎に生成されるため、データ量が多くなるが、複数の表色系に適した補正データは、第2の格納手段に格納されるので、不揮発性記憶装置の記憶容量を増加させる必要がない。 According to the image forming apparatus of claim 3, since the image data is corrected according to the correction data suitable for the color system selected based on the function of accepting the selection, the color reproduction of the image data after the color space conversion is performed. Good properties. Further, since correction data suitable for a plurality of color systems is generated for each color system, the amount of data increases, but correction data suitable for a plurality of color systems is stored in the second storage means. Therefore, there is no need to increase the storage capacity of the nonvolatile storage device.

請求項4記載の画像形成装置によれば、第2の格納手段に、画像データが色空間変換される表色系毎に適した補正データを格納する必要がないため、第2の格納手段の記憶容量を削減することができる。また、読取手段の特性に応じた補正を行うことができる。すなわち、機差に関係なく、精度の良い補正を行うことができる。 According to the image forming apparatus of the fourth aspect, it is not necessary to store correction data suitable for each color system in which the image data is color space converted in the second storage unit. The storage capacity can be reduced. Further, correction according to the characteristics of the reading means can be performed. That is, accurate correction can be performed regardless of machine differences.

以下、本発明に係る実施形態を図面に基づいて説明する。本実施形態においては、本発明の画像処理装置をスキャナ機能、プリンタ機能、コピー機能、及びファクシミリ機能を有する画像形成装置に適用した場合について説明する。図1は、本実施形態に係る画像形成装置1の一例を示すブロック図である。図示するように、画像形成装置1は、制御部(MPU:Microprocessing Unit)2、ROM(Read Only Memory)3、RAM(Random Access Memory)4、CCD(Charge Coupled Device)5、AFE(Analog Front End)6、A/Dコンバータ7、スキャナ画像処理回路8、ページメモリ9、スキャナコーデック10、プリンタコーデック11、プリンタ画像処理回路12、プリンタ13、通信コーデック14、モデム15、NCU(Network Control Unit)16、I/F(Interface)部17、操作パネル18、及びEEPROM19を備えたものである。この画像形成装置1が備える本発明の画像処理装置は、制御部2、ROM3、RAM4、AFE6、A/Dコンバータ7、スキャナ画像処理回路8、ページメモリ9、スキャナコーデック10、プリンタコーデック11、プリンタ画像処理回路12、通信コーデック14、EEPROM19で構成されている。なお、本実施形態においては、ガンマ補正前の画素値毎にガンマ補正後の画素値が設定されたガンマ補正データに従って、複数の画素から構成される画像データの各画素値をガンマ補正する場合について説明する。   Embodiments according to the present invention will be described below with reference to the drawings. In this embodiment, a case where the image processing apparatus of the present invention is applied to an image forming apparatus having a scanner function, a printer function, a copy function, and a facsimile function will be described. FIG. 1 is a block diagram illustrating an example of an image forming apparatus 1 according to the present embodiment. As shown in the figure, an image forming apparatus 1 includes a control unit (MPU: Microprocessing Unit) 2, a ROM (Read Only Memory) 3, a RAM (Random Access Memory) 4, a CCD (Charge Coupled Device) 5, an AFE (Analog Front End). 6) A / D converter 7, scanner image processing circuit 8, page memory 9, scanner codec 10, printer codec 11, printer image processing circuit 12, printer 13, communication codec 14, modem 15, NCU (Network Control Unit) 16 , An I / F (Interface) unit 17, an operation panel 18, and an EEPROM 19. The image processing apparatus of the present invention provided in the image forming apparatus 1 includes a control unit 2, a ROM 3, a RAM 4, an AFE 6, an A / D converter 7, a scanner image processing circuit 8, a page memory 9, a scanner codec 10, a printer codec 11, and a printer. The image processing circuit 12, the communication codec 14, and the EEPROM 19 are included. In the present embodiment, each pixel value of image data composed of a plurality of pixels is gamma-corrected according to gamma correction data in which a pixel value after gamma correction is set for each pixel value before gamma correction. explain.

制御部2は、ROM3に格納された制御プログラムに従って、この画像形成装置1を構成する各部を制御し、後述する平均化処理部24(図4参照)等として機能するものである。RAM4は、電力供給が停止した場合、すなわち、画像形成装置1の電源が切断された場合に、格納している内容が消去される揮発性記憶装置である。このRAM4は、制御部2のワークエリアとして機能するワークメモリ領域20(第2の格納手段に相当する)と、符号化されている画像データを格納する符号メモリ領域21と、を備える。また、ワークメモリ領域20には、ガンマ補正データが格納されている。   The control unit 2 controls each part of the image forming apparatus 1 according to a control program stored in the ROM 3 and functions as an averaging processing unit 24 (see FIG. 4) described later. The RAM 4 is a volatile storage device in which stored contents are erased when power supply is stopped, that is, when the power of the image forming apparatus 1 is turned off. The RAM 4 includes a work memory area 20 (corresponding to a second storage unit) that functions as a work area of the control unit 2 and a code memory area 21 that stores encoded image data. The work memory area 20 stores gamma correction data.

CCD5(読取手段に相当する)は、原稿の画像を読み取り、画像データを生成するものである。ここでは、原稿のカラー画像を読み取ってRGB表色系のアナログカラー画像データを生成し、AFE6に出力する。なお、CCD5において、原稿のモノクロ画像を読取ることも当然可能であるが、本実施形態においては、カラー画像を読取った場合について説明する。AFE6は、CCD5から出力されたアナログカラー画像データを増幅し、A/Dコンバータ7に出力するものである。A/Dコンバータ7は、AFE6から出力されたアナログカラー画像データをA/D変換するものである。ここでは、A/D変換されたデジタルのカラー画像データは、スキャナ画像処理回路8に出力される。なお、A/D変換されたデジタルのカラー画像データの各画素値は、8ビット、すなわち、0〜255の整数で表現される。   The CCD 5 (corresponding to a reading unit) reads an image of a document and generates image data. Here, the color image of the original is read to generate RGB color system analog color image data and output to the AFE 6. The CCD 5 can naturally read a monochrome image of a document, but in the present embodiment, a case where a color image is read will be described. The AFE 6 amplifies the analog color image data output from the CCD 5 and outputs it to the A / D converter 7. The A / D converter 7 performs A / D conversion on the analog color image data output from the AFE 6. Here, the digital color image data subjected to A / D conversion is output to the scanner image processing circuit 8. Note that each pixel value of the digital color image data subjected to A / D conversion is represented by 8 bits, that is, an integer of 0 to 255.

スキャナ画像処理回路8(補正手段に相当する)は、A/Dコンバータ7から出力されたRGB表色系のカラー画像データに対し、ガンマ補正、色空間変換等を行うものである。具体的には、A/Dコンバータ7から出力された複数の画素から構成されるカラー画像データの各画素値をガンマ補正し、ガンマ補正したRGB表色系のカラー画像データをカラー画像データの用途に応じて色空間変換し、所定の出力先に出力する。例えば、CCD5により生成されたカラー画像データを用紙に印刷する場合(コピー機能)、スキャナ画像処理回路8は、RGB表色系のカラー画像データをLab表色系に色空間変換する。この場合、ガンマ補正は、ワークメモリ領域20に格納されているLab表色系用の(Lab表色系に適した)ガンマ補正データに従って行われる。また、例えば、CCD5により生成されたカラー画像データをファクシミリ送信する場合(ファクシミリ機能)、スキャナ画像処理回路8は、RGB表色系のカラー画像データをYCrCb表色系に色空間変換する。この場合、ガンマ補正は、YCrCb表色系用の(YCrCb表色系に適した)ガンマ補正データに従って行われる。また、例えば、CCD5により生成されたカラー画像データをパーソナルコンピュータ(以下、「PC」という。)22に送信する場合(スキャナ機能)、スキャナ画像処理回路8は、RGB表色系のカラー画像データを色空間変換せずにそのまま出力する。この場合、ガンマ補正は、RGB表色系用の(RGB表色系に適した)ガンマ補正データに従って行われる。スキャナ画像処理回路8から出力されたカラー画像データは、ページメモリ9に一時的に格納される。   A scanner image processing circuit 8 (corresponding to a correction unit) performs gamma correction, color space conversion, and the like on RGB color system color image data output from the A / D converter 7. Specifically, each pixel value of the color image data composed of a plurality of pixels output from the A / D converter 7 is gamma-corrected, and the color image data of the RGB color system that has been gamma-corrected is used for the color image data. In accordance with the color space conversion, the data is output to a predetermined output destination. For example, when color image data generated by the CCD 5 is printed on a sheet (copy function), the scanner image processing circuit 8 performs color space conversion of RGB color system color image data to the Lab color system. In this case, gamma correction is performed according to gamma correction data for the Lab color system (suitable for the Lab color system) stored in the work memory area 20. Further, for example, when the color image data generated by the CCD 5 is transmitted by facsimile (facsimile function), the scanner image processing circuit 8 converts the color image data of the RGB color system to the YCrCb color system. In this case, the gamma correction is performed according to gamma correction data for the YCrCb color system (suitable for the YCrCb color system). Further, for example, when color image data generated by the CCD 5 is transmitted to a personal computer (hereinafter referred to as “PC”) 22 (scanner function), the scanner image processing circuit 8 converts RGB color system color image data. Output directly without color space conversion. In this case, the gamma correction is performed according to gamma correction data for the RGB color system (suitable for the RGB color system). The color image data output from the scanner image processing circuit 8 is temporarily stored in the page memory 9.

スキャナコーデック10は、カラー画像データを用紙に印刷する場合、又はファクシミリ送信する場合、ページメモリ9に格納されているカラー画像データを読み出して符号化し、符号化したカラー画像データをRAM4の符号メモリ領域21に書き込むものである。ここでは、スキャナコーデック10は、JPEG(Joint Photographic Experts Group)方式でカラー画像データを符号化する。   The scanner codec 10 reads and encodes the color image data stored in the page memory 9 when printing the color image data on a sheet or facsimile transmission, and the encoded color image data is stored in the code memory area of the RAM 4. 21 is written. Here, the scanner codec 10 encodes color image data by JPEG (Joint Photographic Experts Group).

プリンタコーデック11は、カラー画像データを用紙に印刷する場合、符号メモリ領域21に格納されている符号化されたカラー画像データを読み出して復号し、プリンタ画像処理回路12に出力するものである。プリンタ画像処理回路12は、Lab表色系のカラー画像データに対して、色空間変換、2値化処理等を行う。ここでは、Lab表色系のカラー画像データに対して、例えば各成分1ビットのC(シアン)、M(マゼンタ)、Y(イエロー)、K(ブラック)の4成分によって表される出力表色系のカラー画像データに色空間変換した後に、誤差拡散処理等を行って2値化し、プリンタ13に出力する。プリンタ13は、プリンタ画像処理回路12から出力されたカラー画像データを用紙に印刷するものである。このプリンタ13における印刷方式としては、例えば、電子写真方式を用いることができる。   The printer codec 11 reads out and decodes the encoded color image data stored in the code memory area 21 when printing the color image data on a sheet, and outputs it to the printer image processing circuit 12. The printer image processing circuit 12 performs color space conversion, binarization processing, and the like on Lab color system color image data. Here, the output color specification represented by, for example, four components of C (cyan), M (magenta), Y (yellow), and K (black) of 1 bit for each component for color image data of the Lab color system. After color space conversion to system color image data, error diffusion processing or the like is performed to binarize and output to the printer 13. The printer 13 prints the color image data output from the printer image processing circuit 12 on paper. As a printing method in the printer 13, for example, an electrophotographic method can be used.

通信コーデック14は、カラー画像データをファクシミリ送信する場合、符号メモリ領域21から符号化されたカラー画像データを読み出して復号するとともに、ファクシミリ送信に適した符号化方式でカラー画像データを符号化するものである。ファクシミリ送信に適した符号化方式としては、例えば、MH(Modified Huffman)、MR(Modified Read)、MMR(Modified Modified Read)等がある。なお、JPEG方式で符号化したカラー画像データをファクシミリ送信する場合があるが、この場合には、上記のような復号及び符号化の処理を行う必要がない。   When the color code data is transmitted by facsimile, the communication codec 14 reads the color image data encoded from the code memory area 21 and decodes it, and encodes the color image data by an encoding method suitable for facsimile transmission. It is. Examples of encoding methods suitable for facsimile transmission include MH (Modified Huffman), MR (Modified Read), and MMR (Modified Modified Read). Note that color image data encoded by the JPEG method may be transmitted by facsimile, but in this case, it is not necessary to perform the decoding and encoding processes as described above.

モデム15は、例えばITU−T(国際電気通信連合電気通信標準化部門)の勧告V.30規格又はこれと同様のものに従った送受信データの変調及び復調を行うものである。NCU16は、電話回線を制御して電話をかけたり、切ったりする回線網制御装置であり、PSTN23に接続されている。制御部2は、このモデム15及びNCU16を制御してカラー画像データのファクシミリ送受信を行うことができる。   The modem 15 is, for example, a ITU-T (International Telecommunication Union Telecommunication Standardization Sector) recommendation V.3. Modulation and demodulation of transmission / reception data according to the 30 standard or the like. The NCU 16 is a line network control device that controls a telephone line to place or disconnect a call, and is connected to the PSTN 23. The control unit 2 can control the modem 15 and the NCU 16 to perform facsimile transmission / reception of color image data.

I/F部17は、PC22と画像形成装置1とを通信可能に接続するインターフェースである。このI/F部17を介して画像形成装置1からPC22にカラー画像データが送信されるようになっている。   The I / F unit 17 is an interface that connects the PC 22 and the image forming apparatus 1 in a communicable manner. Color image data is transmitted from the image forming apparatus 1 to the PC 22 via the I / F unit 17.

操作パネル18(受付手段の一部に相当する)は、原稿の読取開始を指示するためのスタートキー、ファクシミリ番号やコピー部数等を入力するためのテンキー等を備える操作部、及び各種の設定状態や画像形成装置1の動作状態などを文字や図形などで表示する液晶表示装置(LCD:Liquid Crystal Display)や、点灯又は消灯で表示するLEDランプ等を備える表示部からなるものである。なお、液晶表示装置は、いわゆるタッチパネル式のものであり、操作部に代えて液晶表示装置の画面をユーザが指等で触れることにより各種の操作を行うこともできる。ユーザは、この操作パネル18から、CCD5により生成されるカラー画像データの用途、すなわち、CCD5により生成されたカラー画像データを用紙に印刷するコピー機能、ファクシミリ送信するファクシミリ機能、PC22に送信するスキャナ機能の内、いずれか1を選択することができる。制御部2のガンマ補正データ設定部30(図4参照)は、操作パネル18からユーザにより選択された機能を受け付けるようになっている。   An operation panel 18 (corresponding to a part of the accepting unit) includes an operation unit including a start key for instructing start of reading of a document, a numeric keypad for inputting a facsimile number, the number of copies, and the like, and various setting states. And a liquid crystal display device (LCD: Liquid Crystal Display) that displays the operation state of the image forming apparatus 1 with characters, graphics, and the like, and a display unit that includes an LED lamp that is turned on or off. Note that the liquid crystal display device is a so-called touch panel type, and various operations can be performed by a user touching the screen of the liquid crystal display device with a finger or the like instead of the operation unit. The user uses the operation panel 18 to use color image data generated by the CCD 5, that is, a copy function for printing the color image data generated by the CCD 5 on paper, a facsimile function for facsimile transmission, and a scanner function for transmission to the PC 22. Any one of these can be selected. The gamma correction data setting unit 30 (see FIG. 4) of the control unit 2 receives a function selected by the user from the operation panel 18.

EEPROM(第1の格納手段に相当する)19は、電力供給がない場合、すなわち、画像形成装置1の電源が切断された場合でも、格納している内容が消えない不揮発性記憶装置である。このEEPROM19には、階調が異なる第1の所定数の基準画像をCCD5により読み取って得た第1の所定数の基準値と、これら第1の所定数の基準値のガンマ補正後の値をそれぞれ規定する第1の所定数の目標値と、が対応付けて格納されている。   The EEPROM (corresponding to the first storage means) 19 is a non-volatile storage device in which stored contents are not lost even when there is no power supply, that is, when the power of the image forming apparatus 1 is turned off. The EEPROM 19 stores the first predetermined number of reference values obtained by reading the first predetermined number of reference images with different gradations by the CCD 5 and the gamma-corrected values of the first predetermined number of reference values. A first predetermined number of target values defined respectively are stored in association with each other.

図2は、階調が異なる第1の所定数の基準画像A1乃至A13が形成(印刷)された原稿(以下、「テストチャート」という。)Tの一例を示した図である。基準画像A1が最も濃い階調の画像(黒画像)となっており、基準画像A2、基準画像A3、・・・の順に階調が淡くなっていき、基準画像A13が最も淡い階調の画像(白画像)となっている。第1の所定数の基準値は、この基準画像A1乃至A13をCCD5により読み取って得られるものである。本実施形態においては、13個の基準画像をCCD5により読み取って13個の基準値を得る場合、すなわち、第1の所定数が「13」である場合について説明する。なお、基準画像A1乃至A13は、無彩色のグレースケール画像である。   FIG. 2 is a diagram showing an example of a document T (hereinafter referred to as “test chart”) T on which a first predetermined number of reference images A1 to A13 having different gradations are formed (printed). The reference image A1 is an image (black image) with the darkest gradation, the gradation becomes lighter in the order of the reference image A2, the reference image A3,..., And the reference image A13 is an image with the lightest gradation. (White image). The first predetermined number of reference values are obtained by reading the reference images A1 to A13 with the CCD 5. In the present embodiment, a case where 13 reference images are read by the CCD 5 to obtain 13 reference values, that is, a case where the first predetermined number is “13” will be described. The reference images A1 to A13 are achromatic grayscale images.

図3は、EEPROM19に格納されている第1の所定数の基準値、及び第1の所定数の目標値を示した図である。第1の所定数の基準値、及び第1の所定数の目標値は、R成分、G成分、B成分毎にEEPROM19に格納されている。ここで、R成分の基準値「19」は、基準画像A1をCCD5により読み取り、基準画像A1の画像データを構成する画素値を平均した値である。また、R成分の目標値「0」は、テストチャートTの基準画像A1に基づいて生成された値である。この基準画像A1を読み取って得たR成分の基準値「19」と、基準画像A1に基づいて生成されたR成分の目標値「0」とが対応付けられており、例えば、CCD5により生成されたカラー画像データを構成するR成分の画素値に「19」が含まれている場合は、スキャナ画像処理回路8によりその画素値が「0」に補正される。   FIG. 3 is a diagram showing a first predetermined number of reference values and a first predetermined number of target values stored in the EEPROM 19. The first predetermined number of reference values and the first predetermined number of target values are stored in the EEPROM 19 for each of the R component, the G component, and the B component. Here, the reference value “19” for the R component is a value obtained by reading the reference image A1 with the CCD 5 and averaging the pixel values constituting the image data of the reference image A1. The target value “0” of the R component is a value generated based on the reference image A1 of the test chart T. The R component reference value “19” obtained by reading the reference image A1 is associated with the R component target value “0” generated based on the reference image A1, and is generated by the CCD 5, for example. When “19” is included in the R component pixel value constituting the color image data, the scanner image processing circuit 8 corrects the pixel value to “0”.

ところで、EEPROM19に格納されている基準値及び目標値は、それぞれ13個であるが、CCD5により生成されたカラー画像データを構成する画素は、0〜255の256個の画素値をとり得る。そのため、後述する制御部2のガンマ補正データ生成部28(図4参照)によって、EEPROM19に格納されている第1の所定数の基準値、及び第1の所定数の目標値に基づき、カラー画像データを構成する画素がとり得る、第1の所定数より大きい第2の所定数の画素値毎のガンマ補正後の値を規定するガンマ補正データが生成される。本実施形態では、カラー画像データを構成する画素が256個の画素値(0〜255の整数)をとり得る場合、すなわち、第2の所定数が第1の所定数「13」より大きい「256」である場合について説明する。   Incidentally, the reference value and the target value stored in the EEPROM 19 are 13 each, but the pixels constituting the color image data generated by the CCD 5 can take 256 pixel values from 0 to 255. Therefore, a color image is generated based on a first predetermined number of reference values and a first predetermined number of target values stored in the EEPROM 19 by a gamma correction data generation unit 28 (see FIG. 4) of the control unit 2 described later. Gamma correction data defining a value after gamma correction for each second predetermined number of pixel values larger than the first predetermined number that can be taken by the pixels constituting the data is generated. In the present embodiment, when the pixels constituting the color image data can take 256 pixel values (an integer from 0 to 255), that is, the second predetermined number is “256” which is larger than the first predetermined number “13”. Will be described.

なお、図3においては、RGB表色系用のガンマ補正データを生成する場合に使用される目標値を例示している。また、目標値は、予めテストチャートTの基準画像A1乃至A13に基づいて生成され、EEPROM19に格納されているが、基準値は、テストチャートTの基準画像A1乃至13を読み取るテストチャート読取モードが操作パネル18から指示された場合に、CCD5により基準画像A1乃至A13が読み取られてEEPROM19に格納される。   Note that FIG. 3 illustrates target values used when generating gamma correction data for the RGB color system. Further, the target value is generated in advance based on the reference images A1 to A13 of the test chart T and stored in the EEPROM 19, but the reference value is a test chart reading mode for reading the reference images A1 to 13 of the test chart T. When instructed from the operation panel 18, the reference images A 1 to A 13 are read by the CCD 5 and stored in the EEPROM 19.

次に、ガンマ補正データの生成等を行う制御部2の機能構成について説明する。制御部2は、平均化処理部24、判定処理部25、EEPROM管理部26、ガンマ補正データ生成指示出力部27、ガンマ補正データ生成部28、ワークメモリ領域管理部29、及びガンマ補正データ設定部30を備えるものである。   Next, a functional configuration of the control unit 2 that generates gamma correction data and the like will be described. The control unit 2 includes an averaging processing unit 24, a determination processing unit 25, an EEPROM management unit 26, a gamma correction data generation instruction output unit 27, a gamma correction data generation unit 28, a work memory area management unit 29, and a gamma correction data setting unit. 30.

平均化処理部24は、操作パネル18から、ユーザ等によりテストチャート読取モードが指示され、CCD5によりテストチャートTの基準画像A1乃至A13が読み取られた場合に、各基準画像の画像データを構成する画素値を平均し、第1の所定数の基準値を算出するものである。上記のように、操作パネル18からテストチャート読取モードが指示された場合、CCD5により読み取られた基準画像A1乃至A13の画像データは、AFE6によるアナログ増幅、A/Dコンバータ7によるA/D変換が行われた後、平均化処理部24に出力される。   The averaging processing unit 24 configures image data of each reference image when a test chart reading mode is instructed by the user or the like from the operation panel 18 and the reference images A1 to A13 of the test chart T are read by the CCD 5. The pixel values are averaged to calculate a first predetermined number of reference values. As described above, when the test chart reading mode is instructed from the operation panel 18, the image data of the reference images A1 to A13 read by the CCD 5 are subjected to analog amplification by the AFE 6 and A / D conversion by the A / D converter 7. After being performed, it is output to the averaging processing unit 24.

判定処理部25は、CCD5によりテストチャートTの基準画像A1乃至A13が正常に読み取られたか否かを判定するものである。具体的には、第1の所定数の基準値が昇順、又は降順になっているか否かを判断し、昇順、又は降順になっていると判断した場合には、CCD5によりテストチャートTの基準画像A1乃至A13が正常に読み取られたと判定する。また、昇順、又は降順になっていないと判断した場合には、テストチャートTの基準画像A1乃至A13が正常に読み取られていないと判定する。   The determination processing unit 25 determines whether or not the reference images A1 to A13 of the test chart T are normally read by the CCD 5. Specifically, it is determined whether or not the first predetermined number of reference values are in ascending order or descending order. If it is determined that the first predetermined number of reference values are in ascending order or descending order, the CCD 5 uses the reference of the test chart T It is determined that the images A1 to A13 have been read normally. If it is determined that the order is not ascending or descending, it is determined that the reference images A1 to A13 of the test chart T are not normally read.

EEPROM管理部26は、EEPROM19へのデータの書き込み、EEPROM19からのデータの読み出しを行うものである。ここでは、EEPROM管理部26は、EEPROM19に平均化処理部24により算出された第1の所定数の基準値を書き込む。このとき、EEPROM管理部26は、図3に示したように、例えば基準画像A1を読み取って得た基準値と、基準画像A1に基づいて生成された目標値とが対応するよう、第1の所定数の基準値をEEPROM19に書き込み、EEPROM19は、第1の所定数の基準値と、第1の所定数の目標値と、を対応付けて格納する。ガンマ補正データ生成指示出力部27(指示手段に相当する)は、画像形成装置1の電源が投入された際に、ガンマ補正データ生成部28に対してガンマ補正データの生成を指示する旨の情報(以下、「生成指示」という。)を出力するものである。   The EEPROM management unit 26 writes data to the EEPROM 19 and reads data from the EEPROM 19. Here, the EEPROM management unit 26 writes the first predetermined number of reference values calculated by the averaging processing unit 24 in the EEPROM 19. At this time, as shown in FIG. 3, the EEPROM management unit 26 performs the first operation so that, for example, the reference value obtained by reading the reference image A1 corresponds to the target value generated based on the reference image A1. A predetermined number of reference values are written in the EEPROM 19, and the EEPROM 19 stores the first predetermined number of reference values and the first predetermined number of target values in association with each other. Information indicating that the gamma correction data generation instruction output unit 27 (corresponding to the instruction unit) instructs the gamma correction data generation unit 28 to generate gamma correction data when the image forming apparatus 1 is powered on. (Hereinafter referred to as “generation instruction”).

ガンマ補正データ生成部28(生成手段の一部に相当する)は、ガンマ補正データ生成指示出力部27からガンマ補正データの生成指示が受け付けられた場合に、EEPROM19に格納されている第1の所定数の基準値、及び第1の所定数の目標値に基づいて、ガンマ補正データを生成する。すなわち、ガンマ補正データ生成部28は、ガンマ補正データ生成指示出力部27からガンマ補正データの生成指示が受け付けられた場合に、EEPROM管理部26に、第1の所定数の基準値及び第1の所定数の目標値の読み出しを指示する旨の情報(以下、「読み出し指示」という。)を出力し、EEPROM管理部26により読み出された第1の所定数の基準値及び第1の所定数の目標値に基づいて、ガンマ補正データを生成する。   The gamma correction data generation unit 28 (corresponding to a part of the generation unit) receives a first gamma correction data generation instruction output from the gamma correction data generation instruction output unit 27 and receives a first predetermined data stored in the EEPROM 19. The gamma correction data is generated based on the reference value of the number and the first predetermined number of target values. In other words, when the gamma correction data generation instruction is received from the gamma correction data generation instruction output unit 27, the gamma correction data generation unit 28 causes the EEPROM management unit 26 to send the first predetermined number of reference values and the first reference value. Information indicating that a predetermined number of target values are to be read (hereinafter referred to as “reading instructions”) is output, and the first predetermined number of reference values and the first predetermined number read by the EEPROM management unit 26. The gamma correction data is generated based on the target value.

図5(a)は、図3に示したR成分の第1の所定数の基準値、及び第1の所定数の目標値をグラフ上にプロットした図である。なお、グラフのX軸は基準値を示し、グラフのY軸は目標値を示している。また、点R0は、原点((X,Y)=(0,0))を示し、点R1乃至R13は、基準画像A1乃至A13を読み取って得た基準値、及び基準画像A1乃至A13に基づいて生成された目標値を示している。例えば、点R1=(X,Y)=(19,0)は、基準画像A1を読み取って得た基準値、及び基準画像A1に基づいて生成された目標値を示しており、点R2=(X,Y)=(26,40)は、基準画像A2を読み取って得た基準値、及び基準画像A2に基づいて生成された目標値を示している。ガンマ補正データ生成部28は、図5(a)に示した点R0乃至R13の隣接する2点間を補間する基準値及び目標値を取得し、ガンマ補正データを生成する。例えば、点R1、R2間を補間する基準値及び目標値を取得する場合、点R1、R2を結ぶ直線(図5(b)参照)は、Y=(40−0)/(26−19)*(X−19)=(40/7)*(X−19)となるが、ガンマ補正データ生成部28は、上式のXに20から26の整数を順次代入して得られるYを目標値として取得するとともに、Xに代入した値を基準値として取得する。すなわち、上式にX=20を代入した場合、Y=5.71・・・となり、「20」を基準値、「6」を基準値「20」に対応する目標値として取得する。また、上式にX=21を代入した場合、Y=11.42・・・となり、「21」を基準値、「11」を基準値「21」に対応する目標値として取得する。そして、取得した基準値と目標値とを対応付けたガンマ補正データを生成する。   FIG. 5A is a diagram in which the first predetermined number of reference values and the first predetermined number of target values of the R component shown in FIG. 3 are plotted on a graph. The X axis of the graph indicates a reference value, and the Y axis of the graph indicates a target value. Point R0 indicates the origin ((X, Y) = (0, 0)), and points R1 to R13 are based on the reference values obtained by reading the reference images A1 to A13 and the reference images A1 to A13. The target value generated is shown. For example, a point R1 = (X, Y) = (19, 0) indicates a reference value obtained by reading the reference image A1, and a target value generated based on the reference image A1, and the point R2 = ( X, Y) = (26, 40) indicates a reference value obtained by reading the reference image A2, and a target value generated based on the reference image A2. The gamma correction data generation unit 28 acquires a reference value and a target value for interpolating between two adjacent points R0 to R13 shown in FIG. 5A, and generates gamma correction data. For example, when the reference value and target value for interpolating between the points R1 and R2 are acquired, the straight line connecting the points R1 and R2 (see FIG. 5B) is Y = (40-0) / (26-19) * (X-19) = (40/7) * (X-19), but the gamma correction data generation unit 28 sets Y obtained by sequentially substituting an integer from 20 to 26 to X in the above equation. While acquiring as a value, the value substituted for X is acquired as a reference value. That is, when X = 20 is substituted into the above equation, Y = 5.71..., And “20” is acquired as the reference value and “6” is acquired as the target value corresponding to the reference value “20”. When X = 21 is substituted into the above equation, Y = 11.42..., And “21” is acquired as a reference value and “11” is acquired as a target value corresponding to the reference value “21”. And the gamma correction data which matched the acquired reference value and target value are produced | generated.

このように、ガンマ補正データ生成部28は、点R0からR13の隣接する2点間を補間する基準値及び目標値を取得し、取得した基準値と目標値とを対応付けたガンマ補正データを生成する。図5(c)は、図3に示したR成分の基準値及び目標値に基づいて、ガンマ補正データ生成部28によって生成されたガンマ補正データの一部(基準値「19」から基準値「26」)を示した図である。スキャナ画像処理回路8は、このようなガンマ補正データに従ってカラー画像データの各画素値を補正する。例えば、カラー画像データを構成するR成分の画素に、画素値が「21」である画素が含まれている場合、当該画素の画素値を「11」に補正する。また、例えば、カラー画像データを構成するR成分の画素に画素値「25」の画素が含まれている場合、当該画素の画素値を「34」に補正する。なお、ここでは、RGB表色系用のガンマ補正データ(R成分)を生成する場合について説明したが、YCrCb表色系用、Lab表色系用のガンマ補正データを生成する場合も同様であり、ガンマ補正データ生成部28は、RGB表色系用、YCrCb表色系用、Lab表色系用のガンマ補正データを生成する。   As described above, the gamma correction data generation unit 28 acquires the reference value and the target value for interpolating between two adjacent points R0 to R13, and the gamma correction data in which the acquired reference value and the target value are associated with each other. Generate. FIG. 5C shows a part of the gamma correction data generated by the gamma correction data generation unit 28 (from the reference value “19” to the reference value “19” based on the reference value and target value of the R component shown in FIG. 26 "). The scanner image processing circuit 8 corrects each pixel value of the color image data according to such gamma correction data. For example, when the R component pixel constituting the color image data includes a pixel having a pixel value “21”, the pixel value of the pixel is corrected to “11”. Further, for example, when the pixel of the pixel value “25” is included in the R component pixels constituting the color image data, the pixel value of the pixel is corrected to “34”. Here, the case where the gamma correction data (R component) for the RGB color system is generated has been described, but the same applies to the case where the gamma correction data for the YCrCb color system and the Lab color system are generated. The gamma correction data generation unit 28 generates gamma correction data for the RGB color system, the YCrCb color system, and the Lab color system.

ワークメモリ領域管理部29(生成手段の一部に相当する)は、ワークメモリ領域20へのデータの書き込み、ワークメモリ領域20からのデータの読み出しを行うものである。ここでは、ワークメモリ領域管理部29は、ワークメモリ領域20にガンマ補正データ生成部28によって生成されたRGB表色系用、YCrCb表色系用、Lab表色系用のガンマ補正データを書き込む。ワークメモリ領域20は、RGB表色系用、YCrCb表色系用、Lab表色系用のガンマ補正データをそれぞれ格納する。   The work memory area management unit 29 (corresponding to a part of the generation unit) writes data into the work memory area 20 and reads data from the work memory area 20. Here, the work memory area management unit 29 writes the gamma correction data for the RGB color system, the YCrCb color system, and the Lab color system generated by the gamma correction data generation unit 28 in the work memory area 20. The work memory area 20 stores gamma correction data for RGB color system, YCrCb color system, and Lab color system, respectively.

ガンマ補正データ設定部30(受付手段の一部に相当する、選択手段に相当する)は、スキャナ画像処理回路8のレジスタ31にガンマ補正データを設定するものである。具体的には、ユーザにより操作パネル18から選択された機能を受け付け、選択を受け付けた機能に基づいて、カラー画像データの表色系を選択する。例えば、スキャナ機能の選択を受け付けた場合は、カラー画像データを色空間変換する表色系として、RGB表色系を選択し(この場合は、色空間変換されない)、ファクシミリ機能の選択を受け付けた場合は、カラー画像データを色空間変換する表色系として、YCrCb表色系を選択し、コピー機能の選択を受け付けた場合は、カラー画像データを色空間変換する表色系として、Lab表色系を選択する。次に、選択した表色系に適したガンマ補正データの読み出し指示をワークメモリ領域管理部29に出力する。すなわち、RGB表色系を選択した場合は、RGB表色系用のガンマ補正データの読み出し指示を出力し、YCrCb表色系を選択した場合は、YCrCb表色系用のガンマ補正データの読み出し指示を出力し、Lab表色系を選択した場合は、Lab表色系用のガンマ補正データの読み出し指示を出力する。そして、ワークメモリ領域管理部29により読み出されたガンマ補正データをスキャナ画像処理回路8のレジスタ31に設定する。スキャナ画像処理回路8は、レジスタ31に設定されたガンマ補正データに従って、カラー画像データの各画素値をガンマ補正する。   A gamma correction data setting unit 30 (corresponding to a part of the accepting unit and corresponding to the selecting unit) sets gamma correction data in the register 31 of the scanner image processing circuit 8. Specifically, the function selected from the operation panel 18 by the user is received, and the color system of the color image data is selected based on the function that has received the selection. For example, when the scanner function selection is accepted, the RGB color system is selected as the color system for color space conversion of color image data (in this case, color space conversion is not performed), and the facsimile function selection is accepted. In this case, if the YCrCb color system is selected as the color system for color space conversion of the color image data, and the copy function is selected, the Lab color system is used as the color system for color space conversion of the color image data. Select the system. Next, an instruction to read gamma correction data suitable for the selected color system is output to the work memory area management unit 29. That is, when the RGB color system is selected, an instruction to read out gamma correction data for the RGB color system is output, and when the YCrCb color system is selected, an instruction to read out gamma correction data for the YCrCb color system. When the Lab color system is selected, an instruction for reading gamma correction data for the Lab color system is output. Then, the gamma correction data read by the work memory area management unit 29 is set in the register 31 of the scanner image processing circuit 8. The scanner image processing circuit 8 performs gamma correction on each pixel value of the color image data according to the gamma correction data set in the register 31.

次に、操作パネル18からテストチャート読取モードが指定された場合の制御部2の処理動作について図6に示すフローチャートに基づいて説明する。まず、制御部2は、CCD5に対してテストチャートTの読み取りを指示する旨の情報(読み取り指示)を出力する(S1)。続いて、平均化処理部24は、CCD5により読み取られたテストチャートTの各基準画像A1乃至A13の画像データを構成する画素値を平均し、第1の所定数の基準値を算出する(S2)。   Next, the processing operation of the control unit 2 when the test chart reading mode is designated from the operation panel 18 will be described based on the flowchart shown in FIG. First, the control unit 2 outputs information (reading instruction) to instruct the CCD 5 to read the test chart T (S1). Subsequently, the averaging processing unit 24 averages the pixel values constituting the image data of the respective reference images A1 to A13 of the test chart T read by the CCD 5, and calculates a first predetermined number of reference values (S2). ).

次に、判定処理部25は、CCD5によりテストチャートTの基準画像A1乃至A13が正常に読み取られたか否かを判定する(S3)。判定処理部25によって、テストチャートTが正常に読み取られていないと判定された場合(S3:NO)、処理がS1に戻され、テストチャートTが正常に読み取られたと判定されるまで、S1乃至S3の処理が繰り返し実行される。判定処理部25によって、テストチャートTが正常に読み取られたと判定された場合(S3:YES)、EEPROM管理部26は、平均化処理部24によって算出された第1の所定数の基準値をEEPROM19に書き込む(S4)。   Next, the determination processing unit 25 determines whether or not the reference images A1 to A13 of the test chart T are normally read by the CCD 5 (S3). If the determination processing unit 25 determines that the test chart T has not been read normally (S3: NO), the process returns to S1 until S1 to S1 until it is determined that the test chart T has been read normally. The process of S3 is repeatedly executed. When the determination processing unit 25 determines that the test chart T has been normally read (S3: YES), the EEPROM management unit 26 uses the first predetermined number of reference values calculated by the averaging processing unit 24 as the EEPROM 19. (S4).

次に、画像形成装置1の電源が投入された際の制御部2の処理動作について図7に示すフローチャートに基づいて説明する。まず、ガンマ補正データ生成指示出力部27は、ガンマ補正データ生成部28に対してガンマ補正データの生成指示を出力する(S11)。ガンマ補正データ生成部28は、ガンマ補正データ生成指示出力部27からのガンマ補正データの生成指示を受け付け、EEPROM管理部26に対して、第1の所定数の基準値、及び第1の所定数の目標値の読み出し指示を出力する(S12)。EEPROM管理部26は、第1の所定数の基準値、及び第1の所定数の目標値の読み出し指示を受け付け、EEPROM19から第1の所定数の基準値、及び第1の所定数の目標値を読み出す(S13)。ガンマ補正データ生成部28は、EEPROM管理部26によって読み出された第1の所定数の基準値、及び第1の所定数の目標値に基づいて、ガンマ補正データを生成する(S14)。このとき、ガンマ補正データ生成部28は、RGB表色系用、YCrCb表色系用、Lab表色系用のガンマ補正データを順に生成する。ワークメモリ領域管理部29は、ガンマ補正データ生成部28によって順次生成される各表色系用のガンマ補正データをワークメモリ領域20にそれぞれ書き込む(S15)。   Next, the processing operation of the control unit 2 when the power of the image forming apparatus 1 is turned on will be described based on the flowchart shown in FIG. First, the gamma correction data generation instruction output unit 27 outputs a gamma correction data generation instruction to the gamma correction data generation unit 28 (S11). The gamma correction data generation unit 28 receives a gamma correction data generation instruction from the gamma correction data generation instruction output unit 27, and sends a first predetermined number of reference values and a first predetermined number to the EEPROM management unit 26. A target value reading instruction is output (S12). The EEPROM management unit 26 receives an instruction to read the first predetermined number of reference values and the first predetermined number of target values, and receives the first predetermined number of reference values and the first predetermined number of target values from the EEPROM 19. Is read (S13). The gamma correction data generation unit 28 generates gamma correction data based on the first predetermined number of reference values and the first predetermined number of target values read by the EEPROM management unit 26 (S14). At this time, the gamma correction data generation unit 28 sequentially generates gamma correction data for the RGB color system, the YCrCb color system, and the Lab color system. The work memory area management unit 29 writes gamma correction data for each color system sequentially generated by the gamma correction data generation unit 28 in the work memory area 20 (S15).

このように、EEPROM19に格納されている第1の所定数(本実施形態では、13個)の基準値、及び第1の所定数の目標値に基づいて、カラー画像データを構成する画素がとり得る、第1の所定数より大きい第2の所定数(本実施形態では、0〜255の256個)の画素値毎のガンマ補正後の値を規定するガンマ補正データが生成され、生成されたガンマ補正データがワークメモリ領域20に格納されているので、EEPROM19の記憶容量を削減することができる。   As described above, the pixels constituting the color image data are determined based on the first predetermined number (13 in the present embodiment) of reference values stored in the EEPROM 19 and the first predetermined number of target values. Gamma correction data that defines a value after gamma correction for each of the second predetermined number (in this embodiment, 256 from 0 to 255) of pixel values that is greater than the first predetermined number is generated and generated Since the gamma correction data is stored in the work memory area 20, the storage capacity of the EEPROM 19 can be reduced.

また、画像形成装置1の電源が切断された際に、ワークメモリ領域20に格納されているガンマ補正データが消去されるが、画像形成装置1の電源が投入された際に、ガンマ補正データが生成されるので、画像形成装置1の電源が投入されている間は、ガンマ補正データを保持することができる。   Also, when the power of the image forming apparatus 1 is turned off, the gamma correction data stored in the work memory area 20 is erased. However, when the power of the image forming apparatus 1 is turned on, the gamma correction data is deleted. Thus, the gamma correction data can be held while the image forming apparatus 1 is powered on.

また、カラー画像データは、ユーザによって選択された機能に基づいて色空間変換されるが、選択を受け付けた機能に基づいて選択された表色系に適したガンマ補正データに従ってガンマ補正されるので、色空間変換後の色再現性が良好である。また、複数の表色系に適したガンマ補正データが表色系毎に生成されるため、データ量が多くなるが、複数の表色系に適したガンマ補正データは、ワークメモリ領域20に格納されるので、EEPROM19の記憶容量を増加させる必要がない。   Also, the color image data is color space converted based on the function selected by the user, but is gamma corrected according to the gamma correction data suitable for the color system selected based on the function that received the selection. Good color reproducibility after color space conversion. Further, since gamma correction data suitable for a plurality of color systems is generated for each color system, the amount of data increases, but gamma correction data suitable for a plurality of color systems is stored in the work memory area 20. Therefore, it is not necessary to increase the storage capacity of the EEPROM 19.

また、CCD5により第1の所定数の基準画像A1乃至A13を読み取って得た第1の所定数の基準値、及びこれらに対応する第1の所定数の目標値に基づいて生成されたガンマ補正データに従って、CCD5により生成されたカラー画像データの各画素値がガンマ補正されるので、CCD5の特性に応じたガンマ補正を行うことができる。すなわち、機差に関係なく、精度の良いガンマ補正を行うことができる。   Further, the gamma correction generated based on the first predetermined number of reference values obtained by reading the first predetermined number of reference images A1 to A13 by the CCD 5 and the first predetermined number of target values corresponding thereto. Since each pixel value of the color image data generated by the CCD 5 is gamma-corrected according to the data, gamma correction according to the characteristics of the CCD 5 can be performed. That is, accurate gamma correction can be performed regardless of machine differences.

なお、本発明は以下の態様をとることができる。
(A)本実施形態においては、画像形成装置1の電源が投入された際に、ガンマ補正データを生成するようになっていたが、原稿の読取開始命令があった際に、ガンマ補正データを生成するようにしてもよい。
In addition, this invention can take the following aspects.
(A) In this embodiment, the gamma correction data is generated when the power of the image forming apparatus 1 is turned on. However, when the document reading start command is issued, the gamma correction data is generated. You may make it produce | generate.

具体的には、図8のフローチャートに示すように、ガンマ補正データ生成指示出力部27は、操作パネル18のスタートキーが操作されること等による、原稿の読取開始命令があったか否かを繰り返し判断する(S21)。ガンマ補正データ生成指示出力部27によって、原稿の読取開始命令があったと判断された場合(S21:YES)、ガンマ補正データ設定部30は、ユーザにより操作パネル18から選択された機能に基づいて、カラー画像データを色空間変換する表色系を選択する(S22)。続いて、ガンマ補正データ生成指示出力部27は、ガンマ補正データ設定部30により選択された表色系が、前回選択された表色系と異なるか否かを判断する(S23)。例えば、S22において選択された表色系がRGB表色系であり、前回選択された表色系がLab表色系である場合は、前回選択された表色系と異なると判断する。ガンマ補正データ生成指示出力部27は、前回選択された表色系と異なると判断した場合(S23:YES)、ガンマ補正データ生成部28に対して、ガンマ補正データの生成指示を出力する(S24)。ガンマ補正データ生成部28は、ガンマ補正データの生成指示を受け付け、EEPROM管理部26に対して、第1の所定数の基準値、及び第1の所定数の目標値の読み出し指示を出力する(S25)。EEPROM管理部26は、第1の所定数の基準値、及び第1の所定数の目標値の読み出し指示を受け付け、EEPROM19から第1の所定数の基準値、及び第1の所定数の目標値を読み出す(S26)。ガンマ補正データ生成部28は、EEPROM管理部26によって読み出された第1の所定数の基準値、及び第1の所定数の目標値に基づいて、ガンマ補正データを生成する(S27)。このとき、ガンマ補正データ生成部28は、ガンマ補正データ設定部30によって選択された表色系に適したガンマ補正データを生成する。ワークメモリ領域管理部29は、ガンマ補正データ生成部28によって生成されたガンマ補正データをワークメモリ領域20に書き込む(S28)。このとき、ワークメモリ領域管理部29は、ワークメモリ領域20にガンマ補正データが格納されている場合は、格納されているガンマ補正データに、S27においてガンマ補正データ生成部28によって生成されたガンマ補正データを上書きする。   Specifically, as shown in the flowchart of FIG. 8, the gamma correction data generation instruction output unit 27 repeatedly determines whether or not a document reading start command has been issued, for example, by operating the start key of the operation panel 18. (S21). When it is determined by the gamma correction data generation instruction output unit 27 that a document reading start command has been issued (S21: YES), the gamma correction data setting unit 30 is based on the function selected from the operation panel 18 by the user. A color system for color space conversion of color image data is selected (S22). Subsequently, the gamma correction data generation instruction output unit 27 determines whether or not the color system selected by the gamma correction data setting unit 30 is different from the previously selected color system (S23). For example, if the color system selected in S22 is the RGB color system and the color system selected last time is the Lab color system, it is determined that the color system is different from the color system selected last time. If the gamma correction data generation instruction output unit 27 determines that the color system is different from the previously selected color system (S23: YES), the gamma correction data generation instruction output unit 27 outputs a gamma correction data generation instruction to the gamma correction data generation unit 28 (S24). ). The gamma correction data generation unit 28 receives an instruction to generate gamma correction data and outputs an instruction to read out the first predetermined number of reference values and the first predetermined number of target values to the EEPROM management unit 26 ( S25). The EEPROM management unit 26 receives an instruction to read the first predetermined number of reference values and the first predetermined number of target values, and receives the first predetermined number of reference values and the first predetermined number of target values from the EEPROM 19. Is read (S26). The gamma correction data generation unit 28 generates gamma correction data based on the first predetermined number of reference values read by the EEPROM management unit 26 and the first predetermined number of target values (S27). At this time, the gamma correction data generation unit 28 generates gamma correction data suitable for the color system selected by the gamma correction data setting unit 30. The work memory area management unit 29 writes the gamma correction data generated by the gamma correction data generation unit 28 in the work memory area 20 (S28). At this time, if gamma correction data is stored in the work memory area 20, the work memory area management unit 29 adds the gamma correction generated by the gamma correction data generation unit 28 in S27 to the stored gamma correction data. Overwrite the data.

一方、ガンマ補正データ生成指示出力部27によって、ガンマ補正データ設定部30により選択された表色系が、前回選択された表色系と同一であると判断された場合(S23:NO)、S25乃至S28の処理を行わずに、待機する。この後、スキャナ画像処理回路8によって、ワークメモリ領域20に格納されているガンマ補正データに従って、CCD5によって読み取られた原稿のカラー画像データの各画素値が補正される。   On the other hand, when the gamma correction data generation instruction output unit 27 determines that the color system selected by the gamma correction data setting unit 30 is the same as the color system selected last time (S23: NO), S25. It waits without performing the process of thru | or S28. Thereafter, the scanner image processing circuit 8 corrects each pixel value of the color image data of the original read by the CCD 5 in accordance with the gamma correction data stored in the work memory area 20.

このように、ガンマ補正データ生成指示出力部27は、ガンマ補正データ設定部30により選択された表色系が、前回選択された表色系と異なると判断した場合、ガンマ補正データ生成部28に対して、ガンマ補正データの生成指示を出力する。ガンマ補正データ生成部28は、ガンマ補正データの生成指示が受け付けられた場合に、ガンマ補正データ設定部30により選択された表色系に適したガンマ補正データを生成する。ワークメモリ領域管理部29は、ガンマ補正データ生成部28によって生成されたガンマ補正データをワークメモリ領域20に格納されているガンマ補正データに上書きする。そして、スキャナ画像処理回路8は、ワークメモリ領域20に格納されているガンマ補正データに従ってCCD5により生成されたカラー画像データの各画素値をガンマ補正する。従って、ワークメモリ領域20に、カラー画像データが色空間変換される表色系毎に適したガンマ補正データを格納する必要がないため、ワークメモリ領域20の記憶容量を削減することができる。   As described above, when the gamma correction data generation instruction output unit 27 determines that the color system selected by the gamma correction data setting unit 30 is different from the color system selected last time, the gamma correction data generation instruction output unit 27 notifies the gamma correction data generation unit 28. On the other hand, an instruction to generate gamma correction data is output. The gamma correction data generation unit 28 generates gamma correction data suitable for the color system selected by the gamma correction data setting unit 30 when a gamma correction data generation instruction is received. The work memory area manager 29 overwrites the gamma correction data generated by the gamma correction data generator 28 on the gamma correction data stored in the work memory area 20. Then, the scanner image processing circuit 8 performs gamma correction on each pixel value of the color image data generated by the CCD 5 in accordance with the gamma correction data stored in the work memory area 20. Therefore, since it is not necessary to store gamma correction data suitable for each color system in which color image data is color space converted in the work memory area 20, the storage capacity of the work memory area 20 can be reduced.

(B)本実施形態においては、不揮発性記憶装置として、EEPROM19を使用した場合について説明したが、これに限定されるものではなく、例えば、ハードディスクであってもよい。   (B) In the present embodiment, the case where the EEPROM 19 is used as the nonvolatile storage device has been described. However, the present invention is not limited to this. For example, a hard disk may be used.

(C)本実施形態においては、画像形成装置1の電源が投入された際に、ガンマ補正データを生成するようになっていたが、RAM4が実装されたメイン基板(図1参照)が新たなメイン基板に交換された際に、ガンマ補正データを生成するようにしてもよい。   (C) In this embodiment, when the image forming apparatus 1 is turned on, the gamma correction data is generated. However, the main board (see FIG. 1) on which the RAM 4 is mounted is new. Gamma correction data may be generated when the main board is replaced.

(D)本実施形態においては、図5(a)及び図5(b)に示したように、点R0乃至R13の隣接する2点間を線形補間する基準値及び目標値を取得し、ガンマ補正データを生成するようになっていたが、これに限らず、例えば、点R0乃至R13の間を多項式補間、スプライン補間する基準値及び目標値を取得し、ガンマ補正データを生成するようにしてもよい。   (D) In this embodiment, as shown in FIGS. 5A and 5B, a reference value and a target value for linear interpolation between two adjacent points R0 to R13 are acquired, and gamma is obtained. The correction data is generated. However, the present invention is not limited to this. For example, reference values and target values for polynomial interpolation and spline interpolation between points R0 to R13 are acquired, and gamma correction data is generated. Also good.

(E)本実施形態においては、第1の所定数が「13」である場合(13個の基準画像を読み取って得られた13個の基準値と、13個の基準画像に基づいて生成された13個の目標値と、に基づいてガンマ補正データを生成する場合)について説明したが、これに限らず、第1の所定数は、「2」以上の数であればよく、例えば、15個の基準画像を読み取って得た15個の基準値と、15個の基準画像に基づいて生成された15個の基準画像と、に基づいてガンマ補正データを生成するようにしてもよい。   (E) In the present embodiment, when the first predetermined number is “13” (generated based on 13 reference values obtained by reading 13 reference images and 13 reference images). However, the present invention is not limited to this, and the first predetermined number may be a number equal to or greater than “2”. For example, 15 gamma correction data is generated based on 13 target values. The gamma correction data may be generated based on the 15 reference values obtained by reading the reference images and the 15 reference images generated based on the 15 reference images.

(F)本実施形態においては、CCD5により生成されるカラー画像データの画素値が0〜255の256個をとり得る場合、すなわち、読取手段として、0〜255の画素値を出力するCCDを使用する場合について説明したが、これに限らず、例えば、0〜512の画素値を出力する高性能のCCDを使用してもよい。この場合、第2の所定数は、本実施形態の「256」と異なり、「512」となる。   (F) In this embodiment, when the color image data generated by the CCD 5 can take 256 pixel values from 0 to 255, that is, as a reading unit, a CCD that outputs a pixel value from 0 to 255 is used. However, the present invention is not limited to this. For example, a high-performance CCD that outputs pixel values of 0 to 512 may be used. In this case, the second predetermined number is “512”, unlike “256” in the present embodiment.

(G)本実施形態においては、CCD5により生成されたカラー画像データの各画素値をガンマ補正する場合について説明したが、CCD5によりモノクロ画像を読み取り、生成されたモノクロ画像データの各画素値をガンマ補正することも可能である。この場合、グレースケール用のガンマ補正データを生成し、グレースケール用のガンマ補正データに従ってモノクロ画像データの各画素値をガンマ補正する。   (G) In the present embodiment, the case where each pixel value of the color image data generated by the CCD 5 is gamma-corrected has been described. However, the monochrome image is read by the CCD 5 and each pixel value of the generated monochrome image data is converted to gamma. It is also possible to correct. In this case, gamma correction data for gray scale is generated, and each pixel value of the monochrome image data is gamma corrected in accordance with the gamma correction data for gray scale.

(H)本実施形態においては、本発明の画像処理装置を、コピー機能、ファクシミリ機能、及びスキャナ機能を有する画像形成装置に適用した場合について説明したが、ガンマ補正を行う画像処理装置を具備した装置であれば、これに限定されるものではない。   (H) In the present embodiment, the case where the image processing apparatus of the present invention is applied to an image forming apparatus having a copy function, a facsimile function, and a scanner function has been described. However, an image processing apparatus that performs gamma correction is provided. The device is not limited to this as long as it is a device.

(I)本実施形態においては、複数の画素から構成される画像データの各画素値をガンマ補正データに従ってガンマ補正する場合について説明したが、補正前の画素値毎に補正後の画素値が設定された補正データに従って行われる補正(補正前の画素値と補正後の画素値とが1対1に対応付けられたテーブルによる補正)であれば、ガンマ補正に限定されるものではない。例えば、RGB表色系のカラー画像データのホワイトバランスを補正するホワイトバランス補正であってもよい。この場合、ホワイトバランス補正前の画素値毎にホワイトバランス補正後の画素値が設定されたホワイトバランス補正データに従って、RGB表色系のカラー画像データの各画素値を補正するようにすればよい。   (I) In this embodiment, a case has been described in which each pixel value of image data composed of a plurality of pixels is gamma-corrected according to gamma correction data. However, a pixel value after correction is set for each pixel value before correction. The correction is not limited to the gamma correction as long as the correction is performed according to the correction data (correction using a table in which the pixel values before correction and the pixel values after correction are correlated one-to-one). For example, white balance correction for correcting white balance of color image data of the RGB color system may be used. In this case, each pixel value of RGB color system color image data may be corrected in accordance with white balance correction data in which a pixel value after white balance correction is set for each pixel value before white balance correction.

(J)本実施形態においては、RGB表色系のカラー画像データの各画素値をガンマ補正する場合について説明したが、RGB表色系のカラー画像データに対する補正に限定されるものではなく、他の表色系の画像データに対する補正であってもよい。例えば、RGB表色系のカラー画像データがYCrCb(又はLab)表色系に変換された後の明度(輝度)成分であるY(又はL)のコントラストを補正するコントラスト補正であってもよい。   (J) In this embodiment, the case where each pixel value of RGB color system color image data is gamma-corrected has been described. However, the present invention is not limited to correction for RGB color system color image data. It is also possible to correct image data of the color system. For example, contrast correction for correcting the contrast of Y (or L) that is a lightness (luminance) component after the RGB color system color image data is converted to the YCrCb (or Lab) color system may be used.

本発明の実施形態に係る画像形成装置の一例を示したブロック図である。1 is a block diagram illustrating an example of an image forming apparatus according to an embodiment of the present invention. テストチャートの一例を示した図である。It is the figure which showed an example of the test chart. 第1の所定数の基準値、及び第1の所定数の目標値の一例を示した図である。It is the figure which showed an example of the 1st predetermined number of reference values and the 1st predetermined number of target values. 制御部の機能構成の一例を示したブロック図である。It is the block diagram which showed an example of the function structure of the control part. (a)は、第1の所定数の基準値、及び第1の所定数の目標値をグラフ上にプロットした図であり、(b)は、図5(a)におけるR1、R2間を結ぶ直線を示した図であり、(c)は、ガンマ補正データの一部を例示した図である。(A) is the figure which plotted the 1st predetermined number of reference values and the 1st predetermined number of target values on a graph, (b) connects between R1 and R2 in Fig.5 (a). It is the figure which showed the straight line, (c) is the figure which illustrated a part of gamma correction data. テストチャート読取モードが指示された場合の制御部の処理動作の一例を示した図である。It is the figure which showed an example of the processing operation of the control part when test chart reading mode was instruct | indicated. 画像形成装置の電源が投入された際の制御部の処理動作の一例を示したフローチャートである。3 is a flowchart illustrating an example of processing operation of a control unit when the image forming apparatus is powered on. 原稿の読取開始命令があった際の制御部の処理動作の一例を示したフローチャートである。5 is a flowchart illustrating an example of processing operation of a control unit when a document reading start command is issued.

符号の説明Explanation of symbols

1 画像形成装置(画像処理装置)
2 制御部
3 ROM
4 RAM
5 CCD(読取手段)
8 スキャナ画像処理回路(補正手段)
18 操作パネル(受付手段の一部)
19 EEPROM(第1の格納手段)
20 ワークメモリ領域(第2の格納手段)
27 ガンマ補正データ生成指示出力部(指示手段)
28 ガンマ補正データ生成部(生成手段の一部)
29 ワークメモリ領域管理部(生成手段の一部)
30 ガンマ補正データ設定部(選択手段、受付手段の一部)
1 Image forming device (image processing device)
2 Control unit 3 ROM
4 RAM
5 CCD (reading means)
8 Scanner image processing circuit (correction means)
18 Operation panel (part of acceptance means)
19 EEPROM (first storage means)
20 Work memory area (second storage means)
27 Gamma correction data generation instruction output unit (instruction means)
28 Gamma correction data generation unit (part of generation means)
29 Work memory area management part (part of generation means)
30 Gamma correction data setting section (selection means, part of reception means)

Claims (4)

不揮発性記憶装置、及び揮発性記憶装置を有し、複数の画素から構成される画像データの各画素値を、補正前の画素値毎に補正後の画素値が設定された補正データに従って補正する画像処理装置であって、前記画素値の第1の所定数の基準値と前記第1の所定数の基準値の補正後の値をそれぞれ規定する第1の所定数の目標値とを対応付けて前記不揮発性記憶装置に格納する第1の格納手段と、前記第1の格納手段に格納されている第1の所定数の基準値及び第1の所定数の目標値に基づいて、画像データを構成する画素がとり得る前記第1の所定数より大きい第2の所定数の画素値毎の補正後の値を規定する補正データを生成する生成手段と、前記生成手段により生成された補正データを格納する第2の格納手段と、前記第2の格納手段に格納されている補正データに従って画像データの各画素値を補正する補正手段と、を備える画像処理装置を具備し、
スキャナ、プリンタ、コピー、及びファクシミリの少なくとも2以上の機能を有する画像形成装置であって、前記複数の機能の内、いずれか1の選択を外部から受け付ける受付手段と、前記受付手段により選択を受け付けた機能に基づいて画像データの表色系を選択する選択手段と、を備え、
前記生成手段は、複数の表色系に適した補正データを表色系毎に生成して前記第2の格納手段にそれぞれ格納し、
前記補正手段は、前記第2の格納手段に格納されている各補正データの内、前記選択手段により選択された表色系に適した補正データに従って画像データの各画素値を補正することを特徴とする画像形成装置。
A non-volatile storage device and a volatile storage device are provided, and each pixel value of image data composed of a plurality of pixels is corrected according to correction data in which a corrected pixel value is set for each pixel value before correction. An image processing apparatus, wherein a first predetermined number of reference values of the pixel values are associated with a first predetermined number of target values that respectively define corrected values of the first predetermined number of reference values Image data based on a first storage means stored in the non-volatile storage device, a first predetermined number of reference values and a first predetermined number of target values stored in the first storage means Generating means for generating correction data defining a corrected value for each of a second predetermined number of pixel values larger than the first predetermined number that can be taken by the pixels constituting the correction data, and correction data generated by the generating means The second storage means for storing the data and the second storage means Comprising a correction means for correcting each pixel value of the image data, the image processing apparatus comprising according to the correction data being paid,
An image forming apparatus having at least two functions of a scanner, a printer, a copy, and a facsimile, wherein a receiving unit that accepts one of the plurality of functions is received from outside, and the selection is received by the receiving unit Selecting means for selecting the color system of the image data based on the function,
The generating means generates correction data suitable for a plurality of color systems for each color system and stores them in the second storage means,
The correction means corrects each pixel value of the image data according to correction data suitable for the color system selected by the selection means among the correction data stored in the second storage means. An image forming apparatus.
自装置の電源が投入された際に、前記生成手段に対して補正データの生成を指示する旨の情報を出力する指示手段を備え、
前記生成手段は、前記指示手段から補正データの生成を指示する旨の情報が受け付けられた場合に、前記補正データを生成し、
前記第2の格納手段は、前記生成手段により生成された補正データを前記揮発性記憶装置に格納することを特徴とする請求項1記載の画像形成装置
An instruction unit that outputs information to instruct the generation unit to generate correction data when the power of the device is turned on;
The generation unit generates the correction data when information indicating the generation of correction data is received from the instruction unit;
It said second storage means, the image forming apparatus according to claim 1, wherein the storing the correction data generated by said generating means to said volatile storage.
原稿の画像を読み取り、画像データを生成する読取手段を備え、A reading unit that reads an image of a document and generates image data;
前記第1の所定数の基準値は、前記読取手段により、原稿に形成された階調が異なる第1の所定数の基準画像を読み取って得られたものであり、The first predetermined number of reference values are obtained by reading the first predetermined number of reference images having different gradations formed on the original by the reading unit;
前記補正手段は、前記読取手段により生成された画像データの各画素値を補正することを特徴とする請求項1又は2記載の画像形成装置。The image forming apparatus according to claim 1, wherein the correction unit corrects each pixel value of the image data generated by the reading unit.
スキャナ、プリンタ、コピー、及びファクシミリの少なくとも2以上の機能を有する画像形成装置であって、An image forming apparatus having at least two functions of a scanner, a printer, a copy, and a facsimile,
不揮発性記憶装置、及び揮発性記憶装置を有し、複数の画素から構成される画像データの各画素値を、補正前の画素値毎に補正後の画素値が設定された補正データに従って補正する画像処理装置であって、前記画素値の第1の所定数の基準値と前記第1の所定数の基準値の補正後の値をそれぞれ規定する第1の所定数の目標値とを対応付けて前記不揮発性記憶装置に格納する第1の格納手段と、前記第1の格納手段に格納されている第1の所定数の基準値及び第1の所定数の目標値に基づいて、画像データを構成する画素がとり得る前記第1の所定数より大きい第2の所定数の画素値毎の補正後の値を規定する補正データを生成する生成手段と、前記生成手段により生成された補正データを格納する第2の格納手段と、前記第2の格納手段に格納されている補正データに従って画像データの各画素値を補正する補正手段と、を備える画像処理装置と、A non-volatile storage device and a volatile storage device are provided, and each pixel value of image data composed of a plurality of pixels is corrected according to correction data in which a corrected pixel value is set for each pixel value before correction. An image processing apparatus, wherein a first predetermined number of reference values of the pixel values are associated with a first predetermined number of target values that respectively define corrected values of the first predetermined number of reference values Image data based on a first storage means stored in the non-volatile storage device, a first predetermined number of reference values and a first predetermined number of target values stored in the first storage means Generating means for generating correction data defining a corrected value for each of a second predetermined number of pixel values larger than the first predetermined number that can be taken by the pixels constituting the correction data, and correction data generated by the generating means The second storage means for storing the data and the second storage means And correction means for correcting each pixel value of the image data according to the correction data being paid, and the image processing apparatus comprising,
原稿の画像を読み取り、画像データを生成する読取手段と、前記複数の機能の内、いずれか1の選択を外部から受け付ける受付手段と、前記受付手段により選択を受け付けた機能に基づいて画像データの表色系を選択する選択手段と、前記選択手段により選択された表色系が前回選択された表色系と異なる場合、前記読取手段により原稿の画像が読み取られる際に、前記生成手段に対して補正データの生成を指示する旨の情報を出力する指示手段と、を備え、A reading unit that reads an image of a document and generates image data, a receiving unit that accepts a selection of any one of the plurality of functions, and a function that receives the selection by the receiving unit. When the color image system selected by the selection unit and the color system selected by the selection unit are different from the color system selected last time, when the image of the original is read by the reading unit, Output means for instructing the generation of correction data, and
前記第1の所定数の基準値は、前記読取手段により、原稿に形成された階調が異なる第1の所定数の基準画像を読み取って得られたものであり、The first predetermined number of reference values are obtained by reading the first predetermined number of reference images having different gradations formed on the original by the reading unit;
前記生成手段は、前記指示手段から補正データの生成を指示する旨の情報が受け付けられた場合に、前記選択手段により選択された表色系に適した補正データを生成し、生成した補正データを前記第2の格納手段に格納されている補正データに上書きし、The generation unit generates correction data suitable for the color system selected by the selection unit when information indicating that generation of correction data is instructed from the instruction unit, and generates the generated correction data. Overwriting the correction data stored in the second storage means,
前記補正手段は、前記読取手段により生成された画像データの各画素値を補正することを特徴とする画像形成装置。  The image forming apparatus, wherein the correction unit corrects each pixel value of the image data generated by the reading unit.
JP2005242270A 2005-08-24 2005-08-24 Image forming apparatus Expired - Fee Related JP4155290B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005242270A JP4155290B2 (en) 2005-08-24 2005-08-24 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005242270A JP4155290B2 (en) 2005-08-24 2005-08-24 Image forming apparatus

Publications (2)

Publication Number Publication Date
JP2007060216A JP2007060216A (en) 2007-03-08
JP4155290B2 true JP4155290B2 (en) 2008-09-24

Family

ID=37923311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005242270A Expired - Fee Related JP4155290B2 (en) 2005-08-24 2005-08-24 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP4155290B2 (en)

Also Published As

Publication number Publication date
JP2007060216A (en) 2007-03-08

Similar Documents

Publication Publication Date Title
JP4708460B2 (en) Display control apparatus, image forming apparatus, display device control method, control program, and recording medium
JP4763027B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
JP4865771B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
US8659773B2 (en) Image sending apparatus and preview display method
US20100007915A1 (en) Image sending apparatus
US20090073516A1 (en) Image forming apparatus
JP2007097171A (en) Image forming apparatus and subtractive color printing method
JP4764938B2 (en) Image processing apparatus, image forming apparatus, image processing apparatus control method, program, and recording medium
JP4909964B2 (en) Image forming apparatus
US9019566B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer-readable storage medium containing image processing program
US20080043291A1 (en) Image forming apparatus
US8553299B2 (en) Color material usage estimating image processing apparatus, image forming apparatus, image processing method, and computer-readable recording medium on which image processing program is recorded
JP2008053905A (en) Image forming apparatus, system, method and system, and recording medium
US7554556B2 (en) Color image processing device and color image processing method
JP4795406B2 (en) Image processing apparatus, image forming apparatus, image processing apparatus control method, control program, and recording medium
JP4155290B2 (en) Image forming apparatus
JP4814162B2 (en) Image processing apparatus and image processing method
JP4990340B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP4360328B2 (en) Color image processing device
JP2006011754A (en) Image processing device and image processing method
JP2005057598A (en) Color image forming device and color image processor
JP5675867B2 (en) Image forming apparatus
JP2005192152A (en) Image processing apparatus and image color conversion processing method
JP2010093573A (en) Image forming apparatus, and method and program for generating color conversion lookup table
JP2006345086A (en) Image communication apparatus, control method of image communication apparatus, and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080226

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080617

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080630

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110718

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120718

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130718

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees