JP5960097B2 - Image forming apparatus and image forming method - Google Patents

Image forming apparatus and image forming method Download PDF

Info

Publication number
JP5960097B2
JP5960097B2 JP2013136752A JP2013136752A JP5960097B2 JP 5960097 B2 JP5960097 B2 JP 5960097B2 JP 2013136752 A JP2013136752 A JP 2013136752A JP 2013136752 A JP2013136752 A JP 2013136752A JP 5960097 B2 JP5960097 B2 JP 5960097B2
Authority
JP
Japan
Prior art keywords
patch
test chart
image forming
image data
unit
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
JP2013136752A
Other languages
Japanese (ja)
Other versions
JP2015012469A (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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2013136752A priority Critical patent/JP5960097B2/en
Publication of JP2015012469A publication Critical patent/JP2015012469A/en
Application granted granted Critical
Publication of JP5960097B2 publication Critical patent/JP5960097B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、画像形成装置及び画像形成方法に係り、特に階調補正を行う画像形成装置及び画像形成方法に関する。   The present invention relates to an image forming apparatus and an image forming method, and more particularly to an image forming apparatus and an image forming method for performing gradation correction.

従来から、文書や画像を印刷可能な複合機(Multifunctional Peripheral, MFP)や単機能のプリンター等の画像形成装置が存在する。
画像形成装置では、経年変化等により、所定期間でキャリブレーションを行って、画像形成手段の入出力特性を補正(以下、「階調補正」という。)する必要がある。
このような階調補正のために、通常、画像形成装置では、濃度の異なる複数の色見本(以下、「パッチ」という。)が並べられたテストチャートを画像形成手段から印刷可能である。
サービスマン等のユーザーは、印刷されたテストチャートのパッチと、予め印刷等されたリファレンスチャートのパッチとを目視や測色計や濃度計等により比較して、階調補正を行っている。
Conventionally, there are image forming apparatuses such as multifunction peripherals (MFPs) capable of printing documents and images and single-function printers.
In the image forming apparatus, it is necessary to calibrate in a predetermined period due to secular change or the like to correct the input / output characteristics of the image forming means (hereinafter referred to as “tone correction”).
For such tone correction, the image forming apparatus can usually print a test chart in which a plurality of color samples (hereinafter referred to as “patches”) having different densities are arranged from the image forming unit.
A user such as a serviceman performs gradation correction by comparing a patch of a printed test chart with a patch of a reference chart that has been printed in advance by visual observation, a colorimeter, a densitometer, or the like.

また、特許文献1を参照すると、複数の色のパッチを含む測定チャートを出力する測定チャート出力手段と、色濃度が既知の複数のパッチを含むリファレンスチャートと、前記測定チャート出力手段により出力された前記測定チャートとを含む撮像画像データを取得する撮像画像データ取得手段と、前記リファレンスチャートに含まれる各パッチの色濃度について各パッチを識別するパッチ識別情報に対応付けて保持するパッチ色濃度保持手段と、前記パッチ色濃度保持手段が各パッチ識別情報に対応付けて保持する各パッチの色濃度と、前記撮像画像データ取得手段が取得した前記撮像画像データのうち当該パッチ識別情報により特定されるパッチの画像データの色濃度とに基づいて、前記測定チャートの各パッチの色濃度を算出する色濃度算出手段とを備えたことを特徴とする画像形成装置が開示されている。
特許文献1の技術によれば、デジタルカメラ等の外部撮像装置により撮像された画像データから階調補正を行うことで、測色計や濃度計等を必要とせずに色補正を完了することができ、簡単かつ低コストで色補正を行うことができる。
Further, referring to Patent Document 1, a measurement chart output unit that outputs a measurement chart including a plurality of color patches, a reference chart that includes a plurality of patches with known color densities, and the measurement chart output unit outputs the measurement chart. Captured image data acquisition means for acquiring captured image data including the measurement chart, and patch color density holding means for holding the color density of each patch included in the reference chart in association with patch identification information for identifying each patch And the patch color density held by the patch color density holding unit in association with each patch identification information, and the patch specified by the patch identification information among the captured image data acquired by the captured image data acquisition unit The color density for calculating the color density of each patch of the measurement chart based on the color density of the image data of An image forming apparatus comprising the calculating means is disclosed.
According to the technique of Patent Document 1, color correction can be completed without the need for a colorimeter, a densitometer, or the like by performing tone correction from image data captured by an external imaging device such as a digital camera. Color correction can be performed easily and at low cost.

特開2006−222552号公報JP 2006-222552 A

しかしながら、特許文献1の技術では、画像データの撮像条件やデジタルカメラ等の撮像デバイスに由来する画像の歪みにより、階調補正の精度が悪かった。   However, in the technique of Patent Document 1, the accuracy of gradation correction is poor due to image data imaging conditions and image distortion derived from an imaging device such as a digital camera.

本発明は、このような状況に鑑みてなされたものであって、上述の問題点を解消する画像形成装置を提供することを課題とする。   The present invention has been made in view of such a situation, and an object thereof is to provide an image forming apparatus that solves the above-described problems.

本発明の画像形成装置は、画像形成手段の階調特性に対する階調補正を行う画像形成装置において、複数の色のパッチを含むテストチャートを前記画像形成手段に出力させるテストチャート出力手段と、該テストチャート出力手段により出力させたテストチャートと、色濃度が既知である複数の色のパッチを含むリファレンスチャートとが同時に撮像された画像データを取得する画像データ取得手段と、該画像データ取得手段により取得された前記画像データに含まれるレンズ歪みを補正する歪み補正手段と、該歪み補正手段により前記レンズ歪みが補正された前記画像データを射影変換する射影変換手段と、該射影変換手段により射影変換された前記画像データから、テストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域を検出するパッチ領域検出手段と、該パッチ領域検出手段により検出されたテストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域から色値を特定する色値特定手段と、該色値特定手段により特定されたテストチャート内の各パッチの色値及びリファレンスチャート内の各パッチの色値により前記画像形成手段の階調特性に対する階調補正データを作成する階調補正データ作成手段とを備え、前記テストチャート出力手段は、テストチャートに、各パッチを囲う格子状の罫線を出力させ、前記歪み補正手段は、前記画像データに含まれる格子状の罫線の交点である格子点の座標を検出し、前記レンズ歪みの無い理想状態における前記格子点の座標を(u,v)とすると、前記(u,v)は、下記の式(1)で示され、

Figure 0005960097
ここで、fx,fy:焦点距離、cx,cy:光軸中心であり、検出された前記格子点の座標(xd,yd)は、前記レンズ歪みによって前記レンズ歪みの無い理想状態における前記格子点の座標(u,v)とは異なり、下記の式(2)により示され、
Figure 0005960097
ここで、k1,k2,k3:半径方向の歪み係数、p1,p2:円周方向の歪み係数であり、前記式(1)を前記式(2)に代入した式に、検出された前記格子点の座標(xd,yd)の値を代入し、前記半径方向の歪み係数及び前記円周方向の歪み係数を算出し、算出された前記半径方向の歪み係数及び前記円周方向の歪み係数を代入した前記式(2)に、前記画像データの各格子点の座標を代入して算出された座標(u,v)に、検出された前記格子点の座標(xd,yd)を移動させることを特徴とする。
本発明の画像形成装置は、前記テストチャート出力手段は、テストチャートの位置を示すマーカーを出力させ、前記射影変換手段は、前記画像データから前記マーカーを検出し、前記マーカーの位置により前記画像データを射影変換することを特徴とする。
本発明の画像形成装置は、前記テストチャート出力手段は、テストチャート内の各パッチの大きさをリファレンスチャート内の各パッチと同じ大きさに出力し、リファレンスチャートをテストチャートに並べて配置させるための位置指定画像を出力することを特徴とする。
本発明の画像形成装置は、前記テストチャート出力手段は、CMYKのパッチ列毎に、リファレンスチャートと同一行の色値に対応する長方形形状のパッチを出力し、前記色値特定手段は、CMYKのパッチ列毎に、テストチャート内のパッチの色値と対応する濃度のリファレンスチャートのパッチの色値とを掛け合わせ、前記画像形成手段からの出力をリニアにするような値のテーブルを、前記階調補正データとして算出することを特徴とする。
本発明の画像形成方法は、画像形成手段の階調特性に対する階調補正を行う画像形成装置による画像形成方法において、前記画像形成装置は、複数の色のパッチを含むテストチャートを前記画像形成手段に出力させ、テストチャートの前記画像形成手段への出力は、テストチャートに、各パッチを囲う格子状の罫線を出力させ、出力させたテストチャートと、色濃度が既知である複数の色のパッチを含むリファレンスチャートとが同時に撮像された画像データを取得し、取得された前記画像データに含まれるレンズ歪みを補正し、前記レンズ歪みの補正において、前記画像データに含まれる格子状の罫線の交点である格子点の座標を検出し、前記レンズ歪みの無い理想状態における前記格子点の座標を(u,v)とすると、前記(u,v)は、下記の式(1)で示され、
Figure 0005960097
ここで、fx,fy:焦点距離、cx,cy:光軸中心であり、検出された前記格子点の座標(xd,yd)は、前記レンズ歪みによって前記レンズ歪みの無い理想状態における前記格子点の座標(u,v)とは異なり、下記の式(2)により示され、
Figure 0005960097
ここで、k1,k2,k3:半径方向の歪み係数、p1,p2:円周方向の歪み係数であり、前記式(1)を前記式(2)に代入した式に、検出された前記格子点の座標(xd,yd)の値を代入し、前記半径方向の歪み係数及び前記円周方向の歪み係数を算出し、算出された前記半径方向の歪み係数及び前記円周方向の歪み係数を代入した前記式(2)に、前記画像データの各格子点の座標を代入して算出された座標(u,v)に、検出された前記格子点の座標(xd,yd)を移動させ、前記レンズ歪みが補正された前記画像データを射影変換し、射影変換された前記画像データから、テストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域を検出し、検出されたテストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域から色値を特定し、特定されたテストチャート内の各パッチの色値及びリファレンスチャート内の各パッチの色値により前記画像形成手段の階調特性に対する階調補正データを作成することを特徴とする。
An image forming apparatus according to the present invention includes a test chart output unit that outputs a test chart including a plurality of color patches to the image forming unit in an image forming apparatus that performs gradation correction on the gradation characteristics of the image forming unit; Image data acquisition means for acquiring image data obtained by simultaneously imaging a test chart output by the test chart output means and a reference chart including a plurality of color patches with known color densities, and the image data acquisition means and distortion correcting means for correcting the lens distortion contained in the acquired image data, a projective transformation means for projective transformation of the image data to which the lens distortion is corrected by strained correcting means, projective transformation by projective transformation means From the image data thus obtained, each patch area in the test chart and each patch in the reference chart. Patch area detecting means for detecting the H area, color value specifying means for specifying a color value from each patch area in the test chart and each patch area in the reference chart detected by the patch area detecting means, Tone correction data creation for creating tone correction data for the tone characteristics of the image forming means based on the color value of each patch in the test chart specified by the color value specifying means and the color value of each patch in the reference chart The test chart output means outputs a grid-like ruled line surrounding each patch to the test chart, and the distortion correction means is a grid point that is an intersection of the grid-like ruled lines included in the image data. And the coordinates of the lattice points in the ideal state without lens distortion are (u, v), the (u, v) can be expressed by the following equation (1). In is shown,
Figure 0005960097
Here, fx, fy: focal length, cx, cy: optical axis center, and the coordinates (xd, yd) of the detected lattice point are the lattice points in the ideal state without the lens distortion due to the lens distortion. Unlike the coordinates (u, v), the following equation (2) shows:
Figure 0005960097
Here, k1, k2, k3: distortion coefficients in the radial direction, p1, p2: distortion coefficients in the circumferential direction, and the detected lattice in the expression obtained by substituting the expression (1) into the expression (2). Substituting the value of the coordinate (xd, yd) of the point, calculating the radial distortion coefficient and the circumferential distortion coefficient, and calculating the calculated radial distortion coefficient and the circumferential distortion coefficient. The coordinates (xd, yd) of the detected grid points are moved to the coordinates (u, v) calculated by substituting the coordinates of the grid points of the image data into the substituted equation (2). It is characterized by.
In the image forming apparatus of the present invention, the test chart output unit outputs a marker indicating the position of the test chart, and the projective conversion unit detects the marker from the image data, and the image data is detected based on the position of the marker. Projective transformation.
In the image forming apparatus of the present invention, the test chart output means outputs the size of each patch in the test chart to the same size as each patch in the reference chart, and arranges the reference chart side by side on the test chart. A position designation image is output.
The image forming apparatus of the present invention, the test chart output means, for each of CMYK patch array, and outputs a patch of rectangular shape corresponding to the color values of the reference chart and the same row, the color values specifying means, the CMYK For each patch row, a table of values for linearizing the output from the image forming means by multiplying the color value of the patch in the test chart by the color value of the patch of the reference chart of the corresponding density is provided. It is calculated as tone correction data.
The image forming method of the present invention is an image forming method by an image forming apparatus that performs gradation correction on the gradation characteristics of the image forming means, wherein the image forming apparatus uses a test chart including a plurality of color patches as the image forming means. The test chart is output to the image forming means by outputting a grid-like ruled line surrounding each patch to the test chart and outputting the test chart and a plurality of color patches with known color densities. The reference chart including the image data obtained simultaneously is acquired, the lens distortion included in the acquired image data is corrected, and the intersection of the grid-like ruled lines included in the image data in the correction of the lens distortion If the coordinates of the lattice points are detected and the coordinates of the lattice points in the ideal state without the lens distortion are (u, v), the (u, v) is Represented by the following formula (1),
Figure 0005960097
Here, fx, fy: focal length, cx, cy: optical axis center, and the coordinates (xd, yd) of the detected lattice point are the lattice points in the ideal state without the lens distortion due to the lens distortion. Unlike the coordinates (u, v), the following equation (2) shows:
Figure 0005960097
Here, k1, k2, k3: distortion coefficients in the radial direction, p1, p2: distortion coefficients in the circumferential direction, and the detected lattice in the expression obtained by substituting the expression (1) into the expression (2). Substituting the value of the coordinate (xd, yd) of the point, calculating the radial distortion coefficient and the circumferential distortion coefficient, and calculating the calculated radial distortion coefficient and the circumferential distortion coefficient. The coordinates (xd, yd) of the detected grid points are moved to the coordinates (u, v) calculated by substituting the coordinates of the grid points of the image data into the substituted equation (2), the lens distortion and projection transformation of the image data corrected, the projective transformed the image data, detects the area of each patch in the region and in the reference chart of each patch in the test chart, the detected test chart Each patch area and referrer A color value is specified from the area of each patch in the process chart, and tone correction is performed for the tone characteristics of the image forming unit based on the color value of each patch in the specified test chart and the color value of each patch in the reference chart It is characterized by creating data.

本発明によれば、撮像された画像データに含まれるレンズ歪みを補正することで、精度よく階調補正を行うことができる画像形成装置を提供することができる。   According to the present invention, it is possible to provide an image forming apparatus capable of performing gradation correction with high accuracy by correcting lens distortion included in captured image data.

本発明の画像形成装置の実施の形態に係るシステム構成図である。1 is a system configuration diagram according to an embodiment of an image forming apparatus of the present invention. 図1に示す画像形成装置の制御構成を示すブロック図である。FIG. 2 is a block diagram illustrating a control configuration of the image forming apparatus illustrated in FIG. 1. 図1に示す画像形成装置の概略図である。FIG. 2 is a schematic diagram of the image forming apparatus illustrated in FIG. 1. 本発明の実施の形態に係るテストチャート出力及び撮像処理のフローチャートである。It is a flowchart of the test chart output and imaging process which concern on embodiment of this invention. 図4に示すテストチャート出力及び撮像処理の概念図である。It is a conceptual diagram of the test chart output and imaging process shown in FIG. 本発明の実施の形態に係る階調補正処理のフローチャートである。It is a flowchart of the gradation correction process which concerns on embodiment of this invention. 図6に示す歪み補正処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the distortion correction process shown in FIG. 図7に示す罫線認識処理の概念図である。It is a conceptual diagram of the ruled line recognition process shown in FIG. 図7に示す歪み補正適用処理の概念図である。It is a conceptual diagram of the distortion correction application process shown in FIG. 図6に示す射影変換処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the projective transformation process shown in FIG. 図10に示すマーカー認識処理及び射影変換適用処理の概念図である。It is a conceptual diagram of the marker recognition process and projective transformation application process shown in FIG. 図6に示す階調補正データ作成処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the gradation correction data creation process shown in FIG. 図12に示す階調補正データ算出処理の概念図である。It is a conceptual diagram of the gradation correction data calculation process shown in FIG.

<実施の形態>
〔画像形成装置1のシステム構成〕
図1を参照して説明すると、画像形成装置1は、画像処理部11、搬送部(給紙ローラー422、搬送ローラー44、排出ローラー45)、ネットワーク送受信部15、操作パネル部16、画像形成部17(画像形成手段)、及び記憶部19等が制御部10に接続されている。また、制御部10には、外部機器2を接続する外部機器接続部20が接続されている。
各部は、制御部10によって動作制御される。
<Embodiment>
[System Configuration of Image Forming Apparatus 1]
Referring to FIG. 1, the image forming apparatus 1 includes an image processing unit 11, a conveyance unit (a paper feed roller 422, a conveyance roller 44, and a discharge roller 45), a network transmission / reception unit 15, an operation panel unit 16, and an image formation unit. 17 (image forming means), a storage unit 19 and the like are connected to the control unit 10. Further, an external device connection unit 20 for connecting the external device 2 is connected to the control unit 10.
The operation of each unit is controlled by the control unit 10.

制御部10は、GPP(General Purpose Processor)、CPU(Central Processing Unit、中央処理装置)、MPU(Micro Processing Unit)、DSP(Digital Signal Processor)、GPU(Graphics Processing Unit)、ASIC(Application Specific Processor、特定用途向けプロセッサー)等の情報処理手段である。
制御部10は、記憶部19のROMやHDDに記憶されている制御プログラムを読み出して、この制御プログラムをRAMに展開させて実行することで、後述する機能ブロックの各手段として動作させられる。また、制御部10は、操作パネル部16から入力された所定の指示情報に応じて、装置全体の制御を行う。
The control unit 10 includes a general purpose processor (GPP), a central processing unit (CPU), a micro processing unit (MPU), a digital signal processor (DSP), a graphics processing unit (GPU), and an application specific processor (ASIC). Information processing means such as a processor for a specific application)
The control unit 10 reads out a control program stored in the ROM or HDD of the storage unit 19, develops the control program in the RAM, and executes it to operate as each unit of a functional block described later. Further, the control unit 10 controls the entire apparatus according to predetermined instruction information input from the operation panel unit 16.

画像処理部11は、DSP(Digital Signal Processor)やGPU(Graphics Processing Unit)等の制御演算手段である。画像処理部11は、画像データに対して所定の画像処理を行う手段であり、例えば、拡大縮小処理、濃度調整、階調調整、画像改善処理等の各種画像処理を行う。
画像処理部11は、外部機器2や外部ネットワークから受信した画像データを、PDFやTIFF等のフォーマットのファイル単位に変換した上で、記憶部19に印刷データとして記憶することも可能である。
The image processing unit 11 is control arithmetic means such as a DSP (Digital Signal Processor) or a GPU (Graphics Processing Unit). The image processing unit 11 is a unit that performs predetermined image processing on image data, and performs various types of image processing such as enlargement / reduction processing, density adjustment, gradation adjustment, and image improvement processing.
The image processing unit 11 can also convert image data received from the external device 2 or an external network into a file unit in a format such as PDF or TIFF, and store the converted data in the storage unit 19 as print data.

画像形成部17は、ユーザーの出力指示により、ユーザーの端末(図示せず)から取得し、記憶部19に記憶し、又は外部機器2で撮像したデータから記録紙への画像形成を行わせる手段である。
搬送部は、給紙カセット421(図3)から記録紙を搬送し、画像形成部17で画像形成させ、その後にトレイ部50へ搬送する。
なお、搬送部及び画像形成部17の動作については後述する。
The image forming unit 17 is a unit that is obtained from a user terminal (not shown) and stored in the storage unit 19 according to a user output instruction, or causes image formation on recording paper from data captured by the external device 2 It is.
The transport unit transports the recording paper from the paper feed cassette 421 (FIG. 3), causes the image forming unit 17 to form an image, and then transports it to the tray unit 50.
The operations of the transport unit and the image forming unit 17 will be described later.

ネットワーク送受信部15は、外部ネットワークに接続するためのLANボードや無線送受信機等を含むネットワーク接続手段である。この外部ネットワークは、有線、無線のインターネットやイントラネットや携帯電話網等である。
ネットワーク送受信部15は、データ通信用の回線ではデータを送受信し、音声電話回線では音声信号を送受信する。
The network transmission / reception unit 15 is a network connection unit including a LAN board and a wireless transceiver for connecting to an external network. The external network is a wired or wireless Internet, an intranet, a mobile phone network, or the like.
The network transmission / reception unit 15 transmits / receives data on a data communication line and transmits / receives voice signals on a voice telephone line.

操作パネル部16は、ユーザーによる画像形成装置1の各種ジョブの指示を取得する。また、操作パネル部16から取得したユーザーの指示により、各ユーザーの情報を入力、変更することも可能である。   The operation panel unit 16 acquires instructions for various jobs of the image forming apparatus 1 by the user. It is also possible to input and change information of each user according to user instructions acquired from the operation panel unit 16.

記憶部19は、ROM(Read Only Memory)、RAM(Random Access Memory)等の半導体メモリーやHDD(Hard Disk Drive)等の記録媒体を用いた記憶手段である。
記憶部19のROMやHDDには画像形成装置1の動作制御を行うための制御プログラム、及び後述する各種データ等が記憶されている。
なお、記憶部19には、一時ファイルの保存領域等が含まれている。また、記憶部19は、制御部10のユーザーの端末(図示せず)から送信された印刷データ、サムネイル画像、その他の各種ファイルのデータ等も記憶している。
The storage unit 19 is a storage unit that uses a semiconductor memory such as a ROM (Read Only Memory) or a RAM (Random Access Memory) or a recording medium such as an HDD (Hard Disk Drive).
The ROM and HDD of the storage unit 19 store a control program for controlling the operation of the image forming apparatus 1 and various data to be described later.
The storage unit 19 includes a temporary file storage area and the like. The storage unit 19 also stores print data, thumbnail images, data of various other files, and the like transmitted from a user terminal (not shown) of the control unit 10.

外部機器接続部20は、外部機器2が接続される。外部機器接続部20は、USB1.1、2.0、3.0等の各種USBやIEEE1394等のホスト用のコネクタ、HDMI(登録商標)や色差入力やビデオ入力用のコネクタ、無線LANやNFC(Near Field Communication)やBluetooth(登録商標)の接続回路とアンテナ、接続制御回路等から構成される。外部機器接続部20の接続制御回路は、外部機器2とのアクセスを制御するホスト部や、外部機器との通信を制御するN/Wインターフェイス部、インターフェイス部、ビデオキャプチャー部等を含んでいる。
外部機器2は、デジタルカメラ、ビデオカメラ、携帯電話、スマートフォン、タブレット、PDA(Personal Data Assistant)、ウェブカメラ、ネットワークカメラ、USBメモリー、SDカード/xD/メモリースティック等の各種フラッシュメモリーカード、USB接続HDD、NFC、RFID(Radio Frequency IDentification)カードのリーダー等である。
The external device connection unit 20 is connected to the external device 2. The external device connection unit 20 includes various USB and USB 1394 connectors such as USB 1.1, 2.0 and 3.0, connectors for HDMI (registered trademark), color difference input and video input, wireless LAN and NFC. (Near Field Communication) or Bluetooth (registered trademark) connection circuit, an antenna, a connection control circuit, and the like. The connection control circuit of the external device connection unit 20 includes a host unit that controls access to the external device 2, an N / W interface unit that controls communication with the external device, an interface unit, a video capture unit, and the like.
The external device 2 is a digital camera, video camera, mobile phone, smartphone, tablet, PDA (Personal Data Assistant), web camera, network camera, USB memory, various flash memory cards such as SD card / xD / memory stick, USB connected HDD NFC, RFID (Radio Frequency IDentification) card reader, and the like.

外部機器接続部20に接続された外部機器2は、CCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)撮像センサー等の撮像デバイスを備えたカメラ等が内蔵されている場合には、画像を撮像して画像データ500(図2)を作成する撮像手段として機能する。
また、外部機器2は、記憶媒体が内蔵されている場合には、記憶部19と同様に、既にデジタルカメラ等で取得された画像データ500を記憶する記憶手段として機能する。
When the external device 2 connected to the external device connection unit 20 has a built-in camera having an imaging device such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor) imaging sensor, an image is displayed. It functions as an imaging means for imaging and creating image data 500 (FIG. 2).
When the storage device is built in, the external device 2 functions as a storage unit that stores the image data 500 that has already been acquired by a digital camera or the like, like the storage unit 19.

なお、上述の例では、外部機器接続部20が一つのように記載した。しかしながら、画像形成装置1の外部機器接続部20の数は任意である。また、USBポートに接続された外部のUSBハブ等のポートに外部機器2が接続されるような構成も可能である。
また、画像形成装置1において、制御部10及び画像処理部11は、GPU内蔵CPU等やチップ・オン・モジュールパッケージのように、一体的に形成されていてもよい。
また、制御部10及び画像処理部11は、RAMやROMやフラッシュメモリー等を内蔵していてもよい。
また、画像形成装置1は、ファクシミリの送受信を行うFAX送受信部を備えていてもよい。
In the above example, the external device connection unit 20 is described as one. However, the number of external device connection units 20 of the image forming apparatus 1 is arbitrary. A configuration in which the external device 2 is connected to a port such as an external USB hub connected to the USB port is also possible.
In the image forming apparatus 1, the control unit 10 and the image processing unit 11 may be integrally formed, such as a CPU with a built-in GPU or a chip-on-module package.
The control unit 10 and the image processing unit 11 may include a RAM, a ROM, a flash memory, and the like.
Further, the image forming apparatus 1 may include a FAX transmission / reception unit that performs facsimile transmission / reception.

〔画像形成装置1の制御構成〕
図2を参照して、本実施形態の画像形成装置1の制御構成について、機能ブロックを基に説明する。
画像形成装置1は、テストチャート出力部100(テストチャート出力手段)、画像データ取得部110(画像データ取得手段)、歪み補正部120(歪み補正手段)、射影変換部130(射影変換手段)、パッチ領域検出部140(パッチ領域検出手段)、色値特定部150(色値特定手段)、及び階調補正データ作成部160(階調補正データ作成手段)を備えている。
また、記憶部19には、画像データ500、階調補正データ510、テストチャートデータ520、マーカーデータ530が記憶されている。
[Control Configuration of Image Forming Apparatus 1]
With reference to FIG. 2, the control configuration of the image forming apparatus 1 of the present embodiment will be described based on functional blocks.
The image forming apparatus 1 includes a test chart output unit 100 (test chart output unit), an image data acquisition unit 110 (image data acquisition unit), a distortion correction unit 120 (distortion correction unit), a projection conversion unit 130 (projection conversion unit), A patch area detecting unit 140 (patch area detecting unit), a color value specifying unit 150 (color value specifying unit), and a gradation correction data creating unit 160 (gradation correction data creating unit) are provided.
Further, the storage unit 19 stores image data 500, gradation correction data 510, test chart data 520, and marker data 530.

テストチャート出力部100は、複数の色のパッチを含むテストチャートデータ520を画像形成部17にテストチャートとして出力させる。
また、テストチャート出力部100は、テストチャートデータ520により、テストチャートに、各パッチを囲う格子状の罫線を出力させる。
また、テストチャート出力部100は、マーカーデータ530により、テストチャートの位置を示すマーカーを出力させる。
また、テストチャート出力部100は、テストチャートデータ520により、テストチャート内の各パッチの大きさをリファレンスチャート内の各パッチと同じ大きさに出力する。また、テストチャート出力部100は、テストチャートデータ520により、リファレンスチャートをテストチャートに並べて配置させるための位置指定画像を出力する。
The test chart output unit 100 causes the image forming unit 17 to output test chart data 520 including a plurality of color patches as a test chart.
Further, the test chart output unit 100 causes the test chart data 520 to output a grid-like ruled line surrounding each patch on the test chart.
In addition, the test chart output unit 100 causes the marker data 530 to output a marker indicating the position of the test chart.
Further, the test chart output unit 100 outputs the size of each patch in the test chart to the same size as each patch in the reference chart based on the test chart data 520. Further, the test chart output unit 100 outputs a position designation image for arranging and arranging the reference chart on the test chart based on the test chart data 520.

画像データ取得部110は、テストチャート出力部100により出力させたテストチャートと、色濃度が既知である複数の色のパッチを含むリファレンスチャートとが同時に撮像された画像データ500を、外部機器2から取得する。   The image data acquisition unit 110 receives, from the external device 2, image data 500 in which the test chart output by the test chart output unit 100 and the reference chart including a plurality of color patches with known color densities are simultaneously captured. get.

歪み補正部120は、画像データ取得部110により取得された画像データ500に含まれるレンズ歪みを補正する。
歪み補正部120は、画像データ500に含まれる格子状の罫線を認識し、この罫線の交点の位置を算出して、レンズ歪みを補正する。
The distortion correction unit 120 corrects lens distortion included in the image data 500 acquired by the image data acquisition unit 110.
The distortion correction unit 120 recognizes a grid-like ruled line included in the image data 500, calculates the position of the intersection of the ruled line, and corrects lens distortion.

射影変換部130は、歪み補正部120によりレンズ歪みが補正された画像データ500を射影変換する。
射影変換部130は、画像データ500からマーカーを検出し、マーカーの位置により画像データ500を射影変換する。
The projective conversion unit 130 performs projective conversion on the image data 500 whose lens distortion has been corrected by the distortion correction unit 120.
The projective conversion unit 130 detects a marker from the image data 500 and performs projective conversion on the image data 500 based on the position of the marker.

パッチ領域検出部140は、射影変換部130により射影変換された画像データ500から、テストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域を検出する。
パッチ領域検出部140は、例えば、画像データ500に含まれる格子状の罫線の内部にある色付きの長方形等の形状を認識し、これから各パッチの領域を検出する。
The patch area detection unit 140 detects the area of each patch in the test chart and the area of each patch in the reference chart from the image data 500 subjected to the projective conversion by the projective conversion unit 130.
For example, the patch area detection unit 140 recognizes a shape such as a colored rectangle inside the grid-like ruled line included in the image data 500, and detects the area of each patch from this.

色値特定部150は、パッチ領域検出部140により検出されたテストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域から色値を特定する。   The color value specifying unit 150 specifies a color value from each patch area in the test chart and each patch area in the reference chart detected by the patch area detection unit 140.

階調補正データ作成部160は、色値特定部150により特定されたテストチャート内の各パッチの色値及びリファレンスチャート内の各パッチの色値により画像形成部17の階調特性に対する階調補正データ510を作成する。   The gradation correction data creation unit 160 performs gradation correction on the gradation characteristics of the image forming unit 17 based on the color value of each patch in the test chart specified by the color value specifying unit 150 and the color value of each patch in the reference chart. Data 510 is created.

画像データ500は、テストチャート出力部100により画像形成部17に出力させたテストチャートと、色及び濃度(以下、「色濃度」という。)が既知である複数の色のパッチを含むリファレンスチャートとが同時にデジタルカメラ等で撮像された画像のデータである。
画像データ500は、例えば、JPEG形式や所定形式のビットマップ等のRAW形式の画像フォーマットであってもよい。また、画像データ500は、各画素のRGB値を取得可能である。
The image data 500 includes a test chart output to the image forming unit 17 by the test chart output unit 100, a reference chart including a plurality of color patches whose colors and densities (hereinafter referred to as “color densities”) are known. Is data of an image simultaneously captured by a digital camera or the like.
The image data 500 may be, for example, an RAW format image format such as a JPEG format or a bitmap of a predetermined format. The image data 500 can acquire the RGB value of each pixel.

階調補正データ510は、例えば、画像形成部17へ出力の濃度の入力値と、実際に記録紙に出力される濃度とが、ほぼ線形(リニア)になるように補正するためのテーブル等である。階調補正データ510は、例えば、C(Cyan)、M(Magenta)、Y(Yellow)とK(Key Plate、blacK)の各色につき、入出力の特性の補正値を含んでいる。階調補正データ510は、各色の補正値として、例えば、8ビットであれば0〜255の各濃度の入力値に対して、画像形成部17で画像形成される濃度の出力値を何倍するかといった値をテーブルとして含んでいる。
なお、階調補正データ510は、所定の入力値の間隔で補完される曲線のような形式であってもよい。
The gradation correction data 510 is, for example, a table for correcting the input value of the density output to the image forming unit 17 and the density actually output to the recording paper so as to be substantially linear. is there. The tone correction data 510 includes input / output characteristic correction values for each color of C (Cyan), M (Magenta), Y (Yellow), and K (Key Plate, blacK), for example. The gradation correction data 510 is a correction value for each color. For example, if it is 8 bits, the output value of the density formed by the image forming unit 17 is multiplied by the input value of each density of 0 to 255. This value is included as a table.
Note that the gradation correction data 510 may be in the form of a curve that is complemented at intervals of predetermined input values.

テストチャートデータ520は、CMYK各色の複数の色のパッチを含むテストチャートを描画するためのビットマップ画像データやPDL(Page Description Language)データ等である。
また、テストチャートデータ520は、各パッチの位置及び色の種類を示すデータを含んでいる。テストチャートデータ520の複数の色のパッチの大きさは、リファレンスチャート内の各パッチと同じ大きさに出力されるように構成されている。
また、テストチャートデータ520には、リファレンスチャートをテストチャートに並べて配置させるためのリファレンスチャート枠650(図5)を描画するための位置指定画像のデータも含まれている。
The test chart data 520 is bitmap image data or PDL (Page Description Language) data for drawing a test chart including a plurality of color patches of CMYK colors.
The test chart data 520 includes data indicating the position and color type of each patch. The size of the plurality of color patches in the test chart data 520 is configured to be output to the same size as each patch in the reference chart.
Further, the test chart data 520 includes data of a position designation image for drawing a reference chart frame 650 (FIG. 5) for arranging and arranging the reference chart on the test chart.

マーカーデータ530は、テストチャートに描画されるマーカーのビットマップ画像データやPDLデータ等である。
マーカーデータ530は、テストチャート上のマーカーの数と位置のデータも含んでいる。たとえば、マーカーデータ530は、パッチ群640(図5)及びリファレンスチャート枠650の外側の四隅の所定位置に描画されるマーカー630の位置データ等を含んでいる。
The marker data 530 is bitmap image data or PDL data of a marker drawn on the test chart.
The marker data 530 also includes data on the number and position of markers on the test chart. For example, the marker data 530 includes the patch group 640 (FIG. 5), position data of the marker 630 drawn at predetermined positions at the four corners outside the reference chart frame 650, and the like.

ここで、画像形成装置1の制御部10及び画像処理部11は、記憶部19に記憶された制御プログラムを実行することで、テストチャート出力部100、画像データ取得部110、歪み補正部120、射影変換部130、パッチ領域検出部140、色値特定部150、階調補正データ作成部160として機能する。
また、上述の画像形成装置1の各部は、本発明の画像形成方法を実行するハードウェア資源となる。
Here, the control unit 10 and the image processing unit 11 of the image forming apparatus 1 execute the control program stored in the storage unit 19, so that the test chart output unit 100, the image data acquisition unit 110, the distortion correction unit 120, It functions as a projection conversion unit 130, a patch area detection unit 140, a color value identification unit 150, and a gradation correction data creation unit 160.
Each unit of the image forming apparatus 1 is a hardware resource for executing the image forming method of the present invention.

〔画像形成装置1の動作〕
図3を参照し、本発明の実施の形態に係る画像形成装置1の動作について説明する。
トレイ部50は、画像形成部17により記録が施された記録紙の排出口41側に配設され、また、操作パネル部16は、画像形成装置1のフロント側に配設されている。
[Operation of Image Forming Apparatus 1]
The operation of the image forming apparatus 1 according to the embodiment of the present invention will be described with reference to FIG.
The tray unit 50 is disposed on the discharge port 41 side of the recording sheet on which recording is performed by the image forming unit 17, and the operation panel unit 16 is disposed on the front side of the image forming apparatus 1.

本体部14は、画像形成部17を備えると共に、給紙部42と、用紙搬送路43と、搬送ローラー44と、排出ローラー45とを備えている。給紙部42は、それぞれサイズ又は向きが異なる記録紙を収納する複数の給紙カセット421と、給紙カセット421から記録紙を1枚ずつ用紙搬送路43に繰り出す給紙ローラー422とを備えている。給紙ローラー422、搬送ローラー44、及び排出ローラー45は、搬送部として機能する。記録紙は、この搬送部により搬送される。
給紙ローラー422によって用紙搬送路43に繰り出された記録紙は、搬送ローラー44によって画像形成部17に搬送される。そして、画像形成部17によって記録が施された記録紙は、排出ローラー45によってトレイ部50に排出される。
The main body 14 includes the image forming unit 17, and includes a paper feeding unit 42, a paper conveyance path 43, a conveyance roller 44, and a discharge roller 45. The paper feed unit 42 includes a plurality of paper feed cassettes 421 that store recording papers of different sizes or orientations, and a paper feed roller 422 that feeds the recording papers one by one from the paper feed cassette 421 to the paper transport path 43. Yes. The paper feed roller 422, the transport roller 44, and the discharge roller 45 function as a transport unit. The recording paper is conveyed by this conveyance unit.
The recording paper fed to the paper transport path 43 by the paper feed roller 422 is transported to the image forming unit 17 by the transport roller 44. Then, the recording paper on which recording has been performed by the image forming unit 17 is discharged to the tray unit 50 by the discharge roller 45.

画像形成部17は、感光体ドラム17aと、露光部17bと、現像部17cと、転写部17dと、定着部17eとを備えている。露光部17bは、レーザー装置やミラーやレンズやLEDアレイ等を備えた光学ユニットであり、画像データに基づいて光等を出力して感光体ドラム17aを露光し、感光体ドラム17aの表面に静電潜像を形成する。現像部17cは、トナーを用いて感光体ドラム17aに形成された静電潜像を現像する現像ユニットであり、静電潜像に基づいたトナー像を感光体ドラム17a上に形成させる。転写部17dは、現像部17cによって感光体ドラム17a上に形成されたトナー像を記録紙に転写させる。定着部17eは、転写部17dによってトナー像が転写された記録紙を加熱してトナー像を記録紙に定着させる。   The image forming unit 17 includes a photosensitive drum 17a, an exposure unit 17b, a developing unit 17c, a transfer unit 17d, and a fixing unit 17e. The exposure unit 17b is an optical unit including a laser device, a mirror, a lens, an LED array, and the like. The exposure unit 17b outputs light or the like based on image data to expose the photosensitive drum 17a, and the surface of the photosensitive drum 17a is statically exposed. An electrostatic latent image is formed. The developing unit 17c is a developing unit that develops the electrostatic latent image formed on the photosensitive drum 17a using toner, and forms a toner image based on the electrostatic latent image on the photosensitive drum 17a. The transfer unit 17d transfers the toner image formed on the photosensitive drum 17a by the developing unit 17c to a recording sheet. The fixing unit 17e heats the recording paper on which the toner image is transferred by the transfer unit 17d to fix the toner image on the recording paper.

〔画像形成装置1によるテストチャート出力及び撮像処理〕
図4及び図5を参照して、本発明の画像形成装置1の実施の形態に係るテストチャート出力及び撮像処理の説明を行う。
この処理においては、複数の色のパッチを含むテストチャートを画像形成部17に出力させる。そして、出力させたテストチャートに、色濃度が既知である複数の色のパッチを含むリファレンスチャートを配置して、外部機器2又はその他のデジタルカメラ等で同時に撮像する。
テストチャート出力に関する処理は、主に制御部10が、記憶部19に記憶されたプログラムを、各部と協働してハードウェア資源を用いて実行する。
また、撮像に関する処理は、ユーザーの指示により、外部機器2又はその他のデジタルカメラ等が、各部と協働してハードウェア資源を用いて実行する。
[Test Chart Output and Imaging Process by Image Forming Apparatus 1]
With reference to FIG.4 and FIG.5, the test chart output and imaging process which concern on embodiment of the image forming apparatus 1 of this invention are demonstrated.
In this processing, a test chart including a plurality of color patches is output to the image forming unit 17. Then, a reference chart including a plurality of color patches with known color densities is arranged on the output test chart, and images are simultaneously captured by the external device 2 or another digital camera.
In the processing related to the test chart output, the control unit 10 mainly executes the program stored in the storage unit 19 using hardware resources in cooperation with each unit.
Further, the processing related to imaging is executed by the external device 2 or other digital camera or the like using hardware resources in cooperation with each unit according to a user instruction.

(ステップS101)
まず、制御部10は、テストチャート出力部100により、テストチャート出力処理を行う。
図5(a)を参照すると、制御部10は、画像データ500を描画(ラスタライズ)して、記憶部19に描画用のビットマップデータを一時ファイルとして作成する。
制御部10は、例えば、テストチャートデータ520を基に、CMYK各色に対応するパッチ列を含むパッチ群640を描画するための罫線と、リファレンスチャート枠650とを描画する。また、制御部10は、パッチ群640内には、例えば、CMYKそれぞれについて、所定数の濃度別の長方形形状のパッチを描画する。
(Step S101)
First, the control unit 10 performs a test chart output process using the test chart output unit 100.
Referring to FIG. 5A, the control unit 10 draws (rasterizes) the image data 500 and creates bitmap data for drawing in the storage unit 19 as a temporary file.
For example, based on the test chart data 520, the control unit 10 draws a ruled line for drawing a patch group 640 including a patch row corresponding to each color of CMYK and a reference chart frame 650. In addition, the control unit 10 draws, for example, a predetermined number of rectangular patches for each density in the patch group 640 for each of CMYK.

(ステップS102)
次に、制御部10は、テストチャート出力部100により、マーカー出力処理を行う。制御部10は、例えば、マーカーデータ530を基に、パッチ群640及びリファレンスチャート枠650の外部の所定位置にマーカー630を、記憶部19の描画用のビットマップデータに描画する。この際、制御部10は各マーカーより外に枠線等を描画してもよい。
なお、制御部10は、マーカー630を、四隅のいずれかに別々の形状のマーカー630を描画することで、テストチャートの方向を示すことも可能である。
また、制御部10が、テストチャートデータ520とマーカーデータ530とがまとめられたデータを描画するような構成であってもよい。
(Step S102)
Next, the control unit 10 causes the test chart output unit 100 to perform marker output processing. For example, based on the marker data 530, the control unit 10 draws the marker 630 at a predetermined position outside the patch group 640 and the reference chart frame 650 in the bitmap data for drawing in the storage unit 19. At this time, the control unit 10 may draw a frame line or the like outside each marker.
In addition, the control part 10 can also show the direction of a test chart by drawing the marker 630 of the marker 630 of a different shape in either of four corners.
The control unit 10 may be configured to draw data in which the test chart data 520 and the marker data 530 are collected.

(ステップS103)
次に、制御部10は、テストチャート出力部100及び画像形成部17により、画像形成処理を行う。
制御部10は、記憶部19に記憶された描画用のビットマップデータを、階調補正データ510により階調を補正した上で、画像形成部17で画像形成させる。これにより、テストチャート620が記録紙に印刷される。
この際、画像形成部17に入力される各パッチの箇所の濃度の入力値と、実際に記録紙に出力される濃度とは、階調補正データ510の調整前なのでずれている。
(Step S103)
Next, the control unit 10 performs an image forming process using the test chart output unit 100 and the image forming unit 17.
The control unit 10 causes the image forming unit 17 to form an image after correcting the gradation of the drawing bitmap data stored in the storage unit 19 using the gradation correction data 510. Thereby, the test chart 620 is printed on the recording paper.
At this time, the input value of the density of each patch input to the image forming unit 17 and the density actually output to the recording sheet are different because the gradation correction data 510 is not adjusted.

(ステップS104)
次に、外部機器2又はその他のデジタルカメラ等は、撮像処理を行う。
図5(a)(b)を参照すると、サービスマン等のユーザーは記録紙に印刷されたテストチャート620のリファレンスチャート枠650内に、リファレンスチャート700を載置する。このリファレンスチャート700は、例えば、リファレンスチャート枠650に収まるような大きさに、予め既知の色濃度の各パッチが罫線とともにオフセット印刷された印刷物等であり、ユーザーが保持している。
この状態で、外部機器2又はその他のデジタルカメラ等は、ユーザーの指示を取得して撮像を行う。これにより、テストチャート620とリファレンスチャート700とが同時に一つの画像データ500として撮像される。
この撮像の際に、ユーザーの影等が写りこむことを避けるため、水平な台の上に載置されたテストチャート620に対して、斜めから撮像することも可能である。また、できるだけ大きな画像を近くから撮像するため、ズームレンズをズーム側にして撮像することも可能である。
外部機器2又はその他のデジタルカメラ等は、撮像された画像を所定形式に画像変換して、RAMやフラッシュメモリーやHDD等である記録媒体に、画像データ500として記憶する。
以上により、本発明の実施の形態に係るテストチャート出力及び撮像処理を終了する。
(Step S104)
Next, the external device 2 or other digital camera performs an imaging process.
5A and 5B, a user such as a service person places the reference chart 700 in the reference chart frame 650 of the test chart 620 printed on the recording paper. The reference chart 700 is, for example, a printed matter in which patches of known color density are offset printed together with ruled lines so as to fit within the reference chart frame 650, and is held by the user.
In this state, the external device 2 or other digital camera or the like acquires a user instruction and performs imaging. As a result, the test chart 620 and the reference chart 700 are captured as one image data 500 at the same time.
In order to avoid the shadows of the user from appearing during the imaging, the test chart 620 placed on a horizontal table can also be imaged from an oblique direction. In addition, in order to capture as large an image as possible, it is also possible to capture with the zoom lens on the zoom side.
The external device 2 or other digital camera or the like converts the captured image into a predetermined format and stores it as image data 500 in a recording medium such as a RAM, flash memory, or HDD.
The test chart output and imaging process according to the embodiment of the present invention is thus completed.

〔画像形成装置1による階調補正処理〕
次に、図6を参照して、本発明の画像形成装置1の実施の形態に係る階調補正処理について説明する。
画像形成装置1は、上述のテストチャート出力及び撮像処理で撮像された画像データ500を取得し、画像データ500内のカメラレンズの曲面に由来する歪みを補正し、射影変換(投影変換)を行ってからテストチャート及びリファレンスチャートの各パッチの領域とその色値とを算出し、この色値により階調補正データ510を作成する。
この処理は、主に制御部10が、記憶部19に記憶されたプログラムを、各部と協働してハードウェア資源を用いて実行する。
以下では、図6のフローチャートにより、階調補正処理の概要をステップ毎に説明する。
[Tone correction processing by the image forming apparatus 1]
Next, tone correction processing according to the embodiment of the image forming apparatus 1 of the present invention will be described with reference to FIG.
The image forming apparatus 1 acquires the image data 500 captured by the above-described test chart output and imaging processing, corrects distortions derived from the curved surface of the camera lens in the image data 500, and performs projective transformation (projection transformation). After that, each patch area and its color value of the test chart and reference chart are calculated, and tone correction data 510 is created based on this color value.
In this process, the control unit 10 mainly executes a program stored in the storage unit 19 using hardware resources in cooperation with each unit.
Hereinafter, the outline of the gradation correction processing will be described step by step with reference to the flowchart of FIG.

(ステップS201)
まず、制御部10は、画像データ取得部110により、画像データ取得処理を行う。
制御部10は、外部機器2がデジタルカメラ等であり撮像手段として機能する場合、この撮像手段で撮像され記録媒体に記録されていた画像データ500を取得し、記憶部19に記憶させる。また、制御部10は、ビデオキャプチャー等により、撮像された画像を取得して、画像データ500として記憶部19に直接記憶してもよい。
また、制御部10は、外部機器2がUSBメモリー等の記録媒体であった場合、別途、デジタルカメラ等で撮像され外部機器2内に記憶されていた画像データ500を取得し、記憶部19に記憶させる。
(Step S201)
First, the control unit 10 performs an image data acquisition process using the image data acquisition unit 110.
When the external device 2 is a digital camera or the like and functions as an imaging unit, the control unit 10 acquires the image data 500 captured by the imaging unit and recorded on the recording medium, and stores the image data 500 in the storage unit 19. In addition, the control unit 10 may acquire a captured image by video capture or the like and directly store the acquired image data 500 in the storage unit 19.
In addition, when the external device 2 is a recording medium such as a USB memory, the control unit 10 separately acquires image data 500 that has been captured by a digital camera or the like and stored in the external device 2, and is stored in the storage unit 19. Remember.

(ステップS202)
次に、制御部10は、歪み補正部120により、歪み補正処理を行う。
制御部10は、画像データ500に含まれるレンズ歪みを補正する処理を行う。これにより、画像データ500の特に画像データ500の端部で顕著な歪みが解消され、傾斜がついた状態のテストチャート及びリファレンスチャートの画像となる。
この処理の詳細については、後述する。
(Step S202)
Next, the control unit 10 performs a distortion correction process using the distortion correction unit 120.
The control unit 10 performs processing for correcting lens distortion included in the image data 500. As a result, significant distortion is eliminated at the edge of the image data 500, particularly at the end of the image data 500, and the test chart and the reference chart are in an inclined state.
Details of this processing will be described later.

(ステップS203)
次に、制御部10は、射影変換部130により、射影変換処理を行う。
制御部10は、レンズ歪みが補正された画像データ500を射影変換する処理を行う。これにより、画像データ500の傾斜が解消され、テストチャートとリファレンスチャートとを容易に画像解析可能となる。
この処理の詳細についても、後述する。
(Step S203)
Next, the control unit 10 performs projection conversion processing by the projection conversion unit 130.
The control unit 10 performs a projective transformation on the image data 500 whose lens distortion has been corrected. Thereby, the inclination of the image data 500 is eliminated, and the test chart and the reference chart can be easily analyzed.
Details of this processing will also be described later.

(ステップS204)
次に、制御部10は、パッチ領域検出部140と、色値特定部150と、階調補正データ作成部160とにより、階調補正データ作成処理を行う。
制御部10は、射影変換された画像データ500の画像解析を行い、テストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域を検出し、それぞれ対応する各パッチの領域の色値を特定し、それぞれ対応する各パッチの色値により、階調補正データ510を作成する。これにより、精度のよい階調補正が可能となる。
この処理の詳細についても、後述する。
以上により、本発明の実施の形態に係る階調補正処理を終了する。
(Step S204)
Next, the control unit 10 performs tone correction data creation processing using the patch area detection unit 140, the color value identification unit 150, and the tone correction data creation unit 160.
The control unit 10 performs image analysis of the image data 500 that has undergone the projective transformation, detects each patch area in the test chart and each patch area in the reference chart, and determines the color value of each corresponding patch area. The gradation correction data 510 is created by specifying the color values of the corresponding patches. Thereby, accurate gradation correction can be performed.
Details of this processing will also be described later.
This completes the gradation correction processing according to the embodiment of the present invention.

〔画像形成装置1による歪み補正処理〕
次に、図7〜図9を参照して、図6のステップS202の歪み補正処理の詳細について説明する。
この処理は、主に歪み補正部120が行う。以下で、図7のフローチャートにより、歪み補正処理の詳細をステップ毎に説明する。
[Distortion Correction Processing by Image Forming Apparatus 1]
Next, details of the distortion correction processing in step S202 of FIG. 6 will be described with reference to FIGS.
This process is mainly performed by the distortion correction unit 120. Hereinafter, the details of the distortion correction processing will be described step by step with reference to the flowchart of FIG.

(ステップS221)
まず、制御部10は、罫線認識処理を行う。
制御部10は、画像データ500から、各パッチを囲う格子状の罫線を画像認識する。図5の例ではパッチ群640の罫線を認識する。
制御部10は、この罫線の認識は、例えば、画像データ500からSobelフィルタ等によりエッジ検出を行い、所定の長さの線分の箇所を罫線として認識する。この際、罫線は、レンズ歪みにより曲線として認識される。
なお、制御部10は、図5の例では、リファレンスチャート枠650や、リファレンスチャート700内の罫線についても認識してもよい。
また、画像認識については、画像処理部11のGPU等の機能を用いて演算を高速化してもよい。これは、以下の処理でも同様である。
(Step S221)
First, the control unit 10 performs ruled line recognition processing.
The control unit 10 recognizes an image of grid-like ruled lines surrounding each patch from the image data 500. In the example of FIG. 5, the ruled lines of the patch group 640 are recognized.
The controller 10 recognizes the ruled line by, for example, detecting an edge from the image data 500 using a Sobel filter or the like, and recognizes a line segment having a predetermined length as a ruled line. At this time, the ruled line is recognized as a curved line due to lens distortion.
Note that the control unit 10 may also recognize the reference chart frame 650 and the ruled lines in the reference chart 700 in the example of FIG.
As for image recognition, the calculation may be speeded up by using a function such as GPU of the image processing unit 11. The same applies to the following processing.

(ステップS222)
次に、制御部10は、格子点座標検出処理を行う。
制御部10は、認識された罫線から、格子点の座標を認識する。ここでは、曲線として認識された罫線同士の交点である格子点の位置(座標)を検出する。ここでは、制御部10は、例えば、曲線の罫線の交点を算出して、これを検出した格子点とする。
なお、制御部10は、この格子点の座標の検出についても、図5の例では、リファレンスチャート700の罫線について行ってもよい。
(Step S222)
Next, the control unit 10 performs lattice point coordinate detection processing.
The control unit 10 recognizes the coordinates of the lattice point from the recognized ruled line. Here, the position (coordinate) of the lattice point that is the intersection of the ruled lines recognized as curves is detected. Here, for example, the control unit 10 calculates an intersection point of a curved ruled line and sets it as a detected grid point.
Note that the control unit 10 may also perform the detection of the coordinates of the lattice points on the ruled lines of the reference chart 700 in the example of FIG.

(ステップS223)
次に、制御部10は、歪み補正計数算出処理を行う。
図8を参照すると、レンズ歪みは、デジタルカメラ等のカメラのレンズが曲面であるため、直線が直線で写らなくなる現象で特に画像周辺部で顕著に見られる。このレンズ歪みの種類としては、図8(a)に示す樽型歪みや、図8(b)に示す糸巻き型歪みが存在する。また、図8(c)に示すように樽型歪みと糸巻き型歪みが組み合わされた複合型歪みも存在する。
(Step S223)
Next, the control unit 10 performs a distortion correction count calculation process.
Referring to FIG. 8, the lens distortion is a phenomenon in which a straight line does not appear as a straight line because a camera lens such as a digital camera has a curved surface, and is particularly noticeable at the periphery of the image. As the types of lens distortion, there are barrel distortion shown in FIG. 8A and pincushion distortion shown in FIG. 8B. Further, as shown in FIG. 8C, there is also a composite type distortion in which a barrel type distortion and a pincushion type distortion are combined.

制御部10は、デジタルカメラ等のレンズを通して撮像された画像データ500上で、格子点の座標(画像平面上の交点座標)であるmは、以下の式(1)で表現される:   On the image data 500 captured through a lens such as a digital camera, the control unit 10 represents m, which is the coordinates of the lattice points (intersection coordinates on the image plane), by the following equation (1):

Figure 0005960097
Figure 0005960097

式(1)において、m:画像平面上の交点座標、s:スケール係数、M:本来の格子点の座標を示すワールド座標系、A:カメラの内部パラメーター(3×3行列)、[R|t]:外部パラメーター、を示す。

また、式(1)は、以下の式(2)のように表現することが可能である:
In Equation (1), m: intersection coordinates on the image plane, s: scale factor, M: world coordinate system indicating the coordinates of the original lattice points, A: internal camera parameters (3 × 3 matrix), [R | t]: External parameter.

Also, equation (1) can be expressed as the following equation (2):

Figure 0005960097
Figure 0005960097

式(2)において、fx,fy:焦点距離、cx,cy:光軸中心、を示す。

ここで、歪みのない理想状態における格子点の座標を(u,v)とすると、上述の式(2)は、以下の式(3)のように変形可能である。
In Expression (2), fx, fy: focal length, cx, cy: optical axis center are shown.

Here, when the coordinates of the lattice points in an ideal state without distortion are (u, v), the above-described equation (2) can be transformed as the following equation (3).

Figure 0005960097
Figure 0005960097

実際には、レンズ歪みに起因して、格子点は理想状態の座標とは異なる場所に現れる。つまり、上述の格子点座標検出処理で取得された格子点の座標(xd,yd)は、実際にはレンズ歪みよりずれた座標となる。
このように実際に取得された格子点の座標(xd,yd)が含まれるレンズ歪みモデルは、以下の式(4)のようになる。
In practice, due to lens distortion, the lattice points appear at different locations from the ideal state coordinates. That is, the coordinates (xd, yd) of the lattice points acquired by the above-described lattice point coordinate detection process are actually coordinates that deviate from lens distortion.
A lens distortion model including the coordinates (xd, yd) of the lattice points actually acquired in this way is expressed by the following equation (4).

Figure 0005960097
Figure 0005960097

式(4)において、k1,k2,k3:半径方向の歪み係数、p1,p2:円周方向の歪み係数、を示す。

ここで、制御部10は、式(3)を式(4)に代入した式に、取得された格子点の座標(xd,yd)の値を代入し、これらの歪み係数を算出することができる。
なお、制御部10は、画像データ500中で曲線として認識された罫線について、本来投影されるべき直線にフィッティングさせる手法により、歪み係数を推定してもよい。
In equation (4), k1, k2, k3: radial distortion coefficients, p1, p2: circumferential distortion coefficients.

Here, the control unit 10 can calculate the distortion coefficients by substituting the values of the coordinates (xd, yd) of the acquired lattice points into the equation obtained by substituting the equation (3) into the equation (4). it can.
Note that the control unit 10 may estimate the distortion coefficient by a method of fitting a ruled line recognized as a curve in the image data 500 to a straight line to be originally projected.

(ステップS224)
次に、制御部10は、歪み補正適用処理を行う。
制御部10は、算出された歪み係数を画像データ500に適用して、変形する。
制御部10は、算出された上述の歪み係数を代入した式(4)に、画像データ500の各ピクセルの座標を代入して、算出された(u,v)の位置に、このピクセルを移動させる。なお、制御部10は、この際、スムージング等の処理を行ってもよい。
図9を参照すると、レンズ歪み補正前の画像である図9(a)は、算出された歪み係数により例えば図9(b)のように補正される。
以上により、本発明の実施の形態に係る処理を終了する。
(Step S224)
Next, the control unit 10 performs distortion correction application processing.
The control unit 10 applies the calculated distortion coefficient to the image data 500 and deforms it.
The control unit 10 substitutes the coordinates of each pixel of the image data 500 in the equation (4) in which the calculated distortion coefficient is substituted, and moves this pixel to the calculated position (u, v). Let At this time, the control unit 10 may perform processing such as smoothing.
Referring to FIG. 9, FIG. 9A, which is an image before lens distortion correction, is corrected as shown in FIG. 9B by the calculated distortion coefficient, for example.
Thus, the process according to the embodiment of the present invention is completed.

〔画像形成装置1による射影変換処理〕
次に、図10〜図11を参照して、図6のステップS203の射影変換処理の詳細について説明する。
この処理は、主に射影変換部130が行う。以下で、図10のフローチャートにより、射影変換処理をステップ毎に説明する。
[Projection Conversion Processing by Image Forming Apparatus 1]
Next, details of the projective transformation process in step S203 of FIG. 6 will be described with reference to FIGS.
This process is mainly performed by the projective transformation unit 130. Hereinafter, the projective transformation process will be described step by step with reference to the flowchart of FIG.

(ステップS231)
まず、制御部10は、マーカー検出処理を行う。
制御部10は、画像データ500から、テストチャートの位置を示すマーカーを検出する。
図11(a)を参照すると、制御部10は、四隅に印刷されているマーカー630の位置を、それぞれ検出する。図11(b)を参照すると、射影変換部130は、マーカーを検出するために、射影変換前の画像データ500aからマーカーデータ530に記載されたマーカーの形状等を画像認識する。
制御部10は、マーカーの形状等が画像認識された場合、例えば、画像データ500a上のこの形状等の中心座標をマーカー630の位置として算出する。この際に、制御部10は、各マーカーより外に印刷された枠線等についても検出してもよい。また、制御部10は、認識したマーカー630や枠線の位置等により、テストチャート620の向きについても認識してもよい。
(Step S231)
First, the control unit 10 performs a marker detection process.
The control unit 10 detects a marker indicating the position of the test chart from the image data 500.
Referring to FIG. 11A, the control unit 10 detects the positions of the markers 630 printed at the four corners. Referring to FIG. 11B, the projective conversion unit 130 recognizes the shape of the marker described in the marker data 530 from the image data 500a before the projective conversion in order to detect the marker.
When the shape of the marker or the like is recognized as an image, the control unit 10 calculates the center coordinates of the shape or the like on the image data 500a as the position of the marker 630, for example. At this time, the control unit 10 may also detect a frame line printed outside each marker. The control unit 10 may also recognize the orientation of the test chart 620 based on the recognized marker 630, the position of the frame line, and the like.

(ステップS232)
次に、制御部10は、射影変換行列算出処理を行う。
制御部10は、画像データ500上の四隅のマーカーの座標と、テストチャートデータ520上でマーカーデータ530が出力される四隅のマーカーの座標とを比較して、射影変換行列を算出する。
ここで、射影変換前の座標(x',y')、及び射影変換後の座標(x,y)は、a〜hの行列要素を有する射影変換行列Hを用いて、式(5)及び式(6)のような関係で表現することができる。
(Step S232)
Next, the control unit 10 performs projective transformation matrix calculation processing.
The control unit 10 compares the coordinates of the four corner markers on the image data 500 with the coordinates of the four corner markers from which the marker data 530 is output on the test chart data 520, and calculates a projective transformation matrix.
Here, the coordinates (x ′, y ′) before the projective transformation and the coordinates (x, y) after the projective transformation are obtained by using the projective transformation matrix H having matrix elements a to h, It can be expressed by a relationship such as Equation (6).

Figure 0005960097
Figure 0005960097

Figure 0005960097
Figure 0005960097

制御部10は、図11(a)の射影変換前の画像データ500aから検出された四隅のマーカーの座標を、それぞれ射影変換前の座標(x1',y1')〜(x4',y4')として取得する。さらに、制御部10は、図11(b)のテストチャートデータ520上の四隅のマーカーデータ530による座標を、それぞれ射影変換後の座標(x1,y1)〜(x4,y4)として取得する。
制御部10は、(x1',y1')〜(x4',y4')及び(x1,y1)〜(x4,y4)を式(5)又は式(6)に代入した、下記の式(7)で示す8つの連立方程式を解いて、射影変換行列Hの行列要素のa〜hを算出する。このように、画像データ500から認識された四隅のマーカーの座標を用いることで、射影変換行列Hの正確な値を算出することが可能となる。
The control unit 10 uses the coordinates of the four corner markers detected from the image data 500a before projective transformation in FIG. 11A as coordinates (x1 ′, y1 ′) to (x4 ′, y4 ′) before projective transformation, respectively. Get as. Furthermore, the control unit 10 acquires the coordinates of the four corner marker data 530 on the test chart data 520 in FIG. 11B as the coordinates (x1, y1) to (x4, y4) after the projective transformation.
The control unit 10 substitutes (x1 ′, y1 ′) to (x4 ′, y4 ′) and (x1, y1) to (x4, y4) into the equation (5) or the equation (6), Eight simultaneous equations shown in 7) are solved to calculate matrix elements a to h of the projective transformation matrix H. As described above, by using the coordinates of the markers at the four corners recognized from the image data 500, it is possible to calculate an accurate value of the projective transformation matrix H.

Figure 0005960097
Figure 0005960097

(ステップS233)
次に、制御部10は、射影変換適用処理を行う。
制御部10は、画像データ500について、実際の射影変換を行う。
ここで、上述のステップで算出された射影変換行列Hは、射影変換後の座標(x,y)を、射影変換前の座標(x',y')に射影変換するための行列である。このため、制御部10は、射影変換前の座標(x',y')を射影変換後の座標(x,y)に変換するために射影変換行列Hの逆行列H'を算出する。
制御部10は、算出された逆行列H’により、画像データ500の各ピクセルを射影変換する。制御部10は、この際も、スムージング等を行ってもよい。図11の例では、制御部10は、図11(a)の画像データ500aを射影変換し、図11(c)の画像データ500bのような画像を得ることが可能である。
なお、図11の例では、説明を分かりやすくするため、リファレンスチャート700が配置されていないものの、制御部10は、実際には配置された状態で撮像された画像データ500に対して射影変換を行う。
以上により、本発明の実施の形態に係る射影変換処理を終了する。
(Step S233)
Next, the control unit 10 performs projective transformation application processing.
The control unit 10 performs actual projective transformation on the image data 500.
Here, the projective transformation matrix H calculated in the above-described step is a matrix for performing projective transformation on the coordinates (x, y) after the projective transformation to the coordinates (x ′, y ′) before the projective transformation. Therefore, the control unit 10 calculates an inverse matrix H ′ of the projective transformation matrix H in order to convert the coordinates (x ′, y ′) before the projective transformation into the coordinates (x, y) after the projective transformation.
The control unit 10 performs projective transformation on each pixel of the image data 500 using the calculated inverse matrix H ′. At this time, the control unit 10 may perform smoothing or the like. In the example of FIG. 11, the control unit 10 can projectively convert the image data 500a of FIG. 11A to obtain an image like the image data 500b of FIG. 11C.
In the example of FIG. 11, for ease of explanation, although the reference chart 700 is not arranged, the control unit 10 performs projective transformation on the image data 500 captured in the actually arranged state. Do.
This completes the projective transformation process according to the embodiment of the present invention.

〔画像形成装置1による階調補正データ作成処理〕
次に、図12〜図13を参照して、図6のステップS204の階調補正データ作成処理の詳細について説明する。
以下で、図12のフローチャートにより、階調補正データ作成処理をステップ毎に説明する。
[Tone Correction Data Creation Processing by Image Forming Apparatus 1]
Next, details of the tone correction data creation processing in step S204 of FIG. 6 will be described with reference to FIGS.
Hereinafter, the gradation correction data creation processing will be described step by step with reference to the flowchart of FIG.

(ステップS241)
まず、制御部10は、パッチ領域検出部140により、パッチ領域検出処理を行う。
制御部10は、射影変換された画像データ500から、テストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域を検出する。
制御部10は、画像データ500を画像認識し、テストチャートデータ520の罫線内に対応する位置にある、例えば、概四角形で示される座標データとしてパッチの領域を検出する。
また、制御部10は、画像データ500を画像認識し、テストチャートに並べて配置されたリファレンスチャートの各パッチの領域を検出する。ここで、図5の例によると、リファレンスチャート700は、リファレンスチャート枠650内に少し斜めに配置されることもあり得るため、制御部10は、リファレンスチャート700の罫線を、ハフ(Hough)変換等で画像認識して回転させ、その上で各パッチの領域を検出してもよい。
制御部10は、テストチャート及びリファレンスチャートの各パッチの領域を検出した後、テストチャートデータ520のCMYKのパッチ列内の色の濃度に対応付けして、記憶部19に一時的に記憶させる。
(Step S241)
First, the control unit 10 uses the patch region detection unit 140 to perform patch region detection processing.
The control unit 10 detects each patch area in the test chart and each patch area in the reference chart from the image data 500 subjected to the projective transformation.
The control unit 10 recognizes the image data 500 and detects a patch area as coordinate data indicated by, for example, an approximate rectangle, at a position corresponding to the ruled line of the test chart data 520.
In addition, the control unit 10 recognizes the image data 500 and detects a region of each patch of the reference chart arranged side by side on the test chart. Here, according to the example of FIG. 5, the reference chart 700 may be disposed slightly obliquely in the reference chart frame 650, so the control unit 10 converts the ruled line of the reference chart 700 into a Hough transform. For example, the image may be recognized and rotated, and the area of each patch may be detected.
After detecting the patch areas of the test chart and the reference chart, the control unit 10 temporarily stores them in the storage unit 19 in association with the color densities in the CMYK patch row of the test chart data 520.

(ステップS242)
次に、制御部10は、色値特定部150により、色値特定処理を行う。
制御部10は、テストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域から色値を特定する。具体的には、制御部10は、画像データ500のパッチの領域内の各ピクセルのRGB成分それぞれについて平均値を算出し、これを色値として特定する。
なお、制御部10は、単純な平均値ではなく、RGB成分のヒストグラムからメジアン等を算出して、これを基に色値を特定することも可能である。また、制御部10は、パッチの領域の境界付近の所定割合のピクセルについては、平均値の算出に使用しないことも可能である。これにより、境界付近の誤差を抑えて正確な色値を算出できる。
(Step S242)
Next, the control unit 10 causes the color value specifying unit 150 to perform color value specifying processing.
The control unit 10 specifies a color value from each patch area in the test chart and each patch area in the reference chart. Specifically, the control unit 10 calculates an average value for each of the RGB components of each pixel in the patch area of the image data 500 and specifies this as a color value.
Note that the control unit 10 can calculate a median or the like from a histogram of RGB components instead of a simple average value, and specify a color value based on the median. Further, the control unit 10 may not use a predetermined ratio of pixels near the boundary of the patch area for calculating the average value. Thereby, an accurate color value can be calculated while suppressing an error near the boundary.

(ステップS243)
次に、制御部10は、階調補正データ作成部160により、階調補正データ算出処理を行う。
図13を参照して説明すると、制御部10は、特定されたテストチャート内の各パッチの色値及びリファレンスチャート内の各パッチの色値により画像形成部17の階調特性に対する階調補正データ510を作成する。
制御部10は、CMYKのパッチ列毎に、テストチャート内のパッチの色値と対応する濃度のリファレンスチャートのパッチの色値とを掛け合わせ、画像形成部17からの出力をリニアにするような値のテーブルを、階調補正データ510として算出する。
(Step S243)
Next, the control unit 10 performs gradation correction data calculation processing by using the gradation correction data creation unit 160.
Referring to FIG. 13, the control unit 10 determines gradation correction data for the gradation characteristics of the image forming unit 17 based on the color value of each patch in the specified test chart and the color value of each patch in the reference chart. 510 is created.
For each CMYK patch row, the control unit 10 multiplies the color value of the patch in the test chart by the color value of the patch in the reference chart of the corresponding density to linearize the output from the image forming unit 17. A value table is calculated as the gradation correction data 510.

図13(a)は、各濃度により、補正されないで画像形成部17から記録紙に画像形成された場合に観察される色値の特性を示す補正前入出力特性値810の概念を示すグラフである。図13の各グラフにおいて、横軸は濃度、縦軸は色値を示している。
図13(b)は、リファレンスチャート内のパッチと比較され算出された階調補正データ510を示している。
図13(c)は、図13(a)の補正前入出力特性値810が、算出された階調補正データ510と掛け合わせられて補正され、画像形成部17から記録紙に画像形成された場合に観察される色値の特性を示す補正後入出力特性値820の概念を示すグラフである。このように、算出された階調補正データ510により、リニアに近い入出力の濃度特性が得られる。
以上により、本発明の実施の形態に係る階調補正データ作成処理を終了する。
FIG. 13A is a graph showing the concept of the pre-correction input / output characteristic value 810 indicating the characteristic of the color value observed when an image is formed on the recording paper from the image forming unit 17 without being corrected by each density. is there. In each graph of FIG. 13, the horizontal axis represents density and the vertical axis represents color value.
FIG. 13B shows tone correction data 510 calculated by comparing with the patches in the reference chart.
In FIG. 13C, the input / output characteristic value 810 before correction in FIG. 13A is corrected by multiplying it with the calculated gradation correction data 510, and an image is formed on the recording paper from the image forming unit 17. 6 is a graph showing a concept of a corrected input / output characteristic value 820 indicating the characteristic of a color value observed in a case. Thus, the calculated gradation correction data 510 provides input / output density characteristics close to linear.
Thus, the gradation correction data creation process according to the embodiment of the present invention is completed.

以上のように構成することで、以下のような効果を得ることができる。
従来、特許文献1に記載されているような、デジタルカメラ等の外部機器によって撮像された画像データから階調補正を行う技術においては、撮像条件や撮像デバイスのレンズに由来する画像の歪みに関する考慮がなされていなかった。このため、画像を解析する上での精度が低下し、実用的に精度のよい階調補正を行うことはできなかった。
これに対して、本発明の画像形成装置1は、画像形成部17の階調特性に対する階調補正を行い、複数の色のパッチを含むテストチャートを画像形成部17に出力させるテストチャート出力部100と、テストチャート出力部100により出力させたテストチャートと、色濃度が既知である複数の色のパッチを含むリファレンスチャートとが同時に撮像された画像データ500を取得する画像データ取得部110と、画像データ取得部110により取得された画像データ500に含まれるレンズ歪みを補正する歪み補正部120と、歪み補正部120によりレンズ歪みが補正された画像データ500を射影変換する射影変換部130と、射影変換部130により射影変換された画像データ500から、テストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域を検出するパッチ領域検出部140と、パッチ領域検出部140により検出されたテストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域から色値を特定する色値特定部150と、色値特定部150により特定されたテストチャート内の各パッチの色値及びリファレンスチャート内の各パッチの色値により画像形成部17の階調特性に対する階調補正データ510を作成する階調補正データ作成部160とを備えることを特徴とする。 このように構成することで、撮像された画像データ500に対してレンズ歪みの補正及び射影変換を行って、パッチ領域を正確に検出することが可能となる。このため、画像データ500をテストチャートデータ520に近い状態に変換して、リファレンスチャートと比較することが可能となり、テストチャートの各パッチ及びリファレンスチャートの各パッチの正確な色値を算出することができる。これにより、デジタルカメラ等で撮像された画像データ500であっても、正確な階調補正データ510の作成が可能となり、実用的な階調補正ができる。また、画像データ500が、PDAやスマートフォン等の階調特性やレンズ性能のよくない撮像手段を備えた外部機器2で撮像された場合でも、ロバストで正確な階調補正ができる。
よって、従来のように印刷されたパッチを目視で確認し、測色計や濃度計で測定し、手作業で階調補正のパラメーターを入力して階調補正を行うといった作業を行う必要がなくなり、ユーザーの手間を減らすことができる。
また、画像形成装置1が経年劣化等により入出力特性が変化した場合でも、容易に精度よく階調補正することができる。これにより、写真等のハーフトーン画像を忠実に出力させたいときに、そのデジタルカメラ等を使って、すぐにキャリブレーションすることができる。
With the configuration described above, the following effects can be obtained.
Conventionally, in the technique of performing gradation correction from image data captured by an external device such as a digital camera as described in Patent Document 1, consideration is given to imaging conditions and image distortion derived from the lens of the imaging device. Was not made. For this reason, the accuracy in analyzing the image is lowered, and it has not been possible to perform practically accurate gradation correction.
In contrast, the image forming apparatus 1 of the present invention performs a tone correction on the tone characteristics of the image forming unit 17 and outputs a test chart including a plurality of color patches to the image forming unit 17. 100, an image data acquisition unit 110 that acquires image data 500 obtained by simultaneously capturing a test chart output by the test chart output unit 100 and a reference chart including a plurality of color patches with known color densities; A distortion correction unit 120 that corrects lens distortion included in the image data 500 acquired by the image data acquisition unit 110; a projective conversion unit 130 that performs projective conversion on the image data 500 whose lens distortion has been corrected by the distortion correction unit 120; From the image data 500 subjected to the projective transformation by the projective transformation unit 130, the area of each patch in the test chart and The patch area detection unit 140 that detects the area of each patch in the reference chart, the color value is specified from the area of each patch in the test chart and the area of each patch in the reference chart detected by the patch area detection unit 140 The color value specifying unit 150 and the tone correction data 510 for the tone characteristics of the image forming unit 17 based on the color value of each patch in the test chart specified by the color value specifying unit 150 and the color value of each patch in the reference chart. And a gradation correction data creating unit 160 for creating the image data. With such a configuration, it is possible to correct the lens distortion and projective transformation on the captured image data 500 and accurately detect the patch area. Therefore, the image data 500 can be converted to a state close to the test chart data 520 and compared with the reference chart, and accurate color values of each patch of the test chart and each patch of the reference chart can be calculated. it can. Thereby, even with the image data 500 captured by a digital camera or the like, accurate gradation correction data 510 can be created, and practical gradation correction can be performed. In addition, even when the image data 500 is captured by the external device 2 having an imaging unit with poor gradation characteristics and lens performance, such as a PDA or a smartphone, robust and accurate gradation correction can be performed.
This eliminates the need to manually check the printed patches, measure them with a colorimeter or densitometer, and manually input the tone correction parameters to perform tone correction. , User's trouble can be reduced.
In addition, even when the input / output characteristics of the image forming apparatus 1 change due to aging or the like, gradation correction can be performed easily and accurately. Thus, when it is desired to faithfully output a halftone image such as a photograph, the digital camera or the like can be used for immediate calibration.

また、従来から、記録用紙にパッチを含むテストチャートを印刷し、スキャナー等の読み取り装置を用いてパッチの色値を測定することで入出力特性の階調補正を行う方法も存在している。この階調補正方法は精度がよいものの、読み取り装置のないプリンターでは使用することはできなかった。
これに対して、本発明の画像形成装置1は、読み取り装置がないプリンター等でも、外部のデジタルカメラ等で撮像された画像データ500から、精度よく階調補正を行うことができる。また、読み取り装置を別途必要としないため、コストも削減できる。
Conventionally, there has also been a method of performing tone correction of input / output characteristics by printing a test chart including a patch on a recording sheet and measuring the color value of the patch using a reading device such as a scanner. Although this gradation correction method has high accuracy, it cannot be used in a printer without a reading device.
On the other hand, the image forming apparatus 1 of the present invention can perform gradation correction with high accuracy from the image data 500 captured by an external digital camera or the like even with a printer or the like without a reading device. Further, since a reading device is not required separately, the cost can be reduced.

また、従来、レンズ歪みを測定する場合、チェックパターンの印刷物を用意し、撮影した画像中の格子点の位置(座標)から歪みを判定していた。
これに対して、本発明の画像形成装置1は、テストチャート出力部100が、テストチャートに、各パッチを囲う格子状の罫線を出力させ、歪み補正部120が、画像データ500に含まれる格子状の罫線の位置により、レンズ歪みを補正することを特徴とする。
このようなテストチャートの構成を採用することにより、(1)チェックパターンの印刷物を別途用意してレンズ歪みを測定し、(2)その後、階調補正用のパッチが印刷されたテストチャートを撮像するといった手間を省くことが可能となる。つまり、階調補正用のパッチとレンズ歪み補正用の画像とを同時に撮像した画像データ500から階調補正を行うことができ、撮像回数を低減し、キャリブレーションを簡易な手順で行うことが可能となる。このため、ユーザーの利便性を向上させることができる。
また、テストチャートに歪み補正用の格子状罫線を配置することで、レンズ歪みの補正とパッチの領域の検出等を同一の画像データ500で行うことができるため、高精度の階調補正データ510を作成することができる。
Conventionally, when measuring lens distortion, a check pattern print is prepared, and distortion is determined from the positions (coordinates) of lattice points in a photographed image.
On the other hand, in the image forming apparatus 1 of the present invention, the test chart output unit 100 causes the test chart to output grid-like ruled lines surrounding each patch, and the distortion correction unit 120 includes the grid included in the image data 500. The lens distortion is corrected by the position of the ruled line.
By adopting such a test chart configuration, (1) separately preparing a check pattern print and measuring lens distortion, and (2) imaging a test chart on which a tone correction patch is printed. It is possible to save time and effort. In other words, gradation correction can be performed from image data 500 obtained by simultaneously capturing gradation correction patches and lens distortion correction images, and the number of imaging can be reduced and calibration can be performed with a simple procedure. It becomes. For this reason, user convenience can be improved.
In addition, by arranging a grid ruled line for distortion correction on the test chart, correction of lens distortion, detection of a patch area, and the like can be performed with the same image data 500. Therefore, high-precision gradation correction data 510 Can be created.

また、本発明の画像形成装置1は、テストチャート出力部100が、テストチャートの位置を示すマーカーを出力させ、射影変換部130は、画像データ500から前記マーカーを検出し、前記マーカーの位置により画像データ500を射影変換することを特徴とする。
このように構成することで、画像データ500の撮像時に、影がテストチャートに映り込まないように斜め上方からテストチャート及びリファレンスチャートを撮像しても、正確な階調補正をすることができる。
また、射影変換によりほぼ平面になるよう変換することで、各パッチの領域の面積を均一化して、階調補正の精度をよくすることができる。
また、レンズの歪み補正を行った後の画像データ500から射影変換を行うことで、正確な射影変換ができ、レンズ歪みを補正しないで射影変換するより階調補正の精度を高められる。
Further, in the image forming apparatus 1 of the present invention, the test chart output unit 100 outputs a marker indicating the position of the test chart, and the projective conversion unit 130 detects the marker from the image data 500, and determines the marker according to the position of the marker. The image data 500 is projectively transformed.
With this configuration, when the image data 500 is imaged, accurate gradation correction can be performed even if the test chart and the reference chart are imaged obliquely from above so that no shadow appears in the test chart.
Further, by performing the transformation so as to be substantially flat by projective transformation, the area of each patch area can be made uniform, and the accuracy of gradation correction can be improved.
Also, by performing projective transformation from the image data 500 after correcting lens distortion, accurate projective transformation can be performed, and the accuracy of gradation correction can be improved compared to performing projective conversion without correcting lens distortion.

また、本発明の画像形成装置1は、テストチャート出力部100が、テストチャート内の各パッチの大きさをリファレンスチャート内の各パッチと同じ大きさに出力し、リファレンスチャートをテストチャートに並べて配置させるための位置指定画像を出力する
このように構成することで、テストチャートの各パッチの領域とリファレンスチャートの各パッチの領域の面積が統一化され、画像データ500の撮像時の撮像データの各ピクセルの誤差の影響が少なくなる。このため、階調補正の精度をよくすることができる。
また、リファレンスチャートの各パッチとテストチャートの各パッチが並べられていることで、各パッチを濃度と対応付けしやすくなる。よって、階調補正の処理コストを低減することができる。
In the image forming apparatus 1 of the present invention, the test chart output unit 100 outputs the size of each patch in the test chart to the same size as each patch in the reference chart, and arranges the reference chart side by side on the test chart. With this configuration, the area of each patch area of the test chart and the area of each patch area of the reference chart are unified, and each of the imaging data when the image data 500 is captured is output. The effect of pixel error is reduced. For this reason, the accuracy of gradation correction can be improved.
In addition, since each patch of the reference chart and each patch of the test chart are arranged, each patch can be easily associated with the density. Therefore, the processing cost for gradation correction can be reduced.

〔他の実施の形態〕
なお、上述の実施の形態においては、CMYKカラーの各色の階調補正を行うように記載したものの、モノクロ出力用のプリンターの階調補正を行うことも可能である。また、CMYKのいずれかのトナー又は各トナーの組み合わせに対応した階調補正を行うことも可能である。また、本実施形態の階調補正方法は、スキャナー等の読み取り装置を備えた画像形成装置にも適用可能である。
また、上述の実施の形態においては、射影変換を行ってからパッチ領域を検出したものの、射影変換しない状態でパッチの領域を検出することも可能である。つまり、変形した四角形としてパッチの領域を取得して、これから色値を特定することもできる。
また、制御部10は、レンズ歪み除去と射影変換とを行った画像データ500から算出されたパッチ領域について色値を算出する際に、各ピクセルについて射影変換とレンズ歪み除去をする前の座標を逆変換等で算出し、この座標における変換前の画像データ500のピクセルのRGBの色値から平均値を算出するような構成も可能である。これにより、画像変換やスムージングの影響を抑え、更に精度の高い階調補正データ510を作成することができる。
また、制御部10は、デジタルカメラ等のCCDやCMOS素子のRGB画素の配置やJPEGのexifデータ等に含まれるホワイトバランス等の情報により、作成された階調補正データ510について更に補正を行ってもよい。
また、制御部10は、外部機器2がウェブカメラ等であった場合は、CCDやCMOSセンサーで撮像された所定フォーマットの画像データをビデオキャプチャー等で取得し、直接、記憶部19に画像データ500として取得するような構成であってもよい。つまり外部機器2が監視カメラ等であった場合でも、その監視カメラの画像から階調補正を行うこともできる。
[Other Embodiments]
In the above-described embodiment, although it has been described that gradation correction of each color of CMYK colors is performed, it is also possible to perform gradation correction of a printer for monochrome output. It is also possible to perform gradation correction corresponding to any toner of CMYK or a combination of each toner. The gradation correction method of the present embodiment can also be applied to an image forming apparatus that includes a reading device such as a scanner.
In the above-described embodiment, although the patch area is detected after performing the projective transformation, the patch area can be detected without performing the projective transformation. That is, the patch area can be acquired as a deformed rectangle, and the color value can be specified from this area.
Further, when calculating the color value for the patch area calculated from the image data 500 that has been subjected to the lens distortion removal and the projective transformation, the control unit 10 determines the coordinates before performing the projective transformation and the lens distortion removal for each pixel. It is also possible to employ a configuration in which the average value is calculated from the RGB color values of the pixels of the image data 500 before the conversion at this coordinate by inverse conversion or the like. Thereby, it is possible to suppress the influence of image conversion and smoothing, and to create gradation correction data 510 with higher accuracy.
In addition, the control unit 10 further corrects the generated gradation correction data 510 based on information such as the arrangement of RGB pixels of a CCD or CMOS element of a digital camera or the like, white balance included in JPEG exif data, and the like. Also good.
In addition, when the external device 2 is a web camera or the like, the control unit 10 acquires image data of a predetermined format captured by a CCD or CMOS sensor by video capture or the like, and directly stores the image data 500 in the storage unit 19. It may be configured to obtain as That is, even when the external device 2 is a monitoring camera or the like, gradation correction can be performed from the image of the monitoring camera.

また、本発明は、画像形成装置以外のUSBを備えた情報処理装置にも適用できる。つまり、ネットワークスキャナ、スキャナーをUSB等で別途接続したサーバー等を用いる構成であってもよい。   The present invention can also be applied to an information processing apparatus having a USB other than the image forming apparatus. That is, a configuration using a network scanner, a server in which the scanner is separately connected via USB, or the like may be used.

また、上記実施の形態の構成及び動作は例であって、本発明の趣旨を逸脱しない範囲で適宜変更して実行することができることは言うまでもない。   Further, the configuration and operation of the above-described embodiment are examples, and it goes without saying that they can be appropriately modified and executed without departing from the gist of the present invention.

1 画像形成装置
2 外部機器
10 制御部
11 画像処理部
14 本体部
15 ネットワーク送受信部
16 操作パネル部
17 画像形成部
17a 感光体ドラム
17b 露光部
17c 現像部
17d 転写部
17e 定着部
19 記憶部
20 外部機器接続部
41 排出口
42 給紙部
43 用紙搬送路
44 搬送ローラー
45 排出ローラー
50 トレイ部
100 テストチャート出力部
110 画像データ取得部
120 歪み補正部
130 射影変換部
140 パッチ領域検出部
150 色値特定部
160 階調補正データ作成部
421 給紙カセット
422 給紙ローラー
500、500a、500b 画像データ
510 階調補正データ
520 テストチャートデータ
530 マーカーデータ
620 テストチャート
630 マーカー
640 パッチ群
650 リファレンスチャート枠
700 リファレンスチャート
810 補正前入出力特性値
820 補正後入出力特性値
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 2 External apparatus 10 Control part 11 Image processing part 14 Main body part 15 Network transmission / reception part 16 Operation panel part 17 Image formation part 17a Photosensitive drum 17b Exposure part 17c Development part 17d Transfer part 17e Fixing part 19 Storage part 20 External Device connection section 41 Discharge port 42 Paper feed section 43 Paper transport path 44 Transport roller 45 Discharge roller 50 Tray section 100 Test chart output section 110 Image data acquisition section 120 Distortion correction section 130 Projection conversion section 140 Patch area detection section 150 Color value specification Unit 160 Gradation correction data creation unit 421 Paper feed cassette 422 Paper feed rollers 500, 500a, 500b Image data 510 Gradation correction data 520 Test chart data 530 Marker data 620 Test chart 630 Marker 640 Patch group 650 Reference chart 700 reference chart 810 pre-correction input-output characteristic value 820 correction after input-output characteristic value

Claims (5)

画像形成手段の階調特性に対する階調補正を行う画像形成装置において、
複数の色のパッチを含むテストチャートを前記画像形成手段に出力させるテストチャート出力手段と、
該テストチャート出力手段により出力させたテストチャートと、色濃度が既知である複数の色のパッチを含むリファレンスチャートとが同時に撮像された画像データを取得する画像データ取得手段と、
該画像データ取得手段により取得された前記画像データに含まれるレンズ歪みを補正する歪み補正手段と、
該歪み補正手段により前記レンズ歪みが補正された前記画像データを射影変換する射影変換手段と、
該射影変換手段により射影変換された前記画像データから、テストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域を検出するパッチ領域検出手段と、
該パッチ領域検出手段により検出されたテストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域から色値を特定する色値特定手段と、
該色値特定手段により特定されたテストチャート内の各パッチの色値及びリファレンスチャート内の各パッチの色値により前記画像形成手段の階調特性に対する階調補正データを作成する階調補正データ作成手段とを備え、
前記テストチャート出力手段は、テストチャートに、各パッチを囲う格子状の罫線を出力させ、
前記歪み補正手段は、
前記画像データに含まれる格子状の罫線の交点である格子点の座標を検出し、
前記レンズ歪みの無い理想状態における前記格子点の座標を(u,v)とすると、前記(u,v)は、下記の式(1)で示され、
Figure 0005960097
ここで、fx,fy:焦点距離、cx,cy:光軸中心であり、
検出された前記格子点の座標(xd,yd)は、前記レンズ歪みによって前記レンズ歪みの無い理想状態における前記格子点の座標(u,v)とは異なり、下記の式(2)により示され、
Figure 0005960097
ここで、k1,k2,k3:半径方向の歪み係数、p1,p2:円周方向の歪み係数であり、
前記式(1)を前記式(2)に代入した式に、検出された前記格子点の座標(xd,yd)の値を代入し、前記半径方向の歪み係数及び前記円周方向の歪み係数を算出し、算出された前記半径方向の歪み係数及び前記円周方向の歪み係数を代入した前記式(2)に、前記画像データの各格子点の座標を代入して算出された座標(u,v)に、検出された前記格子点の座標(xd,yd)を移動させる
ことを特徴とする画像形成装置。
In an image forming apparatus that performs gradation correction on the gradation characteristics of an image forming unit,
Test chart output means for causing the image forming means to output a test chart including a plurality of color patches;
Image data acquisition means for acquiring image data obtained by simultaneously imaging a test chart output by the test chart output means and a reference chart including a plurality of color patches with known color densities;
Distortion correction means for correcting lens distortion included in the image data acquired by the image data acquisition means;
A projective transformation means the lens distortion is projective transformation of the image data corrected by the strained correction means,
Patch area detecting means for detecting the area of each patch in the test chart and the area of each patch in the reference chart from the image data subjected to the projective transformation by the projective transformation means;
Color value specifying means for specifying a color value from the area of each patch in the test chart and the area of each patch in the reference chart detected by the patch area detecting means;
Tone correction data creation for creating tone correction data for the tone characteristics of the image forming means based on the color value of each patch in the test chart specified by the color value specifying means and the color value of each patch in the reference chart and means,
The test chart output means causes the test chart to output a grid-like ruled line surrounding each patch,
The distortion correction means includes
Detecting coordinates of grid points that are intersections of grid-like ruled lines included in the image data;
When the coordinates of the lattice points in the ideal state without lens distortion are (u, v), the (u, v) is expressed by the following equation (1):
Figure 0005960097
Here, fx, fy: focal length, cx, cy: optical axis center,
The coordinates (xd, yd) of the detected lattice points are different from the coordinates (u, v) of the lattice points in the ideal state without the lens distortion due to the lens distortion, and are expressed by the following equation (2). ,
Figure 0005960097
Where k1, k2, k3: radial distortion coefficients, p1, p2: circumferential distortion coefficients,
Substituting the values of the coordinates (xd, yd) of the detected lattice points into the equation obtained by substituting the equation (1) into the equation (2), the radial distortion coefficient and the circumferential distortion coefficient. And the coordinates (u) calculated by substituting the coordinates of each grid point of the image data into the equation (2) in which the calculated radial distortion coefficient and the circumferential distortion coefficient are substituted. , V), the coordinates (xd, yd) of the detected grid point are moved.
An image forming apparatus.
前記テストチャート出力手段は、テストチャートの位置を示すマーカーを出力させ、
前記射影変換手段は、前記画像データから前記マーカーを検出し、前記マーカーの位置により前記画像データを射影変換する
ことを特徴とする請求項1に記載の画像形成装置。
The test chart output means outputs a marker indicating the position of the test chart,
The image forming apparatus according to claim 1, wherein the projective conversion unit detects the marker from the image data and performs projective conversion on the image data based on a position of the marker.
前記テストチャート出力手段は、テストチャート内の各パッチの大きさをリファレンスチャート内の各パッチと同じ大きさに出力し、リファレンスチャートをテストチャートに並べて配置させるための位置指定画像を出力する
ことを特徴とする請求項1又は2に記載の画像形成装置。
The test chart output means outputs the size of each patch in the test chart to the same size as each patch in the reference chart, and outputs a position designation image for arranging and arranging the reference chart on the test chart. the image forming apparatus according to claim 1 or 2, characterized.
前記テストチャート出力手段は、The test chart output means includes
CMYKのパッチ列毎に、リファレンスチャートと同一行の色値に対応する長方形形状のパッチを出力し、  For each CMYK patch column, output a rectangular patch corresponding to the color value in the same row as the reference chart,
前記色値特定手段は、  The color value specifying means includes:
CMYKのパッチ列毎に、テストチャート内のパッチの色値と対応する濃度のリファレンスチャートのパッチの色値とを掛け合わせ、前記画像形成手段からの出力をリニアにするような値のテーブルを、前記階調補正データとして算出する  For each CMYK patch row, a table of values for multiplying the color value of the patch in the test chart by the color value of the patch of the reference chart of the corresponding density and making the output from the image forming means linear, Calculate as the gradation correction data
ことを特徴とする請求項3に記載の画像形成装置。  The image forming apparatus according to claim 3.
画像形成手段の階調特性に対する階調補正を行う画像形成装置による画像形成方法において、前記画像形成装置は、
複数の色のパッチを含むテストチャートを前記画像形成手段に出力させ、
テストチャートの前記画像形成手段への出力は、テストチャートに、各パッチを囲う格子状の罫線を出力させ、
出力させたテストチャートと、色濃度が既知である複数の色のパッチを含むリファレンスチャートとが同時に撮像された画像データを取得し、
取得された前記画像データに含まれるレンズ歪みを補正し、
前記レンズ歪みの補正において、
前記画像データに含まれる格子状の罫線の交点である格子点の座標を検出し、
前記レンズ歪みの無い理想状態における前記格子点の座標を(u,v)とすると、前記(u,v)は、下記の式(1)で示され、
Figure 0005960097
ここで、fx,fy:焦点距離、cx,cy:光軸中心であり、
検出された前記格子点の座標(xd,yd)は、前記レンズ歪みによって前記レンズ歪みの無い理想状態における前記格子点の座標(u,v)とは異なり、下記の式(2)により示され、
Figure 0005960097
ここで、k1,k2,k3:半径方向の歪み係数、p1,p2:円周方向の歪み係数であり、
前記式(1)を前記式(2)に代入した式に、検出された前記格子点の座標(xd,yd)の値を代入し、前記半径方向の歪み係数及び前記円周方向の歪み係数を算出し、算出された前記半径方向の歪み係数及び前記円周方向の歪み係数を代入した前記式(2)に、前記画像データの各格子点の座標を代入して算出された座標(u,v)に、検出された前記格子点の座標(xd,yd)を移動させ、
前記レンズ歪みが補正された前記画像データを射影変換し、
射影変換された前記画像データから、テストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域を検出し、
検出されたテストチャート内の各パッチの領域及びリファレンスチャート内の各パッチの領域から色値を特定し、
特定されたテストチャート内の各パッチの色値及びリファレンスチャート内の各パッチの色値により前記画像形成手段の階調特性に対する階調補正データを作成する
ことを特徴とする画像形成方法。
In the image forming method by the image forming apparatus that performs gradation correction on the gradation characteristics of the image forming unit, the image forming apparatus includes:
Causing the image forming means to output a test chart including a plurality of color patches;
The output of the test chart to the image forming means is to output a grid-like ruled line surrounding each patch to the test chart,
Obtain image data obtained by simultaneously imaging the output test chart and a reference chart including a plurality of color patches with known color densities,
Correct lens distortion included in the acquired image data,
In correcting the lens distortion,
Detecting coordinates of grid points that are intersections of grid-like ruled lines included in the image data;
When the coordinates of the lattice points in the ideal state without lens distortion are (u, v), the (u, v) is expressed by the following equation (1):
Figure 0005960097
Here, fx, fy: focal length, cx, cy: optical axis center,
The coordinates (xd, yd) of the detected lattice points are different from the coordinates (u, v) of the lattice points in the ideal state without the lens distortion due to the lens distortion, and are expressed by the following equation (2). ,
Figure 0005960097
Where k1, k2, k3: radial distortion coefficients, p1, p2: circumferential distortion coefficients,
Substituting the values of the coordinates (xd, yd) of the detected lattice points into the equation obtained by substituting the equation (1) into the equation (2), the radial distortion coefficient and the circumferential distortion coefficient. And the coordinates (u) calculated by substituting the coordinates of each grid point of the image data into the equation (2) in which the calculated radial distortion coefficient and the circumferential distortion coefficient are substituted. , V), the coordinates (xd, yd) of the detected lattice points are moved,
The image data which the lens distortion is corrected by projective transformation,
From the image data subjected to projective transformation, each patch area in the test chart and each patch area in the reference chart are detected,
Identify the color value from each patch area in the detected test chart and each patch area in the reference chart,
An image forming method, wherein gradation correction data for gradation characteristics of the image forming means is created based on the color value of each patch in the specified test chart and the color value of each patch in the reference chart.
JP2013136752A 2013-06-28 2013-06-28 Image forming apparatus and image forming method Expired - Fee Related JP5960097B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013136752A JP5960097B2 (en) 2013-06-28 2013-06-28 Image forming apparatus and image forming method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013136752A JP5960097B2 (en) 2013-06-28 2013-06-28 Image forming apparatus and image forming method

Publications (2)

Publication Number Publication Date
JP2015012469A JP2015012469A (en) 2015-01-19
JP5960097B2 true JP5960097B2 (en) 2016-08-02

Family

ID=52305256

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013136752A Expired - Fee Related JP5960097B2 (en) 2013-06-28 2013-06-28 Image forming apparatus and image forming method

Country Status (1)

Country Link
JP (1) JP5960097B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3758377B2 (en) * 1998-09-14 2006-03-22 コニカミノルタビジネステクノロジーズ株式会社 Image reading apparatus and chromatic aberration correction method
JP2002125135A (en) * 2000-10-18 2002-04-26 Konica Corp Image quality evaluation device
JP2003085542A (en) * 2001-09-07 2003-03-20 Neucore Technol Inc Method and device for correcting image data
JP2005223708A (en) * 2004-02-06 2005-08-18 Konica Minolta Photo Imaging Inc Inspection slip and data creation method for calibration
JP2007074484A (en) * 2005-09-08 2007-03-22 Seiko Epson Corp Calibration method, calibration system, calibration program, and recording medium recording the program
JP2007142589A (en) * 2005-11-15 2007-06-07 Ricoh Co Ltd Calibration support program and calibration support system
JP2013106131A (en) * 2011-11-11 2013-05-30 Hitachi Consumer Electronics Co Ltd Image processing device

Also Published As

Publication number Publication date
JP2015012469A (en) 2015-01-19

Similar Documents

Publication Publication Date Title
US8294947B2 (en) Image processing apparatus with front and back side reading units and method for correcting a color difference for a specific color
US8767232B2 (en) Image processing apparatus, image processing method, and computer-readable storage medium
JP6433187B2 (en) Information processing apparatus, control method thereof, and computer program
US8180179B2 (en) Image processing apparatus, image processing method, program executing image processing method, and storage medium
US10015368B2 (en) Calibration system, calibration method, and image forming apparatus
US8861029B2 (en) Apparatus for generating image correction data to perform gradation correction of image, has correction data generating unit that generates image correction data on identified color values of patches in test and reference charts
US20190007579A1 (en) Information processing apparatus, control method thereof, and storage medium
US8373892B2 (en) Managing modulation transfer function values for image data
US9055251B2 (en) Image processing based on automatic image-type detection
JP2011024116A (en) Image processing apparatus, image processing method, and program
JP5648409B2 (en) Image processing apparatus, image processing method, and program
US9268998B2 (en) Image determining apparatus, image processing system, and recording medium
JP2018081244A (en) Image forming apparatus, image processing apparatus, and method for measuring patches
JP2005316550A (en) Image processor, image reader, image inspection device and program
JP5960097B2 (en) Image forming apparatus and image forming method
JP7034742B2 (en) Image forming device, its method and program
JP5955822B2 (en) Color conversion apparatus, image forming apparatus, color conversion method, and color conversion program
JP7314733B2 (en) Color conversion table correction device, color conversion table correction program, and color conversion table correction method
JP6163946B2 (en) Image processing device
JP2010088048A (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
US9462155B2 (en) Method, device, and program product for dot area extraction based on periodicity of different numbers on pixels in crossing directions
JP4265176B2 (en) Image inspection apparatus and program
JP5477075B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP7207057B2 (en) Image processing device, image processing method, and program
JP5265040B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150420

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160223

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160420

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: 20160524

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160622

R150 Certificate of patent or registration of utility model

Ref document number: 5960097

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees