JP2014181909A - Imaging unit, colorimetric device, image forming apparatus, colorimetric system, and distance measuring method - Google Patents

Imaging unit, colorimetric device, image forming apparatus, colorimetric system, and distance measuring method Download PDF

Info

Publication number
JP2014181909A
JP2014181909A JP2013054444A JP2013054444A JP2014181909A JP 2014181909 A JP2014181909 A JP 2014181909A JP 2013054444 A JP2013054444 A JP 2013054444A JP 2013054444 A JP2013054444 A JP 2013054444A JP 2014181909 A JP2014181909 A JP 2014181909A
Authority
JP
Japan
Prior art keywords
colorimetric
distance
imaging
image
light source
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.)
Granted
Application number
JP2013054444A
Other languages
Japanese (ja)
Other versions
JP6131649B2 (en
Inventor
Satoshi Iwanami
智史 岩波
Nobuyuki Sato
信行 佐藤
Yasuyuki Suzuki
泰之 鈴木
Satoshi Hirata
聡 平田
Hideaki Suzuki
英明 鈴木
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2013054444A priority Critical patent/JP6131649B2/en
Publication of JP2014181909A publication Critical patent/JP2014181909A/en
Application granted granted Critical
Publication of JP6131649B2 publication Critical patent/JP6131649B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Spectrometry And Color Measurement (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a colorimetric device capable of obtaining stable image data from a subject of colorimetry to perform accurate colorimetry, an image forming apparatus, a colorimetric system, and a colorimetric method.SOLUTION: A colorimetric camera 20 includes: a sensor unit (two-dimensional image sensor 27) that photographs a predetermined imaging object area including a subject area; a light path length changing member that is arranged between the sensor unit and the subject area, and transmits light; an illumination light source 30 that illuminates the imaging object area, and causes regular reflection light to enter the sensor unit, the reflection light having transmitted through the light path length changing member, having been regularly reflected in the subject area, and having further transmitted through the light path length changing member; and a distance calculation unit 46 that calculates a distance from the sensor unit to the subject area on the basis of an image of the regular reflection light (white streaks) included in a photographed image that is output from the sensor unit (two-dimensional image sensor 27).

Description

本発明は、撮像ユニット、測色装置、画像形成装置、測色システムおよび距離測定方法に関する。   The present invention relates to an imaging unit, a color measurement device, an image forming apparatus, a color measurement system, and a distance measurement method.

プリンタなどの画像形成装置では、機器固有の特性による出力のばらつきを抑制して入力に対する出力の再現性を高めるために、カラーマネジメントと呼ばれる処理が行われる。カラーマネジメントは、機器固有の特性を記述したデバイスプロファイル(ICCプロファイル)に基づいて標準色空間と機器依存色との間の色変換を行うことで、出力画像の再現性を高める。デバイスプロファイルを生成、あるいは修正する際には、実際に画像形成装置により、記録媒体に多数の基準色の色票(パッチ)を並べたテストパターンを形成し、このテストパターンに含まれる各パッチに対する測色を行う。   In an image forming apparatus such as a printer, processing called color management is performed in order to improve output reproducibility with respect to input by suppressing variations in output due to device-specific characteristics. Color management improves the reproducibility of an output image by performing color conversion between a standard color space and a device-dependent color based on a device profile (ICC profile) that describes device-specific characteristics. When generating or modifying a device profile, an image forming apparatus actually forms a test pattern in which color charts (patches) of a large number of reference colors are arranged on a recording medium, and applies to each patch included in the test pattern. Perform colorimetry.

パッチの測色を行う測色装置としては、分光測色器が広く用いられている。分光測色器は、波長ごとの分光反射率が得られるため高精度の測色を行うことができる。しかし、分光測色器は高価な装置であるため、より安価な装置を用いて高精度の測色を行えるようにすることが要望されている。   A spectrocolorimeter is widely used as a color measuring device for measuring the color of a patch. Since the spectral colorimeter can obtain spectral reflectance for each wavelength, it can perform highly accurate color measurement. However, since the spectrocolorimeter is an expensive device, it is desired to perform high-precision colorimetry using a cheaper device.

高精度の測色を安価に実現する方法の一例として、測色対象を被写体とした撮像を行い、撮像により得られる画像(以下、「撮像画像」という。)に含まれる測色対象のRGB値を標準色空間における表色値に変換することが挙げられる。例えば、特許文献1には、2次元イメージセンサを用いて、測色対象パッチと、予め表色値が判明している複数の基準パッチを含む基準チャートとを同時に撮像し、撮像画像に含まれる測色対象パッチのRGB値と基準パッチのRGB値とに基づいて、測色対象パッチの測色値を算出する構成の測色装置が記載されている。   As an example of a method for realizing high-precision colorimetry at low cost, RGB values of colorimetric objects included in an image (hereinafter referred to as “captured image”) obtained by performing image-capturing with a colorimetric object as a subject. Is converted to a color value in the standard color space. For example, Patent Document 1 uses a two-dimensional image sensor to simultaneously capture a colorimetric target patch and a reference chart including a plurality of reference patches whose colorimetric values are known in advance, and are included in the captured image. There is described a color measurement device configured to calculate a color measurement value of a color measurement target patch based on an RGB value of the color measurement target patch and an RGB value of a reference patch.

しかし、特許文献1に記載の測色装置では、測色対象パッチの撮像時に測色対象パッチまでの距離が変動すると、算出される測色値が変化する場合がある。このため、測色対象パッチの測色値を算出する前に測色対象パッチまでの距離を測定し、正しい測色値を算出できるようにすることが望まれている。   However, in the color measurement device described in Patent Document 1, if the distance to the color measurement target patch varies during imaging of the color measurement target patch, the calculated color measurement value may change. Therefore, it is desired to measure the distance to the color measurement target patch before calculating the color measurement value of the color measurement target patch so that the correct color measurement value can be calculated.

本発明は、上記に鑑みてなされたものであって、測色対象となる被写体までの距離を測定することができる撮像ユニット、測色装置、画像形成装置、測色システムおよび距離測定方法を提供することを目的とする。   The present invention has been made in view of the above, and provides an imaging unit, a color measuring device, an image forming apparatus, a color measuring system, and a distance measuring method capable of measuring a distance to a subject to be color measured. The purpose is to do.

上述した課題を解決し、目的を達成するために、本発明は、被写体領域を含む所定の撮像対象領域を撮像するセンサ部と、前記センサ部と前記被写体領域との間に配置されて光を透過する光透過部材と、前記撮像対象領域を照明するものであって、前記光透過部材を透過し前記被写体領域で正反射しさらに前記光透過部材を透過した正反射光を前記センサ部に入射させる照明光源と、前記センサ部が出力する撮像画像に含まれる前記正反射光の画像に基づいて、前記センサ部から前記被写体領域までの距離を算出する距離演算部と、を備えることを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides a sensor unit that captures a predetermined imaging target region including a subject region, and a light that is disposed between the sensor unit and the subject region. A light transmissive member that illuminates the area to be imaged, and the specularly reflected light that has passed through the light transmissive member, reflected regularly at the subject area, and transmitted through the light transmissive member is incident on the sensor unit. An illumination light source to be operated; and a distance calculation unit that calculates a distance from the sensor unit to the subject region based on the image of the regular reflection light included in the captured image output by the sensor unit. To do.

本発明によれば、測色対象となる被写体までの距離を測定することができるという効果を奏する。   According to the present invention, it is possible to measure the distance to a subject to be colorimetric.

図1は、画像形成装置の内部を透視して示す斜視図である。FIG. 1 is a perspective view illustrating the inside of the image forming apparatus. 図2は、画像形成装置の内部の機械的構成を示す上面図である。FIG. 2 is a top view showing an internal mechanical configuration of the image forming apparatus. 図3は、キャリッジを昇降させる昇降機構の一例を説明する図である。FIG. 3 is a diagram for explaining an example of a lifting mechanism that lifts and lowers the carriage. 図4は、キャリッジに搭載される記録ヘッドの配置例を説明する図である。FIG. 4 is a diagram for explaining an arrangement example of the recording heads mounted on the carriage. 図5−1は、測色カメラの縦断面図(図5−3中のX1−X1線断面図)である。FIG. 5A is a longitudinal sectional view of the colorimetric camera (a sectional view taken along line X1-X1 in FIG. 5-3). 図5−2は、測色カメラの縦断面図(図5−3中のX2−X2線断面図)である。FIG. 5B is a longitudinal sectional view of the colorimetric camera (cross sectional view taken along line X2-X2 in FIG. 5-3). 図5−3は、測色カメラの内部を透視して示す上面図である。FIG. 5C is a top view of the inside of the color measurement camera seen through. 図5−4は、筐体の底面部を図5−1中のX3方向から見た平面図である。FIG. 5-4 is a plan view of the bottom surface of the housing as viewed from the X3 direction in FIG. 5-1. 図5−5は、測色カメラの縦断面図である。FIG. 5-5 is a longitudinal sectional view of the colorimetric camera. 図5−6は、正反射光による白抜け画像、および該白抜け画像を二値化した画像の模式図である。FIG. 5-6 is a schematic diagram of a white spot image obtained by specular reflection light and an image obtained by binarizing the white spot image. 図6は、基準チャートの具体例を示す図である。FIG. 6 is a diagram illustrating a specific example of the reference chart. 図7は、画像形成装置の制御機構の概略構成を示すブロック図である。FIG. 7 is a block diagram illustrating a schematic configuration of a control mechanism of the image forming apparatus. 図8は、測色カメラの制御機構の一構成例を示すブロック図である。FIG. 8 is a block diagram illustrating a configuration example of the control mechanism of the colorimetric camera. 図9は、距離演算部による被写体距離の算出方法の一例を説明する説明図である。FIG. 9 is an explanatory diagram illustrating an example of a method for calculating a subject distance by the distance calculation unit. 図10は、被写体距離の測定時にセンサ部の2次元イメージセンサから出力される撮像画像の一例を示す図である。FIG. 10 is a diagram illustrating an example of a captured image output from the two-dimensional image sensor of the sensor unit when the subject distance is measured. 図11は、被写体距離を算出する手順の一例を示すフローチャートである。FIG. 11 is a flowchart illustrating an example of a procedure for calculating the subject distance. 図12は、距離演算部による被写体距離の算出方法の他の例を説明する説明図である。FIG. 12 is an explanatory diagram for explaining another example of a method for calculating a subject distance by the distance calculation unit. 図13は、被写体距離を算出する手順の他の例を示すフローチャートである。FIG. 13 is a flowchart illustrating another example of the procedure for calculating the subject distance. 図14は、基準測色値および基準RGB値を取得する処理と基準値線形変換マトリックスを生成する処理を説明する図である。FIG. 14 is a diagram for explaining processing for obtaining a reference colorimetric value and a reference RGB value and processing for generating a reference value linear transformation matrix. 図15は、初期基準RGB値の一例を示す図である。FIG. 15 is a diagram illustrating an example of the initial reference RGB values. 図16は、測色処理の概要を説明する図である。FIG. 16 is a diagram for explaining the outline of the color measurement process. 図17は、基準RGB間線形変換マトリックスを生成する処理を説明する図である。FIG. 17 is a diagram for describing processing for generating a linear conversion matrix between reference RGB. 図18は、初期基準RGB値と測色時基準RGB値との関係を示す図である。FIG. 18 is a diagram illustrating the relationship between the initial reference RGB value and the colorimetric reference RGB value. 図19は、基本測色処理を説明する図である。FIG. 19 is a diagram for explaining basic colorimetry processing. 図20は、基本測色処理を説明する図である。FIG. 20 is a diagram for explaining basic colorimetry processing. 図21−1は、第1変形例の測色カメラの縦断面図である。FIG. 21A is a longitudinal sectional view of a colorimetric camera according to a first modification. 図21−2は、第1変形例の測色カメラの縦断面図である。FIG. 21B is a longitudinal sectional view of the colorimetric camera of the first modification. 図22は、第2変形例の測色カメラの縦断面図である。FIG. 22 is a longitudinal sectional view of a colorimetric camera of a second modification. 図23は、第3変形例の測色カメラの縦断面図である。FIG. 23 is a longitudinal sectional view of a colorimetric camera of a third modification. 図24は、第4変形例の測色カメラの縦断面図である。FIG. 24 is a longitudinal sectional view of a colorimetric camera according to a fourth modification. 図25は、第5変形例の測色カメラの縦断面図である。FIG. 25 is a longitudinal sectional view of a colorimetric camera of a fifth modification. 図26は、第6変形例の測色カメラの縦断面図である。FIG. 26 is a longitudinal sectional view of a colorimetric camera according to a sixth modification. 図27−1は、第7変形例の測色カメラの縦断面図である。FIG. 27A is a longitudinal sectional view of a colorimetric camera of a seventh modified example. 図27−2は、第7変形例の測色カメラにおける筐体の底面部を図27−1中のX4方向から見た平面図である。FIG. 27-2 is a plan view of the bottom surface of the housing of the colorimetric camera of the seventh modification when viewed from the X4 direction in FIG. 27-1. 図28は、測色システムの概略構成を示す図である。FIG. 28 is a diagram showing a schematic configuration of the color measurement system.

以下に添付図面を参照して、この発明に係る撮像ユニット、測色装置、画像形成装置、測色システムおよび距離測定方法の実施形態を詳細に説明する。なお、以下で説明する実施形態では、本発明を適用した画像形成装置の一例としてインクジェットプリンタを例示するが、本発明は、記録媒体に画像を出力する様々なタイプの画像形成装置に対して広く適用可能である。   Exemplary embodiments of an imaging unit, a color measurement device, an image forming device, a color measurement system, and a distance measurement method according to the present invention will be described below in detail with reference to the accompanying drawings. In the embodiments described below, an inkjet printer is illustrated as an example of an image forming apparatus to which the present invention is applied. However, the present invention is widely applied to various types of image forming apparatuses that output an image to a recording medium. Applicable.

<画像形成装置の機械的構成>
まず、図1乃至図4を参照しながら、本実施形態の画像形成装置100の機械的構成について説明する。図1は、本実施形態の画像形成装置100内部を透視して示す斜視図、図2は、本実施形態の画像形成装置100内部の機械的構成を示す上面図、図3は、キャリッジ5を昇降させる昇降機構の一例を説明する図、図4は、キャリッジ5に搭載される記録ヘッド6の配置例を説明する図である。
<Mechanical configuration of image forming apparatus>
First, the mechanical configuration of the image forming apparatus 100 according to the present embodiment will be described with reference to FIGS. 1 to 4. FIG. 1 is a perspective view illustrating the inside of the image forming apparatus 100 according to the present embodiment. FIG. 2 is a top view illustrating a mechanical configuration inside the image forming apparatus 100 according to the present embodiment. FIG. FIG. 4 is a diagram for explaining an example of an elevating mechanism that moves up and down, and FIG. 4 is a diagram for explaining an arrangement example of the recording head 6 mounted on the carriage 5.

図1に示すように、本実施形態の画像形成装置100は、主走査方向(図中矢印A方向)に往復移動して、副走査方向(図中矢印B方向)に間欠的に搬送される記録媒体Pに対して画像を形成するキャリッジ5を備える。キャリッジ5は、主走査方向に沿って延設された主ガイドロッド3により支持されている。また、キャリッジ5には連結片5aが設けられている。連結片5aは、主ガイドロッド3と平行に設けられた副ガイド部材4に係合し、キャリッジ5の姿勢を安定化させる。   As shown in FIG. 1, the image forming apparatus 100 according to the present embodiment reciprocates in the main scanning direction (arrow A direction in the figure) and is intermittently conveyed in the sub-scanning direction (arrow B direction in the figure). A carriage 5 for forming an image on the recording medium P is provided. The carriage 5 is supported by a main guide rod 3 extending along the main scanning direction. The carriage 5 is provided with a connecting piece 5a. The connecting piece 5 a engages with the sub guide member 4 provided in parallel with the main guide rod 3 to stabilize the posture of the carriage 5.

キャリッジ5には、図2に示すように、イエロー(Y)インクを吐出する記録ヘッド6y、マゼンタ(M)インクを吐出する記録ヘッド6m、シアン(C)インクを吐出する記録ヘッド6c、およびブラック(Bk)インクを吐出する複数の記録ヘッド6k(以下、記録ヘッド6y,6m,6c,6kを総称する場合は、「記録ヘッド6」という。)が搭載されている。記録ヘッド6は、その吐出面(ノズル面)が下方(記録媒体P側)に向くように、キャリッジ5に搭載されている。   As shown in FIG. 2, the carriage 5 includes a recording head 6y that discharges yellow (Y) ink, a recording head 6m that discharges magenta (M) ink, a recording head 6c that discharges cyan (C) ink, and black. (Bk) A plurality of recording heads 6k that discharge ink (hereinafter, the recording heads 6y, 6m, 6c, and 6k are collectively referred to as “recording heads 6”) are mounted. The recording head 6 is mounted on the carriage 5 so that the ejection surface (nozzle surface) faces downward (the recording medium P side).

記録ヘッド6にインクを供給するためのインク供給体であるカートリッジ7は、キャリッジ5には搭載されず、画像形成装置100内の所定の位置に配置されている。カートリッジ7と記録ヘッド6とは図示しないパイプで連結されており、このパイプを介して、カートリッジ7から記録ヘッド6に対してインクが供給される。   A cartridge 7, which is an ink supply body for supplying ink to the recording head 6, is not mounted on the carriage 5 and is disposed at a predetermined position in the image forming apparatus 100. The cartridge 7 and the recording head 6 are connected by a pipe (not shown), and ink is supplied from the cartridge 7 to the recording head 6 through this pipe.

キャリッジ5は、駆動プーリ9と従動プーリ10との間に張架されたタイミングベルト11に連結されている。駆動プーリ9は、主走査モータ8の駆動により回転する。従動プーリ10は、駆動プーリ9との間の距離を調整する機構を有し、タイミングベルト11に対して所定のテンションを与える役割を持つ。キャリッジ5は、主走査モータ8の駆動によりタイミングベルト11が送り動作されることにより、主走査方向に往復移動する。キャリッジ5の主走査方向の移動は、たとえば図2に示すように、キャリッジ5に設けられたエンコーダセンサ13がエンコーダシート14のマークを検知して得られるエンコーダ値に基づいて制御される。   The carriage 5 is connected to a timing belt 11 stretched between a driving pulley 9 and a driven pulley 10. The drive pulley 9 is rotated by driving the main scanning motor 8. The driven pulley 10 has a mechanism for adjusting the distance to the driving pulley 9 and has a role of applying a predetermined tension to the timing belt 11. The carriage 5 reciprocates in the main scanning direction when the timing belt 11 is fed by driving the main scanning motor 8. The movement of the carriage 5 in the main scanning direction is controlled based on an encoder value obtained when the encoder sensor 13 provided on the carriage 5 detects the mark on the encoder sheet 14 as shown in FIG.

また、本実施形態の画像形成装置100は、記録ヘッド6の信頼性を維持するための維持機構15を備える。維持機構15は、記録ヘッド6の吐出面の清掃やキャッピング、記録ヘッド6からの不要なインクの排出などを行う。   In addition, the image forming apparatus 100 according to the present embodiment includes a maintenance mechanism 15 for maintaining the reliability of the recording head 6. The maintenance mechanism 15 performs cleaning and capping of the ejection surface of the recording head 6 and discharging unnecessary ink from the recording head 6.

記録ヘッド6の吐出面と対向する位置には、図2に示すように、プラテン16が設けられている。プラテン16は、記録ヘッド6から記録媒体P上にインクを吐出する際に、記録媒体Pを支持するためのものである。本実施形態の画像形成装置100は、キャリッジ5の主走査方向の移動距離が長い広幅機である。このため、プラテン16は、複数の板状部材を主走査方向(キャリッジ5の移動方向)に繋いで構成している。記録媒体Pは、後述の副走査モータ12(図7参照)によって駆動される搬送ローラにより挟持され、プラテン16上を、副走査方向に間欠的に搬送される。   As shown in FIG. 2, a platen 16 is provided at a position facing the ejection surface of the recording head 6. The platen 16 is for supporting the recording medium P when ink is ejected from the recording head 6 onto the recording medium P. The image forming apparatus 100 according to the present embodiment is a wide-width machine in which the moving distance of the carriage 5 in the main scanning direction is long. For this reason, the platen 16 is configured by connecting a plurality of plate-like members in the main scanning direction (movement direction of the carriage 5). The recording medium P is nipped by a conveyance roller driven by a sub-scanning motor 12 (see FIG. 7) described later, and is intermittently conveyed on the platen 16 in the sub-scanning direction.

記録媒体Pが腰の強い用紙や折れ用紙などの場合、プラテン16から記録媒体Pが浮き上がって搬送される場合がある。このとき、記録媒体Pが記録ヘッド6の吐出面に接触すると記録ヘッド6の破損に繋がる虞がある。そこで、画像形成装置100は、プラテン16からの浮きが発生しやすい記録媒体Pへの対策として、キャリッジ5を昇降させる昇降機構を備えており、浮きが発生しやすい記録媒体Pを使用する際には記録媒体Pから記録ヘッド6の吐出面との間の距離を大きく取ることができるようにしている。なお、キャリッジ5の昇降とは、記録媒体Pに対して近接離間する方向へのキャリッジ5の移動をいう。   When the recording medium P is a stiff sheet or a folded sheet, the recording medium P may be lifted from the platen 16 and conveyed. At this time, if the recording medium P comes into contact with the ejection surface of the recording head 6, the recording head 6 may be damaged. In view of this, the image forming apparatus 100 includes a lifting mechanism that lifts and lowers the carriage 5 as a countermeasure for the recording medium P that easily floats from the platen 16, and is used when the recording medium P that easily lifts is used. In this case, the distance between the recording medium P and the ejection surface of the recording head 6 can be increased. The raising / lowering of the carriage 5 refers to the movement of the carriage 5 in the direction of approaching and separating from the recording medium P.

昇降機構は、たとえば図3に示すように、キャリッジ昇降モータ17の駆動により偏心カム18を変位させてキャリッジ5を昇降させる構成である。すなわち、キャリッジ昇降モータ17の回転により、キャリッジ昇降モータ17の回転軸に取り付けられたギア17aが偏心カム18の軸18aを回転させる。軸18aは偏心カム18の中心から変位した位置に設けられているため、軸18aが回転すると偏心カム18が変位する。キャリッジ5は、偏心カム18に当接しているため、偏心カム18の変位に伴って図中矢印で示す方向に昇降する。なお、図3に示す昇降機構はあくまで一例であり、キャリッジ5を昇降できる機能であればどのような構成であってもよい。   For example, as shown in FIG. 3, the lifting mechanism is configured to lift the carriage 5 by displacing the eccentric cam 18 by driving the carriage lifting motor 17. That is, the gear 17 a attached to the rotation shaft of the carriage lifting / lowering motor 17 rotates the shaft 18 a of the eccentric cam 18 by the rotation of the carriage lifting / lowering motor 17. Since the shaft 18a is provided at a position displaced from the center of the eccentric cam 18, the eccentric cam 18 is displaced when the shaft 18a rotates. Since the carriage 5 is in contact with the eccentric cam 18, the carriage 5 moves up and down in the direction indicated by the arrow in the drawing as the eccentric cam 18 is displaced. Note that the lifting mechanism shown in FIG. 3 is merely an example, and any configuration may be used as long as it can raise and lower the carriage 5.

記録ヘッド6は、複数のノズル列を備えており、プラテン16上を搬送される記録媒体P上にノズル列からインクを吐出することで、記録媒体Pに画像を形成する。本実施形態では、キャリッジ5の1回の走査で記録媒体Pに形成できる画像の幅を多く確保するため、図4に示すように、キャリッジ5に、上流側の記録ヘッド6と下流側の記録ヘッド6とを搭載している。また、ブラックのインクを吐出する記録ヘッド6kは、カラーのインクを吐出する記録ヘッド6y,6m,6cの2倍の数だけキャリッジ5に搭載している。また、記録ヘッド6y,6mは左右に分離して配置されている。これは、キャリッジ5の往復動作で色の重ね順を合わせ、往路と復路とで色が変わらないようにするためである。なお、図4に示す記録ヘッド6の配列は一例であり、図4に示す配列に限定されるものではない。   The recording head 6 includes a plurality of nozzle arrays, and forms an image on the recording medium P by ejecting ink from the nozzle arrays onto the recording medium P transported on the platen 16. In this embodiment, in order to secure a large width of an image that can be formed on the recording medium P by one scan of the carriage 5, as shown in FIG. 4, the upstream recording head 6 and the downstream recording head are provided on the carriage 5. The head 6 is mounted. Further, the recording head 6k that discharges black ink is mounted on the carriage 5 as many times as the recording heads 6y, 6m, and 6c that discharge color ink. The recording heads 6y and 6m are arranged separately on the left and right. This is because the color stacking order is adjusted by the reciprocating operation of the carriage 5 so that the color does not change between the forward path and the return path. Note that the arrangement of the recording heads 6 shown in FIG. 4 is an example, and is not limited to the arrangement shown in FIG.

本実施形態の画像形成装置100を構成する上記の各構成要素は、外装体1の内部に配置されている。外装体1にはカバー部材2が開閉可能に設けられている。画像形成装置100のメンテナンス時やジャム発生時には、カバー部材2を開けることにより、外装体1の内部に設けられた各構成要素に対して作業を行うことができる。   Each of the above-described constituent elements constituting the image forming apparatus 100 of the present embodiment is disposed inside the exterior body 1. The exterior body 1 is provided with a cover member 2 that can be opened and closed. At the time of maintenance of the image forming apparatus 100 or when a jam occurs, the cover member 2 can be opened to perform work on each component provided inside the exterior body 1.

本実施形態の画像形成装置100は、記録媒体Pを副走査方向に間欠的に搬送し、記録媒体Pの副走査方向の搬送が停止している間に、キャリッジ5を主走査方向に移動させながら、キャリッジ5に搭載された記録ヘッド6のノズル列からプラテン16上の記録媒体P上にインクを吐出して、記録媒体Pに画像を形成する(画像形成部)。   The image forming apparatus 100 according to the present embodiment intermittently conveys the recording medium P in the sub-scanning direction, and moves the carriage 5 in the main scanning direction while the conveyance of the recording medium P in the sub-scanning direction is stopped. However, ink is ejected from the nozzle row of the recording head 6 mounted on the carriage 5 onto the recording medium P on the platen 16 to form an image on the recording medium P (image forming unit).

特に、画像形成装置100の色調整を行う調整時には、キャリッジ5に搭載された記録ヘッド6のノズル列から実際にプラテン16上の記録媒体Pにインクを吐出して、多数の測色対象パッチCPが並ぶテストパターンを形成する。そして、このテストパターンに含まれる各測色対象パッチCPに対する測色を行う。テストパターンに含まれる各測色対象パッチCPは、それぞれ基準色のパッチを画像形成装置100が出力することで得られる画像であり、画像形成装置100に固有の出力特性を反映している。したがって、これらの測色対象パッチCPの測色値を用いて、画像形成装置100に固有の特性を記述したデバイスプロファイルを生成、あるいは修正することができる。そして、このデバイスプロファイルに基づいて標準色空間と機器依存色との間の色変換を行うことで、画像形成装置100は再現性の高い画像を出力することができる。   In particular, at the time of adjusting the color of the image forming apparatus 100, ink is actually ejected from the nozzle row of the recording head 6 mounted on the carriage 5 onto the recording medium P on the platen 16, and a large number of colorimetric patches CP. A test pattern is formed. Then, color measurement is performed on each color measurement target patch CP included in the test pattern. Each colorimetric object patch CP included in the test pattern is an image obtained when the image forming apparatus 100 outputs a reference color patch, and reflects output characteristics unique to the image forming apparatus 100. Therefore, a device profile describing characteristics unique to the image forming apparatus 100 can be generated or modified using the colorimetric values of these colorimetric target patches CP. Then, by performing color conversion between the standard color space and the device-dependent color based on this device profile, the image forming apparatus 100 can output an image with high reproducibility.

本実施形態の画像形成装置100は、記録媒体Pに形成したテストパターンに含まれる各測色対象パッチCPに対する測色を行うための測色カメラ(撮像ユニット、測色装置)20を備える。測色カメラ20は、画像形成装置100により記録媒体Pに形成されたテストパターンに含まれる測色対象パッチCPを被写体とし、この測色対象パッチCPと後述する基準チャート400とを同時に撮像する。そして、測色カメラ20は、撮像によって得られる測色対象パッチCPのRGB値および基準チャート400に含まれる各基準パッチのRGB値を用いて、測色対象パッチCPの測色値を算出する。   The image forming apparatus 100 of this embodiment includes a colorimetric camera (imaging unit, colorimetric device) 20 for performing colorimetry on each colorimetric target patch CP included in a test pattern formed on a recording medium P. The color measurement camera 20 takes a color measurement target patch CP included in a test pattern formed on the recording medium P by the image forming apparatus 100 as a subject, and simultaneously images the color measurement target patch CP and a reference chart 400 described later. Then, the colorimetric camera 20 calculates the colorimetric value of the colorimetric target patch CP by using the RGB value of the colorimetric target patch CP obtained by imaging and the RGB value of each reference patch included in the reference chart 400.

測色カメラ20は、図2および図3に示すように、キャリッジ5に対して固定されて設けられ、キャリッジ5と一体となって主走査方向に往復移動する。そして、測色カメラ20は、プラテン16上の記録媒体Pに形成されたテストパターンに含まれる各測色対象パッチCPと対向する位置に移動したときに、各測色対象パッチCPを基準チャート400と同時に撮像する。なお、ここでの同時に撮像とは、測色対象パッチCPと基準チャート400とを含む1フレームの画像データを取得することを意味する。つまり、画素ごとのデータ取得に時間差があっても、1フレーム内に測色対象パッチCPと基準チャート400とを含む画像データを取得すれば、測色対象パッチCPと基準チャート400とを同時に撮像したことになる。   As shown in FIGS. 2 and 3, the colorimetric camera 20 is fixed to the carriage 5 and reciprocates in the main scanning direction together with the carriage 5. When the colorimetric camera 20 moves to a position facing each colorimetric object patch CP included in the test pattern formed on the recording medium P on the platen 16, each colorimetric object patch CP is displayed on the reference chart 400. Take an image at the same time. Note that the simultaneous imaging here means that one frame of image data including the colorimetric target patch CP and the reference chart 400 is acquired. That is, even if there is a time difference in data acquisition for each pixel, if the image data including the color measurement target patch CP and the reference chart 400 is acquired in one frame, the color measurement target patch CP and the reference chart 400 are simultaneously captured. It will be done.

<測色カメラの具体例>
次に、図5−1乃至図5−4を参照しながら、測色カメラ20の具体例について詳細に説明する。図5−1乃至図5−4は、測色カメラ20の具体例を示す図であり、図5−1は、測色カメラ20の縦断面図(図5−3中のX1−X1線断面図)、図5−2は、測色カメラ20の縦断面図(図5−3中のX2−X2線断面図)、図5−3は、測色カメラ20の内部を透視して示す上面図、図5−4は、筐体の底面部を図5−1中のX3方向から見た平面図である。
<Specific examples of colorimetric cameras>
Next, a specific example of the colorimetric camera 20 will be described in detail with reference to FIGS. 5A to 5D are diagrams illustrating specific examples of the colorimetric camera 20, and FIG. 5A is a longitudinal sectional view of the colorimetric camera 20 (cross-sectional view taken along line X1-X1 in FIG. 5-3). FIG. 5B is a longitudinal sectional view of the colorimetric camera 20 (cross-sectional view taken along line X2-X2 in FIG. 5C), and FIG. 5C is a top view of the colorimetric camera 20 seen through. FIGS. 5-4 are plan views of the bottom surface of the housing as viewed from the X3 direction in FIG.

測色カメラ20は、枠体21と基板22とを組み合わせて構成された筐体23を備える。枠体21は、筐体23の上面となる一端側が開放された有底筒状に形成されている。基板22は、枠体21の開放端を閉塞して筐体23の上面を構成するように、締結部材24によって枠体21に締結され、枠体21と一体化されている。   The colorimetric camera 20 includes a housing 23 configured by combining a frame body 21 and a substrate 22. The frame body 21 is formed in a bottomed cylindrical shape in which one end side which is the upper surface of the housing 23 is opened. The substrate 22 is fastened to the frame body 21 by a fastening member 24 and integrated with the frame body 21 so as to close the open end of the frame body 21 and configure the upper surface of the housing 23.

筐体23は、その底面部23aが所定の間隙dを介してプラテン16上の記録媒体Pと対向するように、キャリッジ5に固定される。記録媒体Pと対向する筐体23の底面部23aには、記録媒体Pに形成された被写体(色調整では測色対象パッチCP)を筐体23の内部から撮影可能にするための開口部25が設けられている。   The housing 23 is fixed to the carriage 5 so that the bottom surface portion 23a faces the recording medium P on the platen 16 with a predetermined gap d. On the bottom surface 23 a of the housing 23 facing the recording medium P, an opening 25 for enabling the subject (color measurement target patch CP in color adjustment) formed on the recording medium P to be photographed from the inside of the housing 23. Is provided.

筐体23の内部には、画像を撮像するセンサ部26が設けられている。センサ部26は、CCDセンサまたはCMOSセンサなどの2次元イメージセンサ27と、センサ部26の撮像対象領域の光学像を2次元イメージセンサ27のセンサ面に結像する結像レンズ28とを備える。2次元イメージセンサ27は、センサ面が筐体23の底面部23a側に向くように、たとえば、基板22の内面(部品実装面)に実装されている。結像レンズ28は、その光学特性に応じて定められる位置関係を保つように2次元イメージセンサ27に対して位置決めされた状態で固定されている。   A sensor unit 26 that captures an image is provided inside the housing 23. The sensor unit 26 includes a two-dimensional image sensor 27 such as a CCD sensor or a CMOS sensor, and an imaging lens 28 that forms an optical image of an imaging target region of the sensor unit 26 on the sensor surface of the two-dimensional image sensor 27. The two-dimensional image sensor 27 is mounted on, for example, the inner surface (component mounting surface) of the substrate 22 so that the sensor surface faces the bottom surface portion 23 a side of the housing 23. The imaging lens 28 is fixed in a state of being positioned with respect to the two-dimensional image sensor 27 so as to maintain a positional relationship determined according to the optical characteristics thereof.

筐体23の底面部23aのセンサ部26と対向する内面側には、底面部23aに設けられた開口部25と隣り合うようにして、基準チャート400が配置されている。基準チャート400は、測色対象パッチCPを測色する際に、センサ部26の2次元イメージセンサ27により測色対象パッチCPとともに撮像されるものである。つまり、基準チャート400は、筐体23の外部の測色対象パッチCPとともに、センサ部26の撮像対象領域に含まれるように、筐体23の底面部23aに配置されている。センサ部26の撮像対象領域のうち、開口部25を介して撮像される筐体23の外部の領域を、ここでは被写体領域という。なお、基準チャート400の詳細については後述する。   A reference chart 400 is disposed on the inner surface of the bottom surface 23a of the housing 23 facing the sensor unit 26 so as to be adjacent to the opening 25 provided in the bottom surface 23a. The reference chart 400 is imaged together with the color measurement target patch CP by the two-dimensional image sensor 27 of the sensor unit 26 when the color measurement target patch CP is measured. That is, the reference chart 400 is arranged on the bottom surface portion 23 a of the housing 23 so as to be included in the imaging target region of the sensor unit 26 together with the color measurement target patch CP outside the housing 23. Of the imaging target area of the sensor unit 26, an area outside the housing 23 that is imaged through the opening 25 is referred to as a subject area. Details of the reference chart 400 will be described later.

また、筐体23の内部には、センサ部26の撮像対象領域を照明する照明光源30が設けられている。照明光源30としては、たとえばLED(Light Emitting Diode)が用いられる。本実施形態においては、照明光源30として2つのLEDを用いる。照明光源30として用いるこれら2つのLEDは、たとえば、センサ部26の2次元イメージセンサ27とともに、基板22の内面に実装される。ただし、照明光源30は、被写体(測色対象パッチCP)と基準チャート400とを照明できる位置に配置されていればよく、必ずしも基板22に直接実装されていなくてもよい。また、本実施形態では、照明光源30としてLEDを用いているが、光源の種類はLEDに限定されるものではない。例えば、有機ELなどを照明光源30として用いるようにしてもよい。有機ELを照明光源30として用いた場合は、太陽光の分光分布に近い照明光が得られるため、測色精度の向上が期待できる。   In addition, an illumination light source 30 that illuminates an imaging target region of the sensor unit 26 is provided inside the housing 23. For example, an LED (Light Emitting Diode) is used as the illumination light source 30. In the present embodiment, two LEDs are used as the illumination light source 30. These two LEDs used as the illumination light source 30 are mounted on the inner surface of the substrate 22 together with the two-dimensional image sensor 27 of the sensor unit 26, for example. However, the illumination light source 30 only needs to be disposed at a position where the subject (color measurement target patch CP) and the reference chart 400 can be illuminated, and is not necessarily mounted directly on the substrate 22. Moreover, in this embodiment, although LED is used as the illumination light source 30, the kind of light source is not limited to LED. For example, an organic EL or the like may be used as the illumination light source 30. When the organic EL is used as the illumination light source 30, illumination light close to the spectral distribution of sunlight can be obtained, so that improvement in colorimetric accuracy can be expected.

また、本実施形態では、図5−3に示すように、照明光源30として用いる2つのLEDを基板22側から筐体23の底面部23a側に垂直に見下ろしたときの底面部23a上の投影位置が、開口部25と基準チャート400との間の領域内となり、且つ、センサ部26を中心として対称となる位置となるように、これら2つのLEDが配置されている。換言すると、照明光源30として用いる2つのLEDを結ぶ線がセンサ部26の結像レンズ28の中心を通り、且つ、この2つのLEDを結ぶ線に対して線対称となる位置に、開口部25と基準チャート400とが配置される。照明光源30として用いる2つのLEDをこのように配置することにより、筐体23の外部の測色対象パッチCPと筐体23の内部の基準チャートKCとを、概ね同一の条件にて照明することができる。   In the present embodiment, as shown in FIG. 5C, the projection on the bottom surface portion 23a when two LEDs used as the illumination light source 30 are vertically looked down from the substrate 22 side to the bottom surface portion 23a side of the housing 23. These two LEDs are arranged so that the position is within the region between the opening 25 and the reference chart 400 and is symmetric with respect to the sensor unit 26. In other words, the opening 25 is formed at a position where a line connecting two LEDs used as the illumination light source 30 passes through the center of the imaging lens 28 of the sensor unit 26 and is symmetrical with respect to a line connecting the two LEDs. And a reference chart 400 are arranged. By arranging the two LEDs used as the illumination light source 30 in this way, the color measurement target patch CP outside the housing 23 and the reference chart KC inside the housing 23 are illuminated under substantially the same conditions. Can do.

ところで、筐体23の内部に配置された基準チャート400と同一の照明条件により筐体23の外部の測色対象パッチCPを照明するには、センサ部26による撮像時に外光が測色対象パッチCPに当たらないようにして、照明光源30からの照明光のみで測色対象パッチCPを照明する必要がある。測色対象パッチCPに外光が当たらないようにするには、筐体23の底面部23aと記録媒体Pとの間の間隙dを小さくし、測色対象パッチCPに向かう外光が筐体23によって遮られるようにすることが有効である。ただし、筐体23の底面部23aと記録媒体Pとの間の間隙dを小さくしすぎると、記録媒体Pが筐体23の底面部23aに接触してしまい、画像の撮像を適切に行えなくなる虞がある。そこで、筐体23の底面部23aと記録媒体Pとの間の間隙dは、記録媒体Pの平面性を考慮して、記録媒体Pが筐体23の底面部23aに接触しない範囲で小さな値に設定することが望ましい。たとえば、筐体23の底面部23aと記録媒体Pとの間の間隙dを1mm〜2mm程度に設定すれば、記録媒体Pが筐体23の底面部23aに接触することなく、記録媒体Pに形成された測色対象パッチCPに外光が当たることを有効に防止できる。   By the way, in order to illuminate the color measurement target patch CP outside the housing 23 under the same illumination condition as the reference chart 400 arranged inside the housing 23, external light is used when the sensor unit 26 performs imaging. It is necessary to illuminate the color measurement target patch CP with only the illumination light from the illumination light source 30 so as not to hit the CP. In order to prevent external light from hitting the colorimetric target patch CP, the gap d between the bottom surface portion 23a of the housing 23 and the recording medium P is reduced, and external light directed to the colorimetric target patch CP is exposed to the housing. It is effective to be shielded by 23. However, if the gap d between the bottom surface portion 23a of the housing 23 and the recording medium P is made too small, the recording medium P will come into contact with the bottom surface portion 23a of the housing 23 and the image cannot be captured properly. There is a fear. Therefore, the gap d between the bottom surface 23a of the housing 23 and the recording medium P is a small value in a range where the recording medium P does not contact the bottom surface 23a of the housing 23 in consideration of the flatness of the recording medium P. It is desirable to set to. For example, if the gap d between the bottom surface portion 23 a of the housing 23 and the recording medium P is set to about 1 mm to 2 mm, the recording medium P does not contact the bottom surface portion 23 a of the housing 23 and the recording medium P It is possible to effectively prevent external light from hitting the formed colorimetric object patch CP.

また、筐体23の内部には、開口部25を内面側から塞ぐようにして、光路長変更部材31が配置されている。光路長変更部材31は、照明光源30の光(照明光)に対して十分な透過率を有する屈折率n(nは任意の数)の光学素子(光透過部材)である。光路長変更部材31は、筐体23の外部の測色対象パッチCPとセンサ部26との間の光の経路中に配置され、測色対象パッチCPの光学像の結像面を基準チャート400の光学像の結像面に近づける機能を持つ。つまり、本実施形態の測色カメラ20では、測色対象パッチCPとセンサ部26との間の光の経路中に光路長変更部材31を配置することによって、筐体23の外部の測色対象パッチCPの光学像の結像面と、筐体23の内部の基準チャート400の結像面とを、ともにセンサ部26の2次元イメージセンサ27のセンサ面に合わせるようにしている。   An optical path length changing member 31 is arranged inside the housing 23 so as to close the opening 25 from the inner surface side. The optical path length changing member 31 is an optical element (light transmitting member) having a refractive index n (n is an arbitrary number) having a sufficient transmittance with respect to the light (illumination light) of the illumination light source 30. The optical path length changing member 31 is disposed in the light path between the colorimetric target patch CP outside the housing 23 and the sensor unit 26, and the imaging surface of the optical image of the colorimetric target patch CP is used as a reference chart 400. It has a function to bring the optical image closer to the image plane. In other words, in the colorimetric camera 20 of the present embodiment, the optical path length changing member 31 is disposed in the light path between the colorimetric target patch CP and the sensor unit 26, thereby providing a colorimetric target outside the housing 23. The imaging surface of the optical image of the patch CP and the imaging surface of the reference chart 400 inside the housing 23 are both matched with the sensor surface of the two-dimensional image sensor 27 of the sensor unit 26.

光路長変更部材31を光が通過すると、光路長変更部材31の屈折率nに応じて光路長が延び、画像が浮き上がって見える。画像の浮上がり量Cは、光路長変更部材31の光軸方向の長さをLpとすると、以下の式で求めることができる。
C=Lp(1−1/n)
When light passes through the optical path length changing member 31, the optical path length is extended according to the refractive index n of the optical path length changing member 31, and the image appears to float. The image floating amount C can be obtained by the following equation, where Lp is the length of the optical path length changing member 31 in the optical axis direction.
C = Lp (1-1 / n)

また、センサ部26の結像レンズ28の主点と基準チャート400との間の距離をLcとすると、結像レンズ28の主点と光路長変更部材31を透過する光学像の前側焦点面(撮像面)との間の距離Lは、以下の式で求めることができる。
L=Lc+Lp(1−1/n)
Further, if the distance between the principal point of the imaging lens 28 of the sensor unit 26 and the reference chart 400 is Lc, the front focal plane of the optical image transmitted through the principal point of the imaging lens 28 and the optical path length changing member 31 ( The distance L to the imaging surface can be obtained by the following equation.
L = Lc + Lp (1-1 / n)

ここで、光路長変更部材31の屈折率nを1.5とした場合、L=Lc+Lp(1/3)となり、光路長変更部材31を透過する光学像の光路長を光路長変更部材31の光軸方向の長さLpの約1/3だけ長くすることができる。この場合、例えばLp=9[mm]とすれば、L=Lc+3[mm]となるので、センサ部26から基準チャート400までの距離と測色対象パッチCPまでの距離との差が3mmとなる状態で撮像すれば、基準チャートKCの光学像の後側焦点面(結像面)と、測色対象パッチCPの光学像の後側焦点面(結像面)とを、ともにセンサ部26の2次元イメージセンサ27のセンサ面に合わせることができる。   Here, when the refractive index n of the optical path length changing member 31 is 1.5, L = Lc + Lp (1/3), and the optical path length of the optical image transmitted through the optical path length changing member 31 is the same as that of the optical path length changing member 31. The length can be increased by about 1/3 of the length Lp in the optical axis direction. In this case, for example, if Lp = 9 [mm], L = Lc + 3 [mm], so that the difference between the distance from the sensor unit 26 to the reference chart 400 and the distance to the colorimetric target patch CP is 3 mm. If the imaging is performed in the state, the rear focal plane (imaging plane) of the optical image of the reference chart KC and the rear focal plane (imaging plane) of the optical image of the color measurement target patch CP are both of the sensor unit 26. It can be matched with the sensor surface of the two-dimensional image sensor 27.

本実施形態の画像形成装置100は、上述したように、キャリッジ5に搭載された記録ヘッド6のノズル列からプラテン16上の記録媒体P上にインクを吐出して、記録媒体Pに画像を形成する構成である。このため、記録ヘッド6のノズル列からインクを吐出する際に、霧(ミスト)状の微小なインク粒子(以下、このような微小なインク粒子を「ミスト」という。)が発生する。そして、画像形成時に発生したミストが、キャリッジ5に固定して設けられた測色カメラ20の筐体23の外部から開口部25を介して筐体23の内部に入り込むと、筐体23内部に入り込んだミストがセンサ部26や照明光源30、光路長変更部材31などに付着して、測色対象パッチCPの測色を行う調整時などに正確なRGB値が得られなくなる懸念がある。そこで、本実施形態の測色カメラ20では、筐体23の底面部23aに設けられた開口部25にミスト防止ガラス32を配置することにより、画像形成時に発生したミストが筐体23の内部に入り込むことを防止している。   As described above, the image forming apparatus 100 according to the present embodiment forms an image on the recording medium P by ejecting ink from the nozzle row of the recording head 6 mounted on the carriage 5 onto the recording medium P on the platen 16. It is the structure to do. For this reason, when ink is ejected from the nozzle array of the recording head 6, mist-like minute ink particles (hereinafter, such minute ink particles are referred to as “mist”) are generated. When mist generated during image formation enters the housing 23 from the outside of the housing 23 of the colorimetric camera 20 provided fixed to the carriage 5 through the opening 25, the mist enters the housing 23. There is a concern that the mist that has entered may adhere to the sensor unit 26, the illumination light source 30, the optical path length changing member 31, and the like, so that accurate RGB values cannot be obtained at the time of adjustment for performing color measurement of the color measurement target patch CP. Therefore, in the colorimetric camera 20 of the present embodiment, the mist generated during image formation is placed inside the housing 23 by disposing the mist prevention glass 32 in the opening 25 provided in the bottom surface portion 23a of the housing 23. Prevent entry.

ミスト防止ガラス32は、照明光源30の光(照明光)に対して十分な透過率を有する透明な光学素子(光透過部材)であり、開口部25の全体を覆うことができる大きさの板状に形成されている。ミスト防止ガラス32は、筐体23の底面部23aに沿って形成されたスリットに装着され、筐体23の底面部23aに設けられた開口部25の全面を閉止する。ミスト防止ガラス32が装着されるスリットは、筐体23の側面部にて開口している。ミスト防止ガラス32は、この筐体23の側面部から挿入されてスリットに装着することができる。また、ミスト防止ガラス32は、筐体23の側面部から取り外すこともでき、適宜交換が可能である。   The mist prevention glass 32 is a transparent optical element (light transmission member) having a sufficient transmittance with respect to the light (illumination light) of the illumination light source 30 and is a plate having a size capable of covering the entire opening 25. It is formed in a shape. The mist prevention glass 32 is attached to a slit formed along the bottom surface portion 23 a of the housing 23 and closes the entire surface of the opening 25 provided in the bottom surface portion 23 a of the housing 23. The slit in which the mist prevention glass 32 is mounted opens at the side surface of the housing 23. The mist prevention glass 32 can be inserted from the side surface portion of the housing 23 and attached to the slit. Moreover, the mist prevention glass 32 can also be removed from the side part of the housing | casing 23, and replacement | exchange is possible suitably.

ここで、図5−5は、測色カメラ20の縦断面図であり、図5−2に示した測色カメラ20の縦断面図と同じ位置の断面図である。図5−6は、正反射光による白抜け画像(左側)、および該白抜け画像を二値化した画像(右側)の模式図である。   Here, FIG. 5-5 is a longitudinal sectional view of the colorimetric camera 20, and is a sectional view at the same position as the longitudinal sectional view of the colorimetric camera 20 shown in FIG. FIG. 5-6 is a schematic diagram of a white spot image (left side) obtained by specular reflection light and an image obtained by binarizing the white spot image (right side).

本実施形態の照明光源30は、図5−5に示すように、2次元イメージセンサ27に、被写体で正反射される正反射光を入射させる。
センサ部26の2次元イメージセンサ27のセンサ面において、照明光源30の正反射光が入射する位置は、画素値が飽和し、画像データとしては、図5−6に示すように白抜けの状態となる。本実施形態では、これを利用する。つまり、正反射光が入射したときの画像データを二値化し、「白抜け」の位置または大きさを得る。白抜けの位置または大きさの基準値を予め記憶しておき、値の変動から、距離を測定する。より詳細には以下の通りである。
As shown in FIG. 5-5, the illumination light source 30 according to the present embodiment causes the two-dimensional image sensor 27 to receive specularly reflected light that is specularly reflected by the subject.
On the sensor surface of the two-dimensional image sensor 27 of the sensor unit 26, the pixel value is saturated at the position where the specularly reflected light of the illumination light source 30 is incident, and the image data is in a white-out state as shown in FIG. It becomes. This is utilized in the present embodiment. In other words, the image data when the regular reflection light is incident is binarized to obtain the position or size of the “white spot”. A reference value of the position or size of the white spot is stored in advance, and the distance is measured from the fluctuation of the value. More details are as follows.

照明光源30がセンサ部26の撮像対象領域を照明すると、この照明された撮像対象領域に含まれる被写体領域に、白抜けが現れる。この白抜けの位置や大きさは、照明光源30と被写体領域との間の距離に応じて変化する。換言すると、照明光源30とセンサ部26との位置関係は固定であるため、センサ部26と撮像対象領域に含まれる被写体領域との間の距離が変化すると、照明光源30による照明下で被写体領域に現れる白抜けの位置や大きさが変化する。本実施形態の測色カメラ20は、この性質を利用して、センサ部26により白抜けが映り込んだ画像を撮像し、この白抜けの画像に基づいて、照明光源30から被写体領域までの距離、すなわち、センサ部26から被写体領域までの距離(以下、この距離を「被写体距離」という。)を測定する。なお、被写体距離を測定する方法の具体例については、後述する。   When the illumination light source 30 illuminates the imaging target area of the sensor unit 26, white spots appear in the subject area included in the illuminated imaging target area. The position and size of the white spots change according to the distance between the illumination light source 30 and the subject area. In other words, since the positional relationship between the illumination light source 30 and the sensor unit 26 is fixed, if the distance between the sensor unit 26 and the subject region included in the imaging target region changes, the subject region under illumination by the illumination light source 30 The position and size of white spots appearing on the screen change. The colorimetric camera 20 of the present embodiment uses this property to capture an image in which white spots are reflected by the sensor unit 26, and based on this white background image, the distance from the illumination light source 30 to the subject region That is, the distance from the sensor unit 26 to the subject area (hereinafter, this distance is referred to as “subject distance”) is measured. A specific example of the method for measuring the subject distance will be described later.

ただし、照明光源30は、被写体領域の中央部付近の予め定められた範囲(以下、この範囲を「測色対象領域」という。)に、白抜けが映り込まない位置に配置されていることが望ましい。つまり、照明光源30は、被写体領域の測色対象領域を除く周辺部分に白抜けが映り込むように、適切な位置に設けられていることが望ましい。   However, the illumination light source 30 may be arranged in a predetermined range near the center of the subject area (hereinafter, this range is referred to as “color measurement target area”) at a position where no white spots are reflected. desirable. That is, it is desirable that the illumination light source 30 is provided at an appropriate position so that white spots are reflected in the peripheral portion of the subject area excluding the color measurement target area.

本実施形態では、測色対象パッチCPなどの被写体の測色値を算出する際に、後述するように、センサ部26が出力する撮像画像に含まれる測色対象領域の画像データを平均化して、測色対象パッチCPのRGB値を求める。この際、測色対象領域に白抜けが映り込んでいると、測色対象パッチCPの正しいRGB値が得られず、測色値に誤差が生じる懸念がある。上記のように、照明光源30を、白抜けが測色対象領域に映り込まない位置に配置するようにすれば、このような問題を未然に回避することができる。   In the present embodiment, when calculating a colorimetric value of a subject such as the colorimetric target patch CP, the image data of the colorimetric target region included in the captured image output from the sensor unit 26 is averaged as described later. The RGB values of the colorimetric target patch CP are obtained. At this time, if white spots appear in the color measurement target area, the correct RGB value of the color measurement target patch CP cannot be obtained, and there is a concern that an error may occur in the color measurement value. As described above, if the illumination light source 30 is arranged at a position where white spots are not reflected in the colorimetry target region, such a problem can be avoided in advance.

<基準チャートの具体例>
次に、図6を参照しながら、測色カメラ20の筐体23の内部に配置される基準チャート400について詳細に説明する。図6は、基準チャート400の具体例を示す図である。
<Specific examples of reference chart>
Next, the reference chart 400 arranged inside the housing 23 of the colorimetric camera 20 will be described in detail with reference to FIG. FIG. 6 is a diagram illustrating a specific example of the reference chart 400.

図6に示す基準チャート400は、測色用のパッチを配列した複数の基準パッチ列401〜404、ドット径計測用パターン列406、距離計測用ライン405およびチャート位置特定用マーカ407を有する。   A reference chart 400 illustrated in FIG. 6 includes a plurality of reference patch rows 401 to 404 in which colorimetric patches are arranged, a dot diameter measurement pattern row 406, a distance measurement line 405, and a chart position specifying marker 407.

基準パッチ列401〜404は、YMCKの1次色の基準パッチを階調順に配列した基準パッチ列401と、RGBの2次色の基準パッチを階調順に配列した基準パッチ列402と、グレースケールの基準パッチを階調順に配列した基準パッチ列(無彩色の階調パターン)403と、3次色の基準パッチを配列した基準パッチ列404と、を含む。ドット径計測用パターン列406は、大きさが異なる円形パターンが大きさ順に配列された幾何学形状測定用のパターン列であり、記録媒体Pに記録された画像のドット径の計測に用いることができる。   The reference patch arrays 401 to 404 include a reference patch array 401 in which YMCK primary color reference patches are arranged in gradation order, a RGB secondary color reference patch in reference gradation order, and a gray scale. A reference patch array (achromatic color gradation pattern) 403 in which the reference patches are arranged in gradation order, and a reference patch array 404 in which tertiary color reference patches are arrayed. The dot diameter measurement pattern row 406 is a geometric shape measurement pattern row in which circular patterns of different sizes are arranged in order of size, and is used for measuring the dot diameter of an image recorded on the recording medium P. it can.

距離計測用ライン405は、複数の基準パッチ列401〜404やドット径計測用パターン列406を囲む矩形の枠として形成されている。チャート位置特定用マーカ407は、距離計測用ライン405の四隅の位置に設けられていて、各基準パッチの位置を特定するためのマーカとして機能する。センサ部26により撮像される基準チャート400の画像データから、距離計測用ライン405とその四隅のチャート位置特定用マーカ407を特定することで、基準チャート400の位置および各基準パッチやパターンの位置を特定することができる。   The distance measurement line 405 is formed as a rectangular frame surrounding the plurality of reference patch rows 401 to 404 and the dot diameter measurement pattern row 406. The chart position specifying markers 407 are provided at the positions of the four corners of the distance measuring line 405 and function as markers for specifying the positions of the respective reference patches. By specifying the distance measurement line 405 and the chart position specifying markers 407 at the four corners from the image data of the reference chart 400 imaged by the sensor unit 26, the position of the reference chart 400 and the position of each reference patch or pattern are determined. Can be identified.

測色用の基準パッチ列401〜404を構成する各基準パッチは、測色カメラ20の撮像条件を反映した色味の基準として用いられる。なお、基準チャート400に配置されている測色用の基準パッチ列401〜404の構成は、図6に示す例に限定されるものではなく、任意の基準パッチ列を適用することが可能である。例えば、可能な限り色範囲が広く特定できる基準パッチを用いてもよいし、また、YMCKの1次色の基準パッチ列401や、グレースケールの基準パッチ列403は、画像形成装置100に使用されるインクの測色値のパッチで構成されていてもよい。また、RGBの2次色の基準パッチ列402は、画像形成装置100で使用されるインクで発色可能な測色値のパッチで構成されていてもよく、さらに、Japan Color等の測色値が定められた基準色票を用いてもよい。   Each reference patch constituting the reference patch rows 401 to 404 for colorimetry is used as a color reference reflecting the imaging conditions of the colorimetric camera 20. The configuration of the colorimetric reference patch arrays 401 to 404 arranged in the reference chart 400 is not limited to the example shown in FIG. 6, and any reference patch array can be applied. . For example, a reference patch that can specify a color range as wide as possible may be used, and the YMCK primary color reference patch row 401 and the grayscale reference patch row 403 are used in the image forming apparatus 100. It may be composed of patches of colorimetric values of ink. The RGB secondary color reference patch row 402 may be configured with patches of colorimetric values that can be developed with ink used in the image forming apparatus 100, and further, colorimetric values such as Japan Color are used. A predetermined reference color chart may be used.

なお、本実施形態では、一般的なパッチ(色票)の形状の基準パッチ列401〜404を有する基準チャート400を用いているが、基準チャート400は、必ずしもこのような基準パッチ列401〜404を有する形態でなくてもよい。基準チャート400は、測色に利用可能な複数の色が、それぞれの位置を特定できるように配置された構成であればよい。   In the present embodiment, the reference chart 400 having the reference patch rows 401 to 404 having a general patch (color chart) shape is used. However, the reference chart 400 is not necessarily limited to such reference patch rows 401 to 404. It may not be the form which has. The reference chart 400 may be configured so that a plurality of colors that can be used for colorimetry are arranged so that their positions can be specified.

基準チャート400は、測色カメラ20の筐体23の底面部23aに、開口部25と隣り合うように配置されているため、センサ部26によって測色対象パッチCPと同時に撮像することができる。   Since the reference chart 400 is disposed on the bottom surface portion 23a of the housing 23 of the colorimetric camera 20 so as to be adjacent to the opening 25, the reference chart 400 can be imaged simultaneously with the colorimetric target patch CP by the sensor unit 26.

なお、以上説明した測色カメラ20の機械的構成はあくまで一例であり、この構成に限られるものではない。本実施形態の測色カメラ20は、少なくとも2次元イメージセンサ27を用いて画像を撮像する構成であればよく、上記の構成に対して様々な変形や変更が可能である。   The mechanical configuration of the colorimetric camera 20 described above is merely an example, and is not limited to this configuration. The colorimetric camera 20 of the present embodiment only needs to be configured to capture an image using at least the two-dimensional image sensor 27, and various modifications and changes can be made to the above configuration.

<画像形成装置の制御機構の概略構成>
次に、図7を参照しながら、本実施形態の画像形成装置100の制御機構の概略構成について説明する。図7は、画像形成装置100の制御機構の概略構成を示すブロック図である。
<Schematic configuration of control mechanism of image forming apparatus>
Next, a schematic configuration of the control mechanism of the image forming apparatus 100 of the present embodiment will be described with reference to FIG. FIG. 7 is a block diagram illustrating a schematic configuration of a control mechanism of the image forming apparatus 100.

本実施形態に係る画像形成装置100は、図7に示すように、CPU101、ROM102、RAM103、記録ヘッドドライバ104、主走査ドライバ105、副走査ドライバ106、制御用FPGA(Field-Programmable Gate Array)110、記録ヘッド6、測色カメラ20、エンコーダセンサ13、主走査モータ8、および副走査モータ12を備える。CPU101、ROM102、RAM103、記録ヘッドドライバ104、主走査ドライバ105、副走査ドライバ106、および制御用FPGA110は、メイン制御基板120に搭載されている。記録ヘッド6、エンコーダセンサ13、および測色カメラ20は、上述したようにキャリッジ5に搭載されている。   As shown in FIG. 7, the image forming apparatus 100 according to the present embodiment includes a CPU 101, a ROM 102, a RAM 103, a recording head driver 104, a main scanning driver 105, a sub scanning driver 106, and a control FPGA (Field-Programmable Gate Array) 110. A recording head 6, a colorimetric camera 20, an encoder sensor 13, a main scanning motor 8, and a sub-scanning motor 12. The CPU 101, ROM 102, RAM 103, print head driver 104, main scanning driver 105, sub scanning driver 106, and control FPGA 110 are mounted on the main control board 120. The recording head 6, the encoder sensor 13, and the colorimetric camera 20 are mounted on the carriage 5 as described above.

CPU101は、画像形成装置100の全体の制御を司る。例えば、CPU101は、RAM103を作業領域として利用して、ROM102に格納された各種の制御プログラムを実行し、画像形成装置100における各種動作を制御するための制御指令を出力する。   The CPU 101 governs overall control of the image forming apparatus 100. For example, the CPU 101 uses the RAM 103 as a work area, executes various control programs stored in the ROM 102, and outputs control commands for controlling various operations in the image forming apparatus 100.

記録ヘッドドライバ104、主走査ドライバ105、副走査ドライバ106は、それぞれ、記録ヘッド6、主走査モータ8、副走査モータ12を駆動するためのドライバである。   The recording head driver 104, the main scanning driver 105, and the sub scanning driver 106 are drivers for driving the recording head 6, the main scanning motor 8, and the sub scanning motor 12, respectively.

制御用FPGA110は、CPU101と連携して画像形成装置100における各種動作を制御する。制御用FPGA110は、機能的な構成要素として、例えば、CPU制御部111、メモリ制御部112、インク吐出制御部113、センサ制御部114、およびモータ制御部115を備える。   The control FPGA 110 controls various operations in the image forming apparatus 100 in cooperation with the CPU 101. The control FPGA 110 includes, for example, a CPU control unit 111, a memory control unit 112, an ink ejection control unit 113, a sensor control unit 114, and a motor control unit 115 as functional components.

CPU制御部111は、CPU101と通信を行って、制御用FPGA110が取得した各種情報をCPU101に伝えるとともに、CPU101から出力された制御指令を入力する。   The CPU control unit 111 communicates with the CPU 101 to transmit various information acquired by the control FPGA 110 to the CPU 101 and inputs a control command output from the CPU 101.

メモリ制御部112は、CPU101がROM102やRAM103にアクセスするためのメモリ制御を行う。   The memory control unit 112 performs memory control for the CPU 101 to access the ROM 102 and the RAM 103.

インク吐出制御部113は、CPU101からの制御指令に応じて記録ヘッドドライバ104の動作を制御することにより、記録ヘッドドライバ104により駆動される記録ヘッド6からのインクの吐出タイミングを制御する。   The ink discharge control unit 113 controls the operation of the print head driver 104 in accordance with a control command from the CPU 101, thereby controlling the discharge timing of ink from the print head 6 driven by the print head driver 104.

センサ制御部114は、エンコーダセンサ13から出力されるエンコーダ値などのセンサ信号に対する処理を行う。   The sensor control unit 114 performs processing on sensor signals such as encoder values output from the encoder sensor 13.

モータ制御部115は、CPU101からの制御指令に応じて主走査ドライバ105の動作を制御することにより、主走査ドライバ105により駆動される主走査モータ8を制御して、キャリッジ5の主走査方向への移動を制御する。また、モータ制御部115は、CPU101からの制御指令に応じて副走査ドライバ106の動作を制御することにより、副走査ドライバ106により駆動される副走査モータ12を制御して、プラテン16上の記録媒体Pの副走査方向への移動を制御する。   The motor control unit 115 controls the main scanning motor 105 driven by the main scanning driver 105 by controlling the operation of the main scanning driver 105 in accordance with a control command from the CPU 101, and moves the carriage 5 in the main scanning direction. Control the movement of. In addition, the motor control unit 115 controls the sub-scanning motor 106 driven by the sub-scanning driver 106 by controlling the operation of the sub-scanning driver 106 in accordance with a control command from the CPU 101, and records on the platen 16. Controls the movement of the medium P in the sub-scanning direction.

なお、以上の各部は、制御用FPGA110により実現する制御機能の一例であり、これら以外にも様々な制御機能を制御用FPGA110により実現する構成としてもよい。また、上記の制御機能の全部または一部を、CPU101または他の汎用のCPUにより実行されるプログラムにより実現する構成であってもよい。また、上記の制御機能の一部を、制御用FPGA110とは異なる他のFPGAやASIC(Application Specific Integrated Circuit)などの専用のハードウェアにより実現する構成であってもよい。   Each of the above-described units is an example of a control function realized by the control FPGA 110, and various other control functions may be realized by the control FPGA 110. Moreover, the structure which implement | achieves all or one part of said control function with the program run by CPU101 or another general purpose CPU may be sufficient. Further, a configuration in which a part of the control function is realized by dedicated hardware such as another FPGA different from the control FPGA 110 or an ASIC (Application Specific Integrated Circuit) may be used.

記録ヘッド6は、CPU101および制御用FPGA110により動作制御される記録ヘッドドライバ104により駆動され、プラテン16上の記録媒体Pにインクを吐出し、画像の形成を行う。   The recording head 6 is driven by a recording head driver 104 whose operation is controlled by the CPU 101 and the control FPGA 110, and ejects ink onto the recording medium P on the platen 16 to form an image.

測色カメラ20は、上述したように、画像形成装置100の色調整を行う調整時に、テストパターンに含まれる測色対象パッチCPを基準チャート400とともに撮像し、撮像画像から得られる測色対象パッチCPのRGB値と基準チャート400の各基準パッチのRGB値とに基づいて、測色対象パッチCPの測色値(標準色空間における表色値であり、例えばL色空間におけるL値(以下、Lを「Lab」と表記する。))を算出する。測色カメラ20が算出した測色対象パッチCPの測色値は、制御用FPGA110を介してCPU101に送られる。 As described above, the colorimetric camera 20 images the colorimetric target patch CP included in the test pattern together with the reference chart 400 during the color adjustment of the image forming apparatus 100, and the colorimetric target patch obtained from the captured image. Based on the RGB value of the CP and the RGB value of each reference patch of the reference chart 400, the colorimetric value of the color measurement target patch CP (the colorimetric value in the standard color space, for example, in the L * a * b * color space L * a * b * value (hereinafter, L * a * b * is expressed as “Lab”) is calculated. The colorimetric values of the colorimetric target patch CP calculated by the colorimetric camera 20 are sent to the CPU 101 via the control FPGA 110.

エンコーダセンサ13は、エンコーダシート14のマークを検知して得られるエンコーダ値を制御用FPGA110に出力する。このエンコーダ値は制御用FPGA110からCPU101へと送られて、例えば、キャリッジ5の位置や速度を計算するために用いられる。CPU101は、このエンコーダ値から計算したキャリッジ5の位置や速度に基づき、主走査モータ8を制御するための制御指令を生成して出力する。   The encoder sensor 13 outputs an encoder value obtained by detecting the mark on the encoder sheet 14 to the control FPGA 110. This encoder value is sent from the control FPGA 110 to the CPU 101 and used, for example, to calculate the position and speed of the carriage 5. The CPU 101 generates and outputs a control command for controlling the main scanning motor 8 based on the position and speed of the carriage 5 calculated from the encoder value.

<測色カメラの制御機構の構成>
次に、図8を参照しながら、測色カメラ20の制御機構について具体的に説明する。図8は、測色カメラ20の制御機構の一構成例を示すブロック図である。
<Configuration of colorimetric camera control mechanism>
Next, the control mechanism of the colorimetric camera 20 will be specifically described with reference to FIG. FIG. 8 is a block diagram illustrating a configuration example of the control mechanism of the colorimetric camera 20.

測色カメラ20は、図8に示すように、2次元イメージセンサ27、照明光源30、光源駆動制御部40、タイミング信号発生部41、フレームメモリ42、平均化処理部43、測色演算部44、不揮発性メモリ45、距離演算部46、および距離調整部47を備える。これらの各部は、例えば、測色カメラ20の筐体23の上面部を構成する基板22に実装されている。   As shown in FIG. 8, the colorimetric camera 20 includes a two-dimensional image sensor 27, an illumination light source 30, a light source drive controller 40, a timing signal generator 41, a frame memory 42, an averaging processor 43, and a colorimetric calculator 44. , A nonvolatile memory 45, a distance calculation unit 46, and a distance adjustment unit 47. Each of these units is mounted on a substrate 22 that constitutes the upper surface of the housing 23 of the colorimetric camera 20, for example.

2次元イメージセンサ27は、照明光源30により照明された撮像対象領域から結像レンズ28を介して入射した光をアナログ信号に変換し、撮像対象領域の撮像画像を出力する。2次元イメージセンサ27は、光電変換により得られたアナログ信号をデジタルの画像データにAD変換し、その画像データに対してシェーディング補正やホワイトバランス補正、γ補正、画像データのフォーマット変換などの各種の画像処理を行う機能を内蔵し、画像処理によって得られる画像を撮像画像として出力する。なお、画像データに対する各種の画像処理は、その一部あるいは全部を2次元イメージセンサ27の外部で行うようにしてもよい。   The two-dimensional image sensor 27 converts light incident from the imaging target area illuminated by the illumination light source 30 through the imaging lens 28 into an analog signal, and outputs a captured image of the imaging target area. The two-dimensional image sensor 27 AD-converts an analog signal obtained by photoelectric conversion into digital image data, and performs various types of image data conversion such as shading correction, white balance correction, γ correction, and image data format conversion. A function for performing image processing is incorporated, and an image obtained by image processing is output as a captured image. Various image processing on the image data may be performed partly or entirely outside the two-dimensional image sensor 27.

光源駆動制御部40は、照明光源30を駆動するための光源駆動信号を生成して、照明光源30に供給する。本実施形態では、上述したように、センサ部26を間に挟んで配置された2つのLEDを、照明光源30として用いている。光源駆動制御部40は、測色対象パッチCPの測色を行う際には、2つのLEDの双方が点灯するように、照明光源30を駆動する。また、光源駆動制御部40は、上述した被写体距離を測定する際には、2つのLEDのうちの一方(正反射光による「白抜け」が撮像面に映り込むときの入射角θが大きくなる方)が点灯するように、照明光源30を駆動する。   The light source drive control unit 40 generates a light source drive signal for driving the illumination light source 30 and supplies the light source drive signal to the illumination light source 30. In the present embodiment, as described above, two LEDs arranged with the sensor unit 26 interposed therebetween are used as the illumination light source 30. The light source drive control unit 40 drives the illumination light source 30 so that both of the two LEDs are lit when performing color measurement of the color measurement target patch CP. Further, when the light source drive control unit 40 measures the subject distance described above, one of the two LEDs (incident angle θ when “white spot” caused by specular reflection light is reflected on the imaging surface increases). The illumination light source 30 is driven so that the light is turned on.

タイミング信号発生部41は、2次元イメージセンサ27による撮像開始のタイミングを制御するタイミング信号を生成し、2次元イメージセンサ27に供給する。本実施形態では、測色対象パッチCPの測色を行う場合だけでなく、上述した被写体距離を測定する場合にも、センサ部26の2次元イメージセンサ27による撮像を行う。タイミング信号発生部41は、これら測色対象パッチCPの測色時および被写体距離の測定時に、2次元イメージセンサ27による撮像開始のタイミングを制御するタイミング信号を生成し、2次元イメージセンサ27に供給する。   The timing signal generation unit 41 generates a timing signal for controlling the timing of starting imaging by the two-dimensional image sensor 27 and supplies the timing signal to the two-dimensional image sensor 27. In the present embodiment, imaging is performed by the two-dimensional image sensor 27 of the sensor unit 26 not only when the color measurement target patch CP is measured but also when the subject distance is measured. The timing signal generation unit 41 generates a timing signal for controlling the timing of the start of imaging by the two-dimensional image sensor 27 at the time of color measurement of the color measurement target patch CP and the measurement of the subject distance, and supplies the timing signal to the two-dimensional image sensor 27. To do.

フレームメモリ42は、2次元イメージセンサ27から出力された撮像画像を一時的に格納する。   The frame memory 42 temporarily stores the captured image output from the two-dimensional image sensor 27.

平均化処理部43は、測色対象パッチCPの測色を行う際に、センサ部26の2次元イメージセンサ27から出力され、フレームメモリ42に一時的に格納された撮像画像から、被写体領域の中央部付近に設定された測色対象領域と、基準チャート400の各基準パッチを映した領域とを抽出する。そして、平均化処理部43は、抽出した測色対象領域の画像データを平均化して、得られた値を測色対象パッチCPのRGB値として測色演算部44に出力するとともに、各基準パッチを映した領域の画像データを各々平均化して、得られた値を各基準パッチのRGBとして測色演算部44に出力する。   When the color measurement target patch CP is color-measured, the averaging processing unit 43 outputs a subject area from a captured image output from the two-dimensional image sensor 27 of the sensor unit 26 and temporarily stored in the frame memory 42. A colorimetry target region set near the center and a region where each reference patch of the reference chart 400 is projected are extracted. Then, the averaging processing unit 43 averages the extracted image data of the color measurement target region and outputs the obtained value to the color measurement calculation unit 44 as the RGB value of the color measurement target patch CP. Are averaged, and the obtained values are output to the colorimetric calculation unit 44 as RGB of each reference patch.

測色演算部44は、平均化処理部43の処理によって得られた測色対象パッチCPのRGB値と、基準チャート400の各基準パッチのRGB値とに基づいて、測色対象パッチCPの測色値を算出する。測色演算部44が算出した測色対象パッチCPの測色値は、メイン制御基板120上のCPU101へと送られる。測色演算部44が測色対象パッチCPの測色値を算出する処理の具体例については、詳細を後述する。   The color measurement calculation unit 44 measures the color measurement target patch CP based on the RGB value of the color measurement target patch CP obtained by the processing of the averaging processing unit 43 and the RGB value of each reference patch of the reference chart 400. Calculate the color value. The colorimetric value of the colorimetric target patch CP calculated by the colorimetric calculation unit 44 is sent to the CPU 101 on the main control board 120. A specific example of the process in which the colorimetric calculation unit 44 calculates the colorimetric value of the colorimetric target patch CP will be described later in detail.

不揮発性メモリ45は、測色演算部44が測色対象パッチCPの測色値を算出するために必要な各種データや、距離演算部46が被写体距離を算出するために必要な各種データを格納する。   The nonvolatile memory 45 stores various data necessary for the colorimetric calculation unit 44 to calculate the colorimetric values of the colorimetric target patch CP and various data necessary for the distance calculation unit 46 to calculate the subject distance. To do.

距離演算部46は、被写体距離の測定を行う際に、センサ部26の2次元イメージセンサ27から出力され、フレームメモリ42に一時的に格納された撮像画像に含まれる正反射光による「白抜け」に基づいて、被写体距離を算出する。以下、距離演算部46が被写体距離を算出する方法の具体例について説明する。   When measuring the subject distance, the distance calculation unit 46 outputs “white spots” due to specularly reflected light that is output from the two-dimensional image sensor 27 of the sensor unit 26 and temporarily stored in the frame memory 42. ”To calculate the subject distance. Hereinafter, a specific example of how the distance calculation unit 46 calculates the subject distance will be described.

<第1の方法>
距離演算部46は、例えば、被写体距離を予め定めた基準距離(以下、この距離を「基準被写体距離」という。)としたときの撮像画像における白抜けの位置と、被写体距離の測定時にセンサ部26の2次元イメージセンサ27から出力される撮像画像における白抜けの位置とに基づいて、被写体距離を算出することができる。
<First method>
The distance calculation unit 46 is, for example, a sensor unit when measuring the white spot position in the captured image when the subject distance is set as a predetermined reference distance (hereinafter, this distance is referred to as “reference subject distance”) and the subject distance. The subject distance can be calculated based on the positions of white spots in the captured image output from the 26 two-dimensional image sensors 27.

図9は、距離演算部46による被写体距離の算出方法の一例を説明する説明図であり、被写体距離の変動によりセンサ部26による撮像面(上述した被写体領域が存在する面)が撮像面IA_rから撮像面IA_aへと変動したときの白抜けの位置の変動を示している。撮像面IA_rは、被写体距離が基準被写体距離Drである場合のセンサ部26による撮像面を表し、撮像面IA_aは、測定しようとしている被写体距離Daのときのセンサ部26による撮像面を表している。図9中のα点は撮像面IA_r上の白抜けの重心位置であり、β点は撮像面IA_a上の白抜けの重心位置、つまり被写体距離Daの測定時に2次元イメージセンサ27から出力される撮像画像における白抜けの重心位置である。   FIG. 9 is an explanatory diagram for explaining an example of a method for calculating a subject distance by the distance calculation unit 46, and an imaging surface (a surface on which the above-described subject region is present) by the sensor unit 26 is changed from the imaging surface IA_r due to a change in the subject distance. The change in the position of the white spot when changing to the imaging surface IA_a is shown. The imaging surface IA_r represents the imaging surface by the sensor unit 26 when the subject distance is the reference subject distance Dr, and the imaging surface IA_a represents the imaging surface by the sensor unit 26 at the subject distance Da to be measured. . The point α in FIG. 9 is the center of gravity of the white spot on the imaging surface IA_r, and the point β is output from the two-dimensional image sensor 27 when measuring the center of gravity of the white spot on the imaging surface IA_a, that is, the subject distance Da. This is the position of the center of gravity of the white spot in the captured image.

撮像面が撮像面IA_rから撮像面IA_aへと変動(つまり、被写体距離が基準被写体距離Drから被写体距離Daに変動)することによる白抜けの重心位置の変化量a(α点とβ点とを同一撮像面上に投影したときのα−β間の距離)は、下記式(1)の関係が成り立つ。
tanθ=a/(|Da−Dr|) ・・・(1)
ただし、θは、撮像面IA_r,IA_aに対する照明光の入射角である。
The amount of change a (the α point and the β point) of the center of gravity of the white spot due to the imaging surface changing from the imaging surface IA_r to the imaging surface IA_a (that is, the subject distance changing from the reference subject distance Dr to the subject distance Da). The relationship of the following formula (1) is established for the distance between α and β when projected onto the same imaging surface.
tan θ = a / (| Da−Dr |) (1)
However, (theta) is the incident angle of the illumination light with respect to imaging surface IA_r and IA_a.

なお、図9では、ミスト防止ガラス32の図示を省略しているが、光路長変更部材31とセンサ部26による撮像面との間にミスト防止ガラス32が介在していても、原理としては変わらない。このため、ここではミスト防止ガラス32を考慮しないものとする。   Although illustration of the mist prevention glass 32 is omitted in FIG. 9, even if the mist prevention glass 32 is interposed between the optical path length changing member 31 and the imaging surface of the sensor unit 26, the principle is not changed. Absent. For this reason, the mist prevention glass 32 is not considered here.

上記式(1)から、測定しようとしている被写体距離Daが変化しても、tanθと基準被写体距離Drおよび撮像画像におけるα点の座標が分かっていれば、2次元イメージセンサ27から出力される撮像画像に含まれる白抜けの重心位置(図9のβ点)の座標に基づき、被写体距離Drを算出することができる。また、被写体距離Drが算出できれば、基準被写体距離Drに対する実際の被写体距離Daの変化量(|Da−Dr|)を求めることもできる。   From the above equation (1), even if the subject distance Da to be measured changes, if the tan θ, the reference subject distance Dr, and the coordinates of the α point in the captured image are known, the imaging output from the two-dimensional image sensor 27 The subject distance Dr can be calculated based on the coordinates of the center of gravity position (β point in FIG. 9) included in the image. If the subject distance Dr can be calculated, the change amount (| Da−Dr |) of the actual subject distance Da with respect to the reference subject distance Dr can also be obtained.

そこで、画像形成装置100の工場出荷時などに、例えば以下の方法により、tanθとα点の座標とを求めておく。なお、基準被写体距離Drは、上述した測色カメラ20の筐体23の底面部23aと記録媒体Pとの間の間隙dが最適値(例えば1mm〜2mm程度)となる距離を予め定めておけばよい。   Therefore, when the image forming apparatus 100 is shipped from the factory, for example, tan θ and the coordinates of the α point are obtained by the following method. The reference subject distance Dr can be set in advance such that the gap d between the bottom surface 23a of the casing 23 of the colorimetric camera 20 and the recording medium P described above is an optimal value (for example, about 1 mm to 2 mm). That's fine.

まず、キャリッジ昇降モータ17を駆動して被写体距離を基準被写体距離Drに設定する。そして、照明光源30(2つのLEDのうちの一方)を点灯し、照明光源30からの照明光により、2次元イメージセンサ27の撮像対象領域を照明する。この状態で、2次元イメージセンサ27で画像を撮像することにより、被写体領域に正反射光が映り込んだ撮像画像が得られる。この撮像画像から白抜けを検知してその重心位置(α点)の座標を求める。なお、白抜けの重心位置の座標を求める具体例は後述する。   First, the carriage lift motor 17 is driven to set the subject distance to the reference subject distance Dr. Then, the illumination light source 30 (one of the two LEDs) is turned on, and the imaging target area of the two-dimensional image sensor 27 is illuminated by the illumination light from the illumination light source 30. In this state, by capturing an image with the two-dimensional image sensor 27, a captured image in which specularly reflected light is reflected in the subject region is obtained. White spots are detected from the captured image and the coordinates of the center of gravity position (α point) are obtained. A specific example for obtaining the coordinates of the center of gravity position of the outline will be described later.

次に、キャリッジ昇降モータ17を駆動して被写体距離を、基準被写体距離Drに既知の値を加算(もしくは減算)した距離Da’に設定する。そして、上記と同様に2次元イメージセンサ27で画像を撮像し、その撮像画像から白抜けの重心位置の座標(β’点の位置)を求める。そして、得られたα点の位置(x1,y1)とβ’点の位置(x2,y2)とを用い、上記式(1)により、tanθを算出する。   Next, the carriage lifting / lowering motor 17 is driven to set the subject distance to a distance Da ′ obtained by adding (or subtracting) a known value to the reference subject distance Dr. Then, the image is picked up by the two-dimensional image sensor 27 in the same manner as described above, and the coordinates (β ′ point position) of the blank gravity center position are obtained from the picked-up image. Then, tan θ is calculated by the above equation (1) using the obtained position (x1, y1) of the α point and position (x2, y2) of the β ′ point.

画像形成装置100の工場出荷時などに上記の処理を行って得られたtanθおよびα点の座標を、予め定めた基準被写体距離Drとともに、測色カメラ20の不揮発性メモリ45などに格納しておく。そして、被写体距離Daの測定時には、距離演算部46が、2次元イメージセンサ27から出力される撮像画像から白抜けの重心位置(β点)の座標を求め、求めたβ点の座標と、不揮発性メモリ45などに予め格納されたtanθと基準被写体距離Drおよびα点の座標とを用いて、上記式(1)により、被写体距離Daを算出する。   The coordinates of the tan θ and α points obtained by performing the above processing at the time of factory shipment of the image forming apparatus 100 are stored in the nonvolatile memory 45 of the colorimetric camera 20 together with the predetermined reference subject distance Dr. deep. At the time of measuring the subject distance Da, the distance calculation unit 46 obtains the coordinates of the center of gravity position (β point) of the white spot from the captured image output from the two-dimensional image sensor 27, and the obtained coordinates of the β point and the non-volatile The subject distance Da is calculated by the above equation (1) using tan θ stored in advance in the memory 45 or the like, the reference subject distance Dr, and the coordinates of the α point.

図10は、被写体距離Daの測定時にセンサ部26の2次元イメージセンサ27から出力される撮像画像の一例を示す図である。図中のI_taはセンサ部26の撮像対象領域全体の画像を表し、I_400は基準チャート400の画像、I_oaは被写体領域の画像をそれぞれ表している。   FIG. 10 is a diagram illustrating an example of a captured image output from the two-dimensional image sensor 27 of the sensor unit 26 when the subject distance Da is measured. In the drawing, I_ta represents an image of the entire imaging target region of the sensor unit 26, I_400 represents an image of the reference chart 400, and I_oa represents an image of the subject region.

被写体距離Daの測定時には、上述したように、照明光源30(2つのLEDのうちの一方)を点灯し、照明光源30からの照明光により、2次元イメージセンサ27の撮像対象領域を照明する。この状態で、2次元イメージセンサ27で画像を撮像することにより、被写体領域の画像I_oaに白抜けI_saが映り込んだ、図10に示すような撮像画像が得られる。なお、図10では、白抜けI_saの比較対象として、基準被写体距離Drのときの撮像画像において観測される白抜けI_srも図示しているが、実際には、被写体領域の画像I_oaに映り込むのは白抜けI_saのみである。   When measuring the subject distance Da, as described above, the illumination light source 30 (one of the two LEDs) is turned on, and the imaging target region of the two-dimensional image sensor 27 is illuminated by the illumination light from the illumination light source 30. In this state, by picking up an image with the two-dimensional image sensor 27, a picked-up image as shown in FIG. 10 is obtained in which the white spot I_sa is reflected in the image I_oa in the subject area. In FIG. 10, the white spot I_sr observed in the captured image at the reference subject distance Dr is also shown as a comparison target of the white spot I_sa, but actually, it appears in the image I_oa of the subject area. Are only white spots I_sa.

距離演算部46は、2次元イメージセンサ27から出力されてフレームメモリ42に一時的に格納された図10に示す撮像画像から、例えば、下記に示す方法により、白抜けI_saの重心位置(β点)の座標を求める。   The distance calculator 46 outputs the center of gravity position (β point) of the white spot I_sa from the captured image shown in FIG. 10 output from the two-dimensional image sensor 27 and temporarily stored in the frame memory 42 by, for example, the following method. ).

まず、距離演算部46は、被写体領域の画像I_oaを二値化し、その値をf(x,y)とする。そして、得られたf(x,y)を用いて、白抜けI_saの重心位置(β点)の座標β(x2,y2)を求める。ただし、解像度から距離に変換する。なお、白抜けI_srの重心位置(α点)の座標α(x1,y1)についても、画像形成装置100の工場出荷時などに同様の手法により求めることができる。   First, the distance calculation unit 46 binarizes the image I_oa in the subject area and sets the value as f (x, y). Then, using the obtained f (x, y), the coordinates β (x2, y2) of the gravity center position (β point) of the white spot I_sa are obtained. However, it converts from resolution to distance. Note that the coordinates α (x1, y1) of the gravity center position (α point) of the white spot I_sr can also be obtained by a similar method when the image forming apparatus 100 is shipped from the factory.

ちなみに、n×m画素の画像範囲における重心位置(α点)の座標α(x1,y1)は、下記式(2)および式(3)により求められる。
x1=Ix/M ・・・(2)
y1=Iy/M ・・・(3)
ただし、
である(Ix,Iyは一次モーメント、Mは質量)。
したがって、上記のn,mは、被写体領域の画像内でn×m画素の画像範囲にα点(β点)が含まれることとなる適当な値を使用すればよい。
Incidentally, the coordinates α (x1, y1) of the center of gravity position (α point) in the image range of n × m pixels are obtained by the following equations (2) and (3).
x1 = Ix / M (2)
y1 = Iy / M (3)
However,
(Ix, Iy are first moments, M is mass).
Therefore, for the above n and m, appropriate values may be used that will include an α point (β point) in the image range of n × m pixels in the image of the subject area.

距離演算部46は、以上の方法で求めたβ点の座標β(x2,y2)と、不揮発性メモリ45などに予め格納されているtanθ、基準被写体距離Drおよびα点の座標α(x1,y1)とに基づいて、上記式(1)により、被写体距離Daを算出する。なお、距離演算部46は、測色カメラ20の水平方向の位置を変えながら撮像された複数の撮像画像からそれぞれβ点の座標β(x2,y2)の座標を求め、その平均値を用いて被写体距離Daを算出するようにしてもよい。   The distance calculation unit 46 calculates the coordinates β (x2, y2) of the β point obtained by the above method, the tan θ stored in advance in the nonvolatile memory 45, the reference subject distance Dr, and the coordinates α (x1, x1) of the α point. Based on y1), the subject distance Da is calculated by the above equation (1). The distance calculation unit 46 obtains the coordinates of the coordinates β (x2, y2) of the β points from the plurality of captured images captured while changing the horizontal position of the colorimetric camera 20, and uses the average value thereof. The subject distance Da may be calculated.

次に、図11を参照して、上記の方法により被写体距離Daを算出する際の一連の処理の流れを説明する。図11は、被写体距離Daを算出する手順の一例を示すフローチャートである。   Next, a flow of a series of processing when calculating the subject distance Da by the above method will be described with reference to FIG. FIG. 11 is a flowchart illustrating an example of a procedure for calculating the subject distance Da.

被写体距離Daを算出する場合、まずステップS101において、光源駆動制御部40が、照明光源30(2つのLEDのうちの一方)を点灯させる。そして、タイミング信号発生部41が2次元イメージセンサ27にタイミング信号を入力し、2次元イメージセンサ27による撮像を開始させる。   When calculating the subject distance Da, first, in step S101, the light source drive control unit 40 turns on the illumination light source 30 (one of the two LEDs). Then, the timing signal generator 41 inputs a timing signal to the two-dimensional image sensor 27 and starts imaging by the two-dimensional image sensor 27.

次にステップS102において、距離演算部46が、2次元イメージセンサ27から出力され、フレームメモリ42に一時的に格納された撮像画像から、被写体領域の画像I_oaを抽出する。そして、ステップS103において、距離演算部46が、ステップS102で抽出した被写体領域の画像I_oaに対して、上述した方法により白抜けI_saの重心位置(β点)の座標β(x2,y2)を求める。   Next, in step S102, the distance calculation unit 46 extracts the image I_oa of the subject area from the captured image output from the two-dimensional image sensor 27 and temporarily stored in the frame memory 42. In step S103, the distance calculation unit 46 obtains the coordinates β (x2, y2) of the center of gravity position (β point) of the white spot I_sa by the method described above for the image I_oa of the subject area extracted in step S102. .

そして、ステップS104において、距離演算部46が、不揮発性メモリ45などに格納されたtanθ、基準被写体距離Dr、および白抜けI_srの重心位置(α点)の座標α(x1,y1)を読み出す。そして、ステップS103で求めたβ点の座標(x2,y2)と、不揮発性メモリ45などから読み出したtanθ、基準被写体距離Dr、およびα点の座標α(x1,y1)とに基づいて、上記式(1)により被写体距離Daを算出し、処理を終了する。   In step S104, the distance calculation unit 46 reads tan θ, the reference subject distance Dr, and the coordinates α (x1, y1) of the center of gravity position (α point) of the white spot I_sr stored in the nonvolatile memory 45 or the like. Based on the coordinates (x2, y2) of the β point obtained in step S103, the tan θ read from the nonvolatile memory 45, the reference subject distance Dr, and the coordinates α (x1, y1) of the α point, The subject distance Da is calculated by the equation (1), and the process is terminated.

<第2の方法>
上記の方法は、距離演算部46が、被写体距離が基準被写体距離Drのときの白抜けI_srの位置と、被写体距離Daの測定時の白抜けI_saの位置とに基づいて、被写体距離Daを算出するようにしている。しかし、距離演算部46は、被写体距離が基準被写体距離Drのときの白抜けI_srの大きさ(面積)と、被写体距離Daの測定時の白抜けI_saの大きさ(面積)とに基づいて、被写体距離Daを算出することもできる。
<Second method>
In the above method, the distance calculation unit 46 calculates the subject distance Da based on the position of the white spot I_sr when the subject distance is the reference subject distance Dr and the position of the white spot I_sa when measuring the subject distance Da. Like to do. However, the distance calculation unit 46, based on the size (area) of the white spot I_sr when the subject distance is the reference subject distance Dr and the size (area) of the white spot I_sa when measuring the subject distance Da, The subject distance Da can also be calculated.

図12は、距離演算部46による被写体距離の算出方法の他の例を説明する説明図であり、被写体距離の変動による撮像面での白抜けの面積の変動を示している。図12中のIA_r,IA_aは、図9と同様の撮像面を表している。また、図12中のS_rは撮像面IA_r上の白抜けの面積を表し、S_a点は撮像面IA_a上の白抜けの面積、つまり被写体距離Daの測定時に2次元イメージセンサ27から出力される撮像画像における白抜けの面積を表している。   FIG. 12 is an explanatory diagram for explaining another example of the method for calculating the subject distance by the distance calculation unit 46, and shows the variation of the blank area on the imaging surface due to the variation of the subject distance. IA_r and IA_a in FIG. 12 represent imaging surfaces similar to those in FIG. In FIG. 12, S_r represents a white area on the imaging surface IA_r, and a point S_a represents a white area on the imaging surface IA_a, that is, an image output from the two-dimensional image sensor 27 when measuring the subject distance Da. It represents the area of white spots in the image.

撮像面が撮像面IA_rから撮像面IA_aへと変動(つまり、被写体距離が基準被写体距離Drから被写体距離Daに変動)すると、白抜けの面積は、S_rからS_aへと変化する。このとき、被写体距離と白抜けの面積との関係は下記式(7)のようになるため、基準被写体距離DrおよびS_rが分かっていれば、被写体距離Daの測定時に得られる撮像画像における白抜けの面積S_aに基づき、被写体距離Drを算出することができる。
また、被写体距離Drが算出できれば、基準被写体距離Drに対する実際の被写体距離Daの変化量(|Da−Dr|)を求めることもできる。
When the imaging surface changes from the imaging surface IA_r to the imaging surface IA_a (that is, the subject distance changes from the reference subject distance Dr to the subject distance Da), the white area changes from S_r to S_a. At this time, the relationship between the subject distance and the white area is expressed by the following formula (7). Therefore, if the reference subject distance Dr and S_r are known, the white spot in the captured image obtained when the subject distance Da is measured is obtained. The subject distance Dr can be calculated based on the area S_a.
If the subject distance Dr can be calculated, the change amount (| Da−Dr |) of the actual subject distance Da with respect to the reference subject distance Dr can also be obtained.

そこで、画像形成装置100の工場出荷時などに、基準被写体距離Drのときの撮像画像における白抜けの面積S_rを求め、不揮発性メモリ45などに格納しておく。なお、基準被写体距離Drは、上述した例と同様に、間隙dが最適値(例えば1mm〜2mm程度)となる距離を予め定めておけばよい。   Therefore, when the image forming apparatus 100 is shipped from the factory, the white area S_r in the captured image at the reference subject distance Dr is obtained and stored in the nonvolatile memory 45 or the like. The reference subject distance Dr may be determined in advance as the distance at which the gap d is an optimum value (for example, about 1 mm to 2 mm), as in the above-described example.

被写体距離Daの測定時には、上述したように、照明光源30(2つのLEDのうちの一方)を点灯し、照明光源30からの照明光により、2次元イメージセンサ27の撮像対象領域を照明する。この状態で、2次元イメージセンサ27で画像を撮像することにより、被写体領域の画像I_oaに白抜けI_saが映り込んだ、図10に示すような撮像画像が得られる。   When measuring the subject distance Da, as described above, the illumination light source 30 (one of the two LEDs) is turned on, and the imaging target region of the two-dimensional image sensor 27 is illuminated by the illumination light from the illumination light source 30. In this state, by picking up an image with the two-dimensional image sensor 27, a picked-up image as shown in FIG. 10 is obtained in which the white spot I_sa is reflected in the image I_oa in the subject area.

距離演算部46は、2次元イメージセンサ27から出力されてフレームメモリ42に一時的に格納された図10に示す撮像画像から、被写体領域の画像I_oaを抽出する。そして、この被写体領域の画像I_oaを二値化し、得られた二値画像の黒の部分の合計値(白抜けを含むn×m画素の画像範囲における黒画素の個数)を、白抜けI_saの面積S_aとして求める。なお、白抜けI_srの面積S_rについても、画像形成装置100の工場出荷時などに同様の手法により求めることができる。   The distance calculation unit 46 extracts the image I_oa of the subject area from the captured image shown in FIG. 10 output from the two-dimensional image sensor 27 and temporarily stored in the frame memory 42. Then, the image I_oa of the subject area is binarized, and the total value of the black portions of the obtained binary image (the number of black pixels in the image area of n × m pixels including white spots) is calculated as the white spot I_sa. Obtained as area S_a. Note that the area S_r of the white spot I_sr can also be obtained by a similar method when the image forming apparatus 100 is shipped from the factory.

距離演算部46は、以上の方法で求めた白抜けI_saの面積S_aと、不揮発性メモリ45などに予め格納されている基準被写体距離Drおよび白抜けI_srの面積S_rとに基づいて、上記式(7)により、被写体距離Daを算出する。なお、距離演算部46は、測色カメラ20の水平方向の位置を変えながら撮像された複数の撮像画像からそれぞれ白抜けI_saの面積S_aを求め、その平均値を用いて被写体距離Daを算出するようにしてもよい。   Based on the area S_a of the white spot I_sa obtained by the above method and the reference subject distance Dr and the area S_r of the white spot I_sr stored in advance in the nonvolatile memory 45 or the like, the distance calculating unit 46 The subject distance Da is calculated according to 7). The distance calculation unit 46 obtains the area S_a of the white spot I_sa from each of the plurality of captured images taken while changing the horizontal position of the colorimetric camera 20, and calculates the subject distance Da using the average value. You may do it.

次に、図13を参照して、上記の方法により被写体距離Daを算出する際の一連の処理の流れを説明する。図13は、被写体距離Daを算出する手順の一例を示すフローチャートである。   Next, a flow of a series of processes when calculating the subject distance Da by the above method will be described with reference to FIG. FIG. 13 is a flowchart illustrating an example of a procedure for calculating the subject distance Da.

被写体距離Daを算出する場合、まずステップS201において、光源駆動制御部40が、照明光源30(2つのLEDのうちの一方)を点灯させる。そして、タイミング信号発生部41が2次元イメージセンサ27にタイミング信号を入力し、2次元イメージセンサ27による撮像を開始させる。   When calculating the subject distance Da, first, in step S201, the light source drive control unit 40 turns on the illumination light source 30 (one of the two LEDs). Then, the timing signal generator 41 inputs a timing signal to the two-dimensional image sensor 27 and starts imaging by the two-dimensional image sensor 27.

次にステップS202において、距離演算部46が、2次元イメージセンサ27から出力され、フレームメモリ42に一時的に格納された撮像画像から、被写体領域の画像I_oaを抽出する。そして、ステップS203において、距離演算部46が、ステップS202で抽出した被写体領域の画像I_oaに対して、上述した方法により白抜けI_saの面積S_aを求める。   Next, in step S202, the distance calculation unit 46 extracts the image I_oa of the subject area from the captured image output from the two-dimensional image sensor 27 and temporarily stored in the frame memory 42. In step S203, the distance calculation unit 46 obtains the area S_a of the whiteout I_sa by the above-described method for the subject region image I_oa extracted in step S202.

そして、ステップS204において、距離演算部46が、不揮発性メモリ45などに格納された基準被写体距離Drおよび白抜けI_srの面積S_rを読み出す。そして、ステップS203で求めた白抜けI_saの面積S_aと、不揮発性メモリ45などから読み出した基準被写体距離Drおよび白抜けI_srの面積S_rとに基づいて、上記式(7)により被写体距離Daを算出し、処理を終了する。   In step S204, the distance calculation unit 46 reads the reference subject distance Dr and the area S_r of the white spot I_sr stored in the nonvolatile memory 45 or the like. Then, based on the area S_a of the white spot I_sa obtained in step S203, the reference subject distance Dr read from the nonvolatile memory 45 or the like, and the area S_r of the white spot I_sr, the subject distance Da is calculated by the above equation (7). Then, the process ends.

図8に戻って、距離調整部47は、距離演算部46により算出された被写体距離Daに基づいてキャリッジ昇降モータ17を駆動することにより、被写体距離を調整する。例えば、距離調整部47は、距離演算部46により算出された被写体距離Daの基準被写体距離Drに対する変化量(|Da−Dr|)に基づき、被写体距離が基準被写体距離Drとなる位置に測色カメラ20が配置されるように、キャリッジ昇降モータ17を駆動する。   Returning to FIG. 8, the distance adjustment unit 47 adjusts the subject distance by driving the carriage lifting motor 17 based on the subject distance Da calculated by the distance calculation unit 46. For example, the distance adjustment unit 47 performs colorimetry at a position where the subject distance becomes the reference subject distance Dr based on the change amount (| Da−Dr |) of the subject distance Da calculated by the distance calculation unit 46 with respect to the reference subject distance Dr. The carriage lifting / lowering motor 17 is driven so that the camera 20 is arranged.

本実施形態の測色カメラ20は、距離調整部47によって被写体距離が調整された状態で、測色対象パッチCPの測色を行う。すなわち、測色対象パッチCPを含むテストパターンが形成された記録媒体Pがプラテン16上にセットされ、距離調整部47によってキャリッジ昇降モータ17が駆動されて被写体距離が調整された後に、照明光源30(2つのLEDの双方)を点灯し、照明光源30からの照明光により、2次元イメージセンサ27の撮像対象領域を照明する。この状態で、2次元イメージセンサ27で画像を撮像することにより、測色対象パッチCPと基準チャート400とを含む撮像画像が得られる。   The colorimetric camera 20 of this embodiment performs colorimetry on the colorimetric target patch CP in a state where the subject distance is adjusted by the distance adjustment unit 47. That is, after the recording medium P on which the test pattern including the colorimetric target patch CP is formed is set on the platen 16 and the carriage elevating motor 17 is driven by the distance adjusting unit 47 to adjust the subject distance, the illumination light source 30 (Both of two LEDs) are turned on, and the imaging target area of the two-dimensional image sensor 27 is illuminated with illumination light from the illumination light source 30. In this state, by capturing an image with the two-dimensional image sensor 27, a captured image including the colorimetric target patch CP and the reference chart 400 is obtained.

そして、この撮像画像から、平均化処理部43によって測色対象パッチCPのRGB値と基準チャート400の各基準パッチのRGB値とが求められる。そして、測色演算部44により、測色対象パッチCPのRGB値と基準チャート400の各基準パッチのRGB値とに基づいて、測色対象パッチCPの測色値が算出される。   Then, the RGB value of the color measurement target patch CP and the RGB value of each reference patch of the reference chart 400 are obtained from the captured image by the averaging processing unit 43. Then, the colorimetric calculation unit 44 calculates the colorimetric value of the colorimetric target patch CP based on the RGB value of the colorimetric target patch CP and the RGB value of each reference patch of the reference chart 400.

このように、本実施形態の測色カメラ20では、測色対象パッチCPの測色を行う前に被写体距離Daを算出し、被写体距離が例えば基準被写体距離Drとなるように調整した上で、測色対象パッチCPを含む画像を撮像する。そして、撮像画像から得られる測色対象パッチCPの基準チャート400の各基準パッチのRGB値とに基づいて、測色対象パッチCPの測色値を算出する。したがって、本実施形態の測色カメラ20によれば、被写体距離の変動によって算出される測色値が変化してしまう不都合を未然に防止して、測色対象パッチCPの正しい測色値を算出することができる。   As described above, the colorimetric camera 20 of the present embodiment calculates the subject distance Da before performing the colorimetric measurement of the colorimetric target patch CP, and adjusts the subject distance to be, for example, the reference subject distance Dr. An image including the colorimetric target patch CP is captured. Then, based on the RGB value of each reference patch of the reference chart 400 of the color measurement target patch CP obtained from the captured image, the color measurement value of the color measurement target patch CP is calculated. Therefore, according to the colorimetric camera 20 of the present embodiment, it is possible to prevent inconvenience that the colorimetric value calculated due to the change in the subject distance is changed, and calculate the correct colorimetric value of the colorimetric target patch CP. can do.

なお、本実施形態の測色カメラ20は、距離演算部46が算出した被写体距離Daを用いて測色対象パッチCPを測色する際の被写体距離を調整することで、測色対象パッチCPの正しい測色値を得られるようにしている。しかし、これに代えて、距離演算部46が算出した被写体距離Daに基づき、測色演算部44が算出した測色値を補正する補正部を備える構成とすることで、正しい測色値が得られるようにしてもよい。   Note that the colorimetric camera 20 of the present embodiment adjusts the subject distance when the colorimetric target patch CP is measured using the subject distance Da calculated by the distance calculation unit 46, so that the colorimetric target patch CP is adjusted. The correct colorimetric value is obtained. However, instead of this, a correct colorimetric value can be obtained by providing a correction unit that corrects the colorimetric value calculated by the colorimetric calculation unit 44 based on the subject distance Da calculated by the distance calculation unit 46. You may be made to do.

この構成の場合、被写体距離に応じて測色値を補正するための補正パラメータを予め求めて、不揮発性メモリ45などに格納しておく。補正部は、距離演算部46により算出された被写体距離Daに対応する補正パラメータを読み出して、この補正パラメータを用いて測色演算部44が算出する測色値を補正する。また、補正部は、測色演算部44が算出する測色値を補正するのではなく、平均化処理部43から出力される測色対象パッチCPのRGB値や基準チャート400の各基準パッチのRGB値を、距離演算部46が算出した被写体距離Daに応じて補正するようにしてもよい。   In the case of this configuration, a correction parameter for correcting the colorimetric value according to the subject distance is obtained in advance and stored in the nonvolatile memory 45 or the like. The correction unit reads the correction parameter corresponding to the subject distance Da calculated by the distance calculation unit 46, and corrects the color measurement value calculated by the color measurement calculation unit 44 using the correction parameter. The correction unit does not correct the colorimetric value calculated by the colorimetric calculation unit 44, but the RGB value of the colorimetric target patch CP output from the averaging processing unit 43 and each reference patch of the reference chart 400. The RGB values may be corrected according to the subject distance Da calculated by the distance calculation unit 46.

<パッチの測色方法>
次に、図14乃至図20を参照しながら、本実施形態に係る画像形成装置100による測色対象パッチCPの測色方法の具体例について詳細に説明する。以下で説明する測色方法は、画像形成装置100が初期状態のとき(製造やオーバーフォールなどによって初期状態となっているとき)に実施される前処理と、画像形成装置100の色調整を行う調整時に実施される測色処理とを含む。
<Patch color measurement method>
Next, a specific example of the color measurement method of the color measurement target patch CP by the image forming apparatus 100 according to the present embodiment will be described in detail with reference to FIGS. The color measurement method described below performs pre-processing that is performed when the image forming apparatus 100 is in an initial state (when the image forming apparatus 100 is in an initial state due to manufacturing, overfall, or the like) and color adjustment of the image forming apparatus 100. Colorimetric processing performed at the time of adjustment.

図14は、基準測色値および基準RGB値を取得する処理と基準値線形変換マトリックスを生成する処理を説明する図である。図14に示すこれらの処理は、前処理として実施される。前処理では、複数の基準パッチKPが配列形成された基準シートKSが用いられる。基準シートKSの基準パッチKPは、測色カメラ20が備える基準チャート400のパッチと同等のものである。   FIG. 14 is a diagram for explaining processing for obtaining a reference colorimetric value and a reference RGB value and processing for generating a reference value linear transformation matrix. These processes shown in FIG. 14 are implemented as a preprocess. In the preprocessing, a reference sheet KS on which a plurality of reference patches KP are formed is used. The reference patch KP of the reference sheet KS is equivalent to the patch of the reference chart 400 provided in the colorimetric camera 20.

まず、基準シートKSの複数の基準パッチKPの測色値であるLab値とXYZ値のうち、少なくともいずれか(図14の例では、Lab値とXYZ値の双方)が、それぞれのパッチ番号に対応させて、例えば測色カメラ20の基板22に実装された不揮発性メモリ45などに設けられるメモリテーブルTb1に格納される。基準パッチKPの測色値は、分光器BSなどを用いた測色により事前に得られる値である。基準パッチKPの測色値が既知であれば、その値を用いればよい。以下、メモリテーブルTb1に格納された基準パッチKPの測色値を「基準測色値」という。   First, at least one of Lab values and XYZ values (both Lab values and XYZ values in the example of FIG. 14) that are colorimetric values of a plurality of reference patches KP of the reference sheet KS is assigned to each patch number. Correspondingly, it is stored in a memory table Tb1 provided in, for example, a non-volatile memory 45 mounted on the substrate 22 of the colorimetric camera 20. The colorimetric value of the reference patch KP is a value obtained in advance by colorimetry using the spectroscope BS or the like. If the colorimetric value of the reference patch KP is known, that value may be used. Hereinafter, the colorimetric values of the reference patch KP stored in the memory table Tb1 are referred to as “reference colorimetric values”.

次に、基準シートKSがプラテン16上にセットされ、キャリッジ5の移動を制御することで、基準シートKSの複数の基準パッチKPを被写体として、測色カメラ20による撮像が行われる。そして、測色カメラ20の撮像により得られた基準パッチKPのRGB値が、不揮発性メモリ45のメモリテーブルTb1に、パッチ番号に対応して格納される。つまり、メモリテーブルTb1には、基準シートKSに配列形成された複数の基準パッチKPそれぞれの測色値とRGB値が、各基準パッチKPのパッチ番号に対応して格納される。以下、メモリテーブルTb1に格納された基準パッチKPのRGB値を「基準RGB値」という。基準RGB値は、測色カメラ20の特性を反映した値である。   Next, the reference sheet KS is set on the platen 16 and the movement of the carriage 5 is controlled, so that the colorimetric camera 20 takes an image using a plurality of reference patches KP of the reference sheet KS as subjects. Then, the RGB values of the reference patch KP obtained by imaging with the colorimetric camera 20 are stored in the memory table Tb1 of the nonvolatile memory 45 in correspondence with the patch numbers. That is, in the memory table Tb1, the colorimetric values and RGB values of the plurality of reference patches KP arranged on the reference sheet KS are stored in correspondence with the patch numbers of the respective reference patches KP. Hereinafter, the RGB values of the reference patch KP stored in the memory table Tb1 are referred to as “reference RGB values”. The reference RGB value is a value reflecting the characteristics of the colorimetric camera 20.

画像形成装置100のCPU101は、基準パッチKPの基準測色値および基準RGB値が不揮発性メモリ45のメモリテーブルTb1に格納されると、同じパッチ番号の基準測色値であるXYZ値と基準RGB値との対に対して、これらを相互に変換する基準値線形変換マトリックスを生成し、不揮発性メモリ45に格納する。メモリテーブルTb1に基準測色値としてLab値のみが格納されている場合は、Lab値をXYZ値に変換する既知の変換式を用いてLab値をXYZ値に変換した後に、基準値線形変換マトリックスを生成すればよい。   When the reference colorimetric values and the reference RGB values of the reference patch KP are stored in the memory table Tb1 of the non-volatile memory 45, the CPU 101 of the image forming apparatus 100 stores the XYZ values that are the reference colorimetric values of the same patch number and the reference RGB values. A reference value linear conversion matrix for converting these values into each other is generated and stored in the nonvolatile memory 45. When only Lab values are stored as reference colorimetric values in the memory table Tb1, after converting Lab values to XYZ values using a known conversion formula for converting Lab values to XYZ values, a reference value linear conversion matrix Should be generated.

また、測色カメラ20が基準シートKSの複数の基準パッチKPを撮像する際には、測色カメラ20に設けられた基準チャート400も同時に撮像される。この撮像により得られた基準チャート400の各パッチのRGB値も、パッチ番号に対応させて、不揮発性メモリ45のメモリテーブルTb1に格納される。この前処理によりメモリテーブルTb1に格納された基準チャート400のパッチのRGB値を「初期基準RGB値」という。図15は、初期基準RGB値の一例を示す図である。図15(a)は初期基準RGB値(RdGdBd)をメモリテーブルTb1に格納した様子を示し、初期基準RGB値と(RdGdBd)ともに、初期基準RGB値(RdGdBd)をLab値に変換した初期基準Lab値(Ldadbd)やXYZ値に変換した初期基準XYZ値(XdYdZd)も対応付けて格納されることを示している。また、図15(b)は基準チャート400の各パッチの初期基準RGB値をプロットした散布図である。   Further, when the colorimetric camera 20 captures a plurality of reference patches KP on the reference sheet KS, the reference chart 400 provided in the colorimetric camera 20 is also captured at the same time. The RGB values of each patch of the reference chart 400 obtained by this imaging are also stored in the memory table Tb1 of the nonvolatile memory 45 in association with the patch number. The RGB values of the patches of the reference chart 400 stored in the memory table Tb1 by this preprocessing are referred to as “initial reference RGB values”. FIG. 15 is a diagram illustrating an example of the initial reference RGB values. FIG. 15A shows a state in which the initial reference RGB value (RdGdBd) is stored in the memory table Tb1, and the initial reference Lab value obtained by converting the initial reference RGB value (RdGdBd) into the Lab value together with the initial reference RGB value and (RdGdBd). It shows that the initial reference XYZ value (XdYdZd) converted into the value (Ldadbd) and the XYZ value is also stored in association with each other. FIG. 15B is a scatter diagram in which initial reference RGB values of each patch of the reference chart 400 are plotted.

以上の前処理が終了した後、画像形成装置100は、外部から入力される画像データや印刷設定等に基づいて、CPU101による制御のもとで、主走査モータ8や副走査モータ12、記録ヘッド6を駆動して、記録媒体Pを副走査方向に間欠的に搬送させつつ、キャリッジ5を主走査方向に移動させながら、記録ヘッド6からインクを吐出させて、記録媒体Pに画像を形成する。このとき、記録ヘッド6からのインクの吐出量が、機器固有の特性や経時変化などによって変化することがあり、このインクの吐出量が変化すると、ユーザが意図する画像の色とは異なった色で画像形成されることとなって、色再現性が劣化する。そこで、画像形成装置100は、色調整を行う所定のタイミングで、記録媒体Pに形成された測色対象パッチCPの測色値を求める測色処理を実施する。そして、測色処理により得られた測色対象パッチCPの測色値に基づいてデバイスプロファイルの生成あるいは修正を行って、このデバイスプロファイルに基づいて色調整を行うことにより、出力画像の色再現性を高める。   After the above preprocessing is completed, the image forming apparatus 100 controls the main scanning motor 8, the sub-scanning motor 12, and the recording head under the control of the CPU 101 based on image data input from the outside, print settings, and the like. 6 is driven to form an image on the recording medium P by ejecting ink from the recording head 6 while intermittently transporting the recording medium P in the sub-scanning direction and moving the carriage 5 in the main scanning direction. . At this time, the amount of ink ejected from the recording head 6 may change depending on the characteristics inherent to the device or changes over time. When this ink ejection amount changes, the color differs from the color of the image intended by the user. As a result, the color reproducibility deteriorates. Therefore, the image forming apparatus 100 performs a color measurement process for obtaining a color measurement value of the color measurement target patch CP formed on the recording medium P at a predetermined timing for color adjustment. Then, a device profile is generated or corrected based on the colorimetric value of the colorimetric target patch CP obtained by the colorimetric processing, and color adjustment is performed based on the device profile. To increase.

図16は、測色処理の概要を説明する図である。画像形成装置100は、色調整を行う調整時に、まず、プラテン16上にセットされた記録媒体P上に記録ヘッド6からインクを吐出して、多数の測色対象パッチCPが並んだテストパターン形成する。以下、テストパターンが形成された記録媒体Pを「調整シートCS」という。この調整シートCSには、画像形成装置100の調整時における出力特性、特に、記録ヘッド6の出力特性を反映した測色対象パッチCPが形成されている。なお、テストパターンを形成するための画像データは、不揮発性メモリ45などに予め格納されている。   FIG. 16 is a diagram for explaining the outline of the color measurement process. When performing color adjustment, the image forming apparatus 100 first ejects ink from the recording head 6 onto the recording medium P set on the platen 16 to form a test pattern in which a large number of colorimetric target patches CP are arranged. To do. Hereinafter, the recording medium P on which the test pattern is formed is referred to as an “adjustment sheet CS”. The adjustment sheet CS is formed with a colorimetric target patch CP reflecting output characteristics at the time of adjustment of the image forming apparatus 100, in particular, output characteristics of the recording head 6. Note that image data for forming a test pattern is stored in advance in the nonvolatile memory 45 or the like.

次に、画像形成装置100は、図16に示すように、この調整シートCSがプラテン16上にセットされるか、調整シートCSを作成した段階で排紙することなくプラテン16上に保持された状態において、この調整シートCS上でキャリッジ5を主走査方向に移動させながら、測色カメラ20の2次元イメージセンサ27で画像の撮像を行う。そして、2次元イメージセンサ27から出力される撮像画像から平均化処理部43による処理によって測色対象パッチCPのRGB値が求められる。また、2次元イメージセンサ27は、測色対象の測色対象パッチCPと同時に基準チャート400を撮像しているため、基準チャート400に含まれる各パッチのRGB値も得られる。以下、測色対象の測色対象パッチCPのRGB値を「測色対象RGB値」といい、基準チャート400のパッチのRGB値を「測色時基準RGB値(RdsGdsBds)」という。「測色時基準RGB値(RdsGdsBds)」は、不揮発性メモリ45などに格納される。   Next, as shown in FIG. 16, the image forming apparatus 100 sets the adjustment sheet CS on the platen 16 or holds the adjustment sheet CS on the platen 16 without discharging the sheet when the adjustment sheet CS is created. In the state, the two-dimensional image sensor 27 of the colorimetric camera 20 captures an image while moving the carriage 5 on the adjustment sheet CS in the main scanning direction. Then, the RGB value of the colorimetric target patch CP is obtained from the captured image output from the two-dimensional image sensor 27 by the processing by the averaging processing unit 43. Further, since the two-dimensional image sensor 27 images the reference chart 400 simultaneously with the color measurement target patch CP to be measured, the RGB value of each patch included in the reference chart 400 can also be obtained. Hereinafter, the RGB value of the color measurement target patch CP to be measured is referred to as “color measurement target RGB value”, and the RGB value of the patch in the reference chart 400 is referred to as “color measurement reference RGB value (RdsGdsBds)”. The “color measurement reference RGB value (RdsGdsBds)” is stored in the nonvolatile memory 45 or the like.

測色カメラ20の測色演算部44は、後述する基準RGB間線形変換マトリックスを用いて、測色対象RGB値を初期化測色対象RGB値(RsGsBs)に変換する処理を行う(ステップS10)。初期化測色対象RGB値(RsGsBs)は、測色対象RGB値から、前処理を行った初期状態のときから測色処理を行う調整時に至るまでの間に生じる測色カメラ20の撮像条件の経時変化、例えば、照明光源30の経時変化や2次元イメージセンサ27の経時変化の影響を排除したものである。   The colorimetric calculation unit 44 of the colorimetric camera 20 performs processing for converting the colorimetric object RGB values into the initialization colorimetric object RGB values (RsGsBs) using a reference RGB linear conversion matrix to be described later (step S10). . The initialization colorimetric object RGB values (RsGsBs) are the imaging conditions of the colorimetric camera 20 that are generated from the colorimetry object RGB values from the initial state where preprocessing is performed to the adjustment time when performing colorimetry processing. This eliminates the influence of a change with time, for example, a change with time of the illumination light source 30 and a change with time of the two-dimensional image sensor 27.

その後、測色演算部44は、測色対象RGB値から変換された初期化測色対象RGB値(RsGsBs)を対象として、後述する基本測色処理を実行することにより(ステップS20)、測色対象の測色対象パッチCPの測色値であるLab値を取得する。   Thereafter, the colorimetric calculation unit 44 performs basic colorimetry processing, which will be described later, on the initialization colorimetry target RGB values (RsGsBs) converted from the colorimetry target RGB values (step S20), thereby performing colorimetry. A Lab value that is a colorimetric value of the target colorimetric object patch CP is acquired.

図17は、基準RGB間線形変換マトリックスを生成する処理を説明する図であり、図18は、初期基準RGB値と測色時基準RGB値との関係を示す図である。測色演算部44は、測色対象RGB値を初期化測色対象RGB値(RsGsBs)に変換する処理(ステップS10)を行う前に、この変換に用いる基準RGB間線形変換マトリックスを生成する。すなわち、測色演算部44は、図17に示すように、画像形成装置100が初期状態のときに前処理として得られた初期基準RGB値(RdGdBd)と、調整時において得られる測色時基準RGB値(RdsGdsBds)とを不揮発性メモリ45から読み出し、測色時基準RGB値RdsGdsBdsを初期基準RGB値RdGdBdに変換する基準RGB間線形変換マトリックスを生成する。そして、測色演算部44は、生成した基準RGB間線形変換マトリックスを不揮発性メモリ45に格納する。   FIG. 17 is a diagram illustrating processing for generating a linear conversion matrix between reference RGB. FIG. 18 is a diagram illustrating a relationship between an initial reference RGB value and a colorimetric reference RGB value. The colorimetric calculation unit 44 generates a reference inter-RGB linear conversion matrix to be used for this conversion before performing the process (step S10) of converting the colorimetric target RGB values into the initialization colorimetric target RGB values (RsGsBs). That is, as shown in FIG. 17, the colorimetric calculation unit 44, the initial reference RGB value (RdGdBd) obtained as preprocessing when the image forming apparatus 100 is in the initial state, and the colorimetric time reference obtained at the time of adjustment. The RGB values (RdsGdsBds) are read from the nonvolatile memory 45, and a reference RGB linear conversion matrix for converting the colorimetric reference RGB values RdsGdsBds into the initial reference RGB values RdGdBd is generated. Then, the colorimetric calculation unit 44 stores the generated reference RGB linear conversion matrix in the nonvolatile memory 45.

図18において、図18(a)で薄く描かれている点が初期基準RGB値RdGdBdをrgb空間でプロットした点であり、塗りつぶし点が、測色時基準RGB値RdsGdsBdsをrgb空間でプロットした点である。図18(a)から分かるように、測色時基準RGB値RdsGdsBdsの値が初期基準RGB値RdGdBdの値から変動しており、これらのrgb空間上での変動方向は、図18(b)に示すように概ね同じであるが、色相によってずれの方向が異なる。このように、同じ基準チャート400のパッチを撮像してもRGB値が変動する要因としては、照明光源30の経時変化、2次元イメージセンサ27の経時変化などがある。   In FIG. 18, the thinly drawn points in FIG. 18A are points where the initial reference RGB values RdGdBd are plotted in the rgb space, and the filled points are points where the colorimetric reference RGB values RdsGdsBds are plotted in the rgb space. It is. As can be seen from FIG. 18A, the value of the colorimetric reference RGB value RdsGdsBds varies from the value of the initial reference RGB value RdGdBd, and the direction of variation in the rgb space is shown in FIG. 18B. As shown, the directions are generally the same, but the direction of deviation differs depending on the hue. As described above, the factors that cause the RGB value to change even if the patches of the same reference chart 400 are imaged include the temporal change of the illumination light source 30 and the temporal change of the two-dimensional image sensor 27.

このように、測色カメラ20による撮像によって得られるRGB値が変動している状態で、測色対象パッチCPを撮像することで得られる測色対象RGB値を用いて測色値を求めると、変動分だけ測色値に誤差が発生する虞がある。そこで、初期基準RGB値RdGdBdと測色時基準RGB値RdsGdsBdsとの間で、最小2乗法などの推定法を用いて、測色時基準RGB値RdsGdsBdsを初期基準RGB値RdGdBdに変換する基準RGB間線形変換マトリックスを求め、この基準RGB間線形変換マトリックスを用いて、測色カメラ20で測色対象パッチCPを撮像することにより得られる測色対象RGB値を、初期化測色対象RGB値RsGsBsに変換し、変換した初期化測色対象RGB値RsGsBsを対象として、後述する基本測色処理を実行することで、測色対象パッチCPの測色値を精度よく取得できるようにしている。   As described above, when the colorimetric value is obtained using the colorimetric target RGB value obtained by imaging the colorimetric target patch CP in a state where the RGB value obtained by imaging by the colorimetric camera 20 is fluctuating, There is a possibility that an error occurs in the colorimetric value by the fluctuation amount. Therefore, between the initial reference RGB value RdGdBd and the colorimetric reference RGB value RdsGdsBds, using an estimation method such as a least square method, the colorimetric reference RGB value RdsGdsBds is converted into the initial reference RGB value RdGdBd between the reference RGB values. A linear transformation matrix is obtained, and using this reference RGB linear transformation matrix, the colorimetric object RGB values obtained by imaging the colorimetric object patch CP with the colorimetric camera 20 are converted into initialized colorimetric object RGB values RsGsBs. The converted color measurement target RGB values RsGsBs are processed, and a color measurement value of the color measurement target patch CP can be obtained with high accuracy by executing a basic color measurement process described later.

この基準RGB間線形変換マトリックスは、1次だけでなく、さらに高次の非線形マトリックスであってもよく、rgb空間とXYZ空間間で非線形性が高い場合には、高次のマトリックスとすることで、変換精度を向上させることができる。   This linear conversion matrix between RGB may be not only a first-order but also a higher-order nonlinear matrix. If the nonlinearity is high between the rgb space and the XYZ space, a higher-order matrix can be obtained. , Conversion accuracy can be improved.

測色演算部44は、上述したように、測色対象パッチCPの撮像により得られる測色対象RGB値を、基準RGB間線形変換マトリックスを用いて初期化測色対象RGB値(RsGsBs)に変換した後(ステップS10)、この初期化測色対象RGB値(RsGsBs)を対象として、ステップS20の基本測色処理を行う。   As described above, the colorimetric calculation unit 44 converts the colorimetric target RGB values obtained by imaging the colorimetric target patch CP into initialization colorimetric target RGB values (RsGsBs) using a reference RGB linear conversion matrix. After that (step S10), the basic colorimetric processing of step S20 is performed on the initialization colorimetric target RGB values (RsGsBs).

図19および図20は、基本測色処理を説明する図である。測色演算部44は、まず、前処理において生成して不揮発性メモリ45に格納した基準値線形変換マトリックスを読み出し、基準値線形変換マトリックスを用いて初期化測色対象RGB値(RsGsBs)を第1XYZ値に変換し、不揮発性メモリ45に格納する(ステップS21)。図19では、初期化測色対象RGB値(3、200、5)が基準値線形変換マトリックスにより第1XYZ値(20、80、10)に変換された例を示している。   19 and 20 are diagrams for explaining basic colorimetric processing. The colorimetric calculation unit 44 first reads the reference value linear conversion matrix generated in the preprocessing and stored in the nonvolatile memory 45, and uses the reference value linear conversion matrix to determine the initialization colorimetric target RGB values (RsGsBs). It is converted into 1XYZ value and stored in the nonvolatile memory 45 (step S21). FIG. 19 shows an example in which the initialization colorimetric target RGB values (3, 200, 5) are converted to the first XYZ values (20, 80, 10) by the reference value linear conversion matrix.

次に、測色演算部44は、ステップS21で初期化測色対象RGB値(RsGsBs)から変換された第1XYZ値を、既知の変換式を用いて第1Lab値に変換し、不揮発性メモリ45に格納する(ステップS22)。図19では、第1XYZ値(20、80、10)が既知の変換式により第1Lab値(75、−60、8)に変換された例を示している。   Next, the colorimetric calculation unit 44 converts the first XYZ value converted from the initialization colorimetric target RGB value (RsGsBs) in step S21 into a first Lab value using a known conversion formula, and the nonvolatile memory 45 (Step S22). FIG. 19 shows an example in which the first XYZ values (20, 80, 10) are converted into the first Lab values (75, −60, 8) by a known conversion formula.

次に、測色演算部44は、前処理において不揮発性メモリ45のメモリテーブルTb1に格納された複数の基準測色値(Lab値)を検索し、該基準測色値(Lab値)のうち、Lab空間上において第1Lab値に対して距離の近い基準測色値(Lab値)を持つ複数のパッチ(近傍色パッチ)の組を選択する(ステップS23)。距離の近いパッチを選択する方法としては、例えば、メモリテーブルTb1に格納されたすべての基準測色値(Lab値)に対して、第1Lab値との距離を算出し、第1Lab値に対して距離の近いLab値(図19では、ハッチングの施されているLab値)を持つ複数のパッチを選択するといった方法を用いることができる。   Next, the colorimetric calculation unit 44 searches for a plurality of reference colorimetric values (Lab values) stored in the memory table Tb1 of the nonvolatile memory 45 in the preprocessing, and out of the reference colorimetric values (Lab values). Then, a set of a plurality of patches (neighboring color patches) having a reference colorimetric value (Lab value) close to the first Lab value in the Lab space is selected (step S23). As a method for selecting a patch having a short distance, for example, the distance from the first Lab value is calculated for all reference colorimetric values (Lab values) stored in the memory table Tb1, and the patch is calculated for the first Lab value. A method of selecting a plurality of patches having Lab values that are close in distance (in FIG. 19, Lab values that are hatched) can be used.

次に、測色演算部44は、図20に示すように、メモリテーブルTb1を参照して、ステップS23で選択した近傍色パッチのそれぞれについて、Lab値と対になっているRGB値(基準RGB値)とXYZ値を取り出して、これら複数のRGB値とXYZ値のなかから、RGB値とXYZ値との組み合わせを選択する(ステップS24)。そして、測色演算部44は、選択した組み合わせ(選択組)のRGB値をXYZ値に変換するための選択RGB値線形変換マトリックスを、最小二乗法などを用いて求め、求めた選択RGB値線形変換マトリックスを不揮発性メモリ45に格納する(ステップS25)。   Next, as shown in FIG. 20, the colorimetric calculation unit 44 refers to the memory table Tb1, and for each of the neighboring color patches selected in step S23, the RGB value paired with the Lab value (reference RGB) Value) and XYZ values are extracted, and a combination of RGB values and XYZ values is selected from the plurality of RGB values and XYZ values (step S24). Then, the colorimetric calculation unit 44 obtains a selected RGB value linear conversion matrix for converting the RGB values of the selected combination (selected set) into XYZ values using the least square method or the like, and obtains the selected RGB value linear The conversion matrix is stored in the nonvolatile memory 45 (step S25).

次に、測色演算部44は、ステップS25で生成した選択RGB値線形変換マトリックスを用いて、初期化測色対象RGB値(RsGsBs)を第2XYZ値に変換する(ステップS26)。さらに、測色演算部44は、ステップS26で求めた第2XYZ値を、既知の変換式を用いて第2Lab値に変換し(ステップS27)、得られた第2Lab値を、測色対象パッチCPの最終的な測色値とする。画像形成装置100は、以上の測色処理により得られた測色値に基づいてデバイスプロファイルを生成あるいは修正し、このデバイスプロファイルに基づいて色調整を行うことにより、出力画像の色再現性を高めることができる。   Next, the colorimetric calculation unit 44 converts the initialization colorimetric object RGB values (RsGsBs) into the second XYZ values using the selected RGB value linear conversion matrix generated in step S25 (step S26). Further, the colorimetric calculation unit 44 converts the second XYZ value obtained in step S26 into a second Lab value using a known conversion formula (step S27), and converts the obtained second Lab value into the colorimetric target patch CP. Is the final colorimetric value. The image forming apparatus 100 generates or corrects a device profile based on the colorimetric values obtained by the above colorimetric processing, and performs color adjustment based on the device profile, thereby improving the color reproducibility of the output image. be able to.

なお、上述した測色カメラ20は、筐体23に基準チャート400を設けて、センサ部26の2次元イメージセンサ27によって測色対象パッチCPと基準チャート400とを同時に撮像する構成となっている。しかし、上述したように、基準チャート400の撮像により得られる初期基準RGB値や測色時基準RGB値は、測色対象パッチCPの撮像により得られる測色対象RGB値に対して、測色カメラ20の撮像条件の経時変化、例えば、照明光源30の経時変化や2次元イメージセンサ27の経時変化の影響を排除するために用いられる。つまり、基準チャート400の撮像により得られる初期基準RGB値や測色時基準RGB値は、上述した基準RGB間線形変換マトリックスを算出し、この基準RGB間線形変換マトリックスを用いて、測色対象RGB値を初期化測色対象RGB値(RsGsBs)に変換するために用いられる。   The colorimetric camera 20 described above has a configuration in which the reference chart 400 is provided in the housing 23 and the two-dimensional image sensor 27 of the sensor unit 26 captures the colorimetric target patch CP and the reference chart 400 at the same time. . However, as described above, the initial reference RGB values and the colorimetric reference RGB values obtained by imaging the reference chart 400 are the colorimetric cameras with respect to the colorimetric object RGB values obtained by imaging the colorimetric object patch CP. This is used to eliminate the influence of the time-dependent change of the 20 imaging conditions, for example, the change of the illumination light source 30 and the change of the two-dimensional image sensor 27 over time. That is, for the initial reference RGB value and the colorimetric reference RGB value obtained by imaging the reference chart 400, the above-described reference RGB linear conversion matrix is calculated, and the colorimetric target RGB is calculated using the reference RGB linear conversion matrix. This value is used to convert the value to an initialization colorimetric object RGB value (RsGsBs).

したがって、要求される測色の精度に対して測色カメラ20の撮像条件の経時変化が無視できるレベルであれば、基準チャート400が省略された構成の測色カメラ20を用いて測色対象パッチCPの測色値を算出するようにしてもよい。この場合、測色対象RGB値を初期化測色対象RGB値に変換する処理(図16のステップS10)が省略され、測色対象RGB値を対象として、基本測色処理(図16のステップS20、図19および図20)が行われる。   Therefore, if the temporal change in the imaging condition of the colorimetric camera 20 is negligible with respect to the required colorimetric accuracy, the colorimetric target patch using the colorimetric camera 20 having the configuration in which the reference chart 400 is omitted. You may make it calculate the colorimetric value of CP. In this case, the process of converting the colorimetric object RGB values into the initialization colorimetric object RGB values (step S10 in FIG. 16) is omitted, and the basic colorimetry process (step S20 in FIG. 16) is performed on the colorimetric object RGB values. 19 and 20) are performed.

<測色カメラの変形例>
次に、本実施形態の測色カメラ20の変形例(第1乃至第8変形例)について説明する。以下では、第1変形例の測色カメラ20を測色カメラ20A、第2変形例の測色カメラ20を測色カメラ20B、第3変形例の測色カメラ20を測色カメラ20C、第4変形例の測色カメラ20を測色カメラ20D、第5変形例の測色カメラ20を測色カメラ20E、第6変形例の測色カメラ20を測色カメラ20F、第7変形例の測色カメラ20を測色カメラ20G、第7変形例の測色カメラ20を測色カメラ20Hとそれぞれ表記する。なお、各変形例において、上述した測色カメラ20と共通の構成要素には同一の符号を付し、重複した説明を省略する。
<Modification of colorimetric camera>
Next, modified examples (first to eighth modified examples) of the colorimetric camera 20 of the present embodiment will be described. In the following, the color measurement camera 20 of the first modification is the color measurement camera 20A, the color measurement camera 20 of the second modification is the color measurement camera 20B, the color measurement camera 20 of the third modification is the color measurement camera 20C, and the fourth. The colorimetric camera 20 of the modified example is the colorimetric camera 20D, the colorimetric camera 20 of the fifth modified example is the colorimetric camera 20E, the colorimetric camera 20 of the sixth modified example is the colorimetric camera 20F, and the colorimetric camera of the seventh modified example. The camera 20 is referred to as a colorimetric camera 20G, and the colorimetric camera 20 of the seventh modified example is referred to as a colorimetric camera 20H. Note that, in each modification, the same reference numerals are given to the same components as those of the colorimetric camera 20 described above, and redundant description is omitted.

<第1変形例>
図21−1および図21−2は、第1変形例の測色カメラ20Aの縦断面図であり、図5−2に示した測色カメラ20の縦断面図と同じ位置の断面図である。図21−1は、被写体距離の測定時における第1ミラー51および第2ミラー52の位置を示し、図21−2は、測色対象パッチCPの測色を行う際の第1ミラー51および第2ミラー52の位置を示している。
<First Modification>
21A and 21B are longitudinal sectional views of the colorimetric camera 20A of the first modified example, and are sectional views at the same position as the longitudinal sectional view of the colorimetric camera 20 shown in FIG. . FIG. 21A shows the positions of the first mirror 51 and the second mirror 52 when the subject distance is measured, and FIG. 21B shows the first mirror 51 and the first mirror 51 when the colorimetric target patch CP is measured. The position of the two mirrors 52 is shown.

上述したように、本実施形態の測色カメラ20は、白抜けの位置(重心位置の座標)や大きさ(面積)の変動に基づいて被写体距離を算出する。ここで、被写体距離の変動に対する白抜けの位置や大きさの変動は、センサ部26の撮像面に対する照明光の入射角が大きいほど大きくなる。つまり、被写体距離の測定時に、撮像面に対する照明光の入射角を大きくすることで、被写体距離の測定精度向上が期待できる。そこで、第1変形例の測色カメラ20Aでは、筐体23の内部に第1ミラー51および第2ミラー52を設け、被写体距離の測定時には、照明光源30からの照明光をこれら第1ミラー51および第2ミラー52により反射させることで、撮像面に対する照明光の入射角を大きくできるようにしている。   As described above, the colorimetric camera 20 of the present embodiment calculates the subject distance based on the variation of the white spot position (coordinate of the center of gravity position) and the size (area). Here, the variation in the position and size of the white spot with respect to the variation in the subject distance increases as the incident angle of the illumination light with respect to the imaging surface of the sensor unit 26 increases. That is, when the subject distance is measured, it is expected that the measurement accuracy of the subject distance can be improved by increasing the incident angle of the illumination light with respect to the imaging surface. Therefore, in the colorimetric camera 20A of the first modified example, the first mirror 51 and the second mirror 52 are provided inside the housing 23, and the illumination light from the illumination light source 30 is supplied to the first mirror 51 when the subject distance is measured. The incident angle of the illumination light with respect to the imaging surface can be increased by reflecting the light with the second mirror 52.

第1ミラー51は、回転軸51aを支点として回動可能な構造であり、一方の面が光を反射するミラー面とされている。また、ミラー面の逆側の面は、光を吸収する黒色とされている。同様に、第2ミラー52は、回転軸52aを支点として回動可能な構造であり、一方の面が光を反射するミラー面とされている。また、ミラー面の逆側の面は、光を吸収する黒色とされている。   The first mirror 51 has a structure that can be rotated about a rotating shaft 51a, and one surface is a mirror surface that reflects light. The surface opposite to the mirror surface is black that absorbs light. Similarly, the 2nd mirror 52 is a structure which can be rotated using the rotating shaft 52a as a fulcrum, and one surface is made into the mirror surface which reflects light. The surface opposite to the mirror surface is black that absorbs light.

第1変形例の測色カメラ20Aでは、被写体距離の測定時には、例えば光源駆動制御部40が制御することにより、第1ミラー51および第2ミラー52を、それぞれ回転軸51a,52aを支点とし回動させて、図21−1に示す位置とする。ここで、第1ミラー51および第2ミラー52の照明光源30側に向いている面がミラー面である。これにより、照明光源30からの照明光は、第1ミラー51により反射された後、さらに第2ミラー52により反射されて、撮像面に入射する。このときの照明光の入射角は、照明光源30が第2ミラー52の位置に設けられている場合と同等となり、上述した測色カメラ20と比べて、照明光の入射角を大きくすることができる。   In the colorimetric camera 20A of the first modification, when the subject distance is measured, for example, the light source drive control unit 40 controls the first mirror 51 and the second mirror 52 with the rotation axes 51a and 52a as fulcrums, respectively. To the position shown in FIG. Here, the surfaces of the first mirror 51 and the second mirror 52 facing the illumination light source 30 are mirror surfaces. Thereby, after the illumination light from the illumination light source 30 is reflected by the first mirror 51, it is further reflected by the second mirror 52 and enters the imaging surface. The incident angle of the illumination light at this time is equivalent to the case where the illumination light source 30 is provided at the position of the second mirror 52, and the incident angle of the illumination light can be made larger than that of the colorimetric camera 20 described above. it can.

また、第1変形例の測色カメラ20Aでは、測色対象パッチCPの測色を行う際には、第1ミラー51および第2ミラー52を、それぞれ回転軸51a,52aを支点とし反転させて、図21−2に示す位置とする。これにより、照明光源30からの照明光は、第1ミラー51や第2ミラー52で反射されることなく撮像面に入射する。   In the color measurement camera 20A of the first modification, when performing color measurement of the color measurement target patch CP, the first mirror 51 and the second mirror 52 are reversed with the rotation axes 51a and 52a as fulcrums, respectively. The position shown in FIG. Thereby, the illumination light from the illumination light source 30 enters the imaging surface without being reflected by the first mirror 51 and the second mirror 52.

以上のように、第1変形例の測色カメラ20Aでは、被写体距離の測定時には、照明光源30からの照明光を第1ミラー51および第2ミラー52で反射させて撮像面に入射させるようにしているので、撮像面に対する照明光の入射角を大きくして、被写体距離の測定精度を向上させることができる。   As described above, in the color measurement camera 20A of the first modified example, when measuring the subject distance, the illumination light from the illumination light source 30 is reflected by the first mirror 51 and the second mirror 52 and is incident on the imaging surface. Therefore, the incident angle of the illumination light with respect to the imaging surface can be increased to improve the measurement accuracy of the subject distance.

<第2変形例>
図22は、第2変形例の測色カメラ20Bの縦断面図であり、図5−2に示した測色カメラ20の縦断面図と同じ位置の断面図である。
<Second Modification>
FIG. 22 is a longitudinal sectional view of the colorimetric camera 20B of the second modification, and is a sectional view at the same position as the longitudinal sectional view of the colorimetric camera 20 shown in FIG.

第2変形例の測色カメラ20Bは、測色対象パッチCPの測色を行う際に点灯させる照明光源30(第1光源)とは別に、被写体距離の測定時に点灯させる距離測定用照明光源53(第2光源)を設けた例である。距離測定用照明光源53は、例えば図22に示すように、枠体21側面部の光路長変更部材31に比較的近い位置に設けられる。   The color measurement camera 20B of the second modified example is a distance measurement illumination light source 53 that is turned on when the subject distance is measured, separately from the illumination light source 30 (first light source) that is turned on when the color measurement target patch CP is measured. This is an example in which (second light source) is provided. For example, as shown in FIG. 22, the distance measuring illumination light source 53 is provided at a position relatively close to the optical path length changing member 31 on the side surface of the frame body 21.

第2変形例の測色カメラ20Bでは、被写体距離の測定時には、光源駆動制御部40は、照明光源30を点灯させずに、距離測定用照明光源53を点灯させる。距離測定用照明光源53は、上述したように、枠体21側面部の光路長変更部材31に比較的近い位置に設けられているため、距離測定用照明光源53からの照明光の入射角は、上述した測色カメラ20と比べて大きくなる。   In the color measurement camera 20B of the second modification, the light source drive control unit 40 turns on the distance measurement illumination light source 53 without turning on the illumination light source 30 when measuring the subject distance. As described above, since the distance measuring illumination light source 53 is provided at a position relatively close to the optical path length changing member 31 on the side surface of the frame body 21, the incident angle of the illumination light from the distance measuring illumination light source 53 is This is larger than the colorimetric camera 20 described above.

以上のように、第2変形例の測色カメラ20Bでは、被写体距離の測定時には、照明光源30とは別に設けた距離測定用照明光源53を点灯させ、撮像面に対する照明光の入射角を大きくしているので、第1変形例の測色カメラ20Aと同様に、被写体距離の測定精度を向上させることができる。   As described above, in the color measurement camera 20B of the second modified example, when measuring the subject distance, the illumination light source 53 for distance measurement provided separately from the illumination light source 30 is turned on to increase the incident angle of the illumination light with respect to the imaging surface. Therefore, as in the case of the colorimetric camera 20A of the first modification, the measurement accuracy of the subject distance can be improved.

<第3変形例>
図23は、第3変形例の測色カメラ20Cの縦断面図であり、図5−1に示した測色カメラ20の縦断面図と同じ位置の断面図である。
<Third Modification>
FIG. 23 is a longitudinal sectional view of a colorimetric camera 20C of the third modification, and is a sectional view at the same position as the longitudinal sectional view of the colorimetric camera 20 shown in FIG.

第3変形例の測色カメラ20Cでは、筐体23の底面部23aに、測色対象パッチCPを撮像するための開口部25とは別の開口部54が設けられている。そして、この開口部54を筐体23の外側から閉塞するように、基準チャート400が配置されている。つまり、上述した測色カメラ20では、基準チャート400が筐体23の底面部23aのセンサ部26と対向する内面側に配置されていたのに対して、第3変形例の測色カメラ20Cでは、基準チャート400が筐体23の底面部23aの記録媒体Pと対向する外面側に配置されている。   In the color measurement camera 20 </ b> C of the third modification, an opening 54 is provided on the bottom surface 23 a of the housing 23, which is different from the opening 25 for imaging the color measurement target patch CP. The reference chart 400 is arranged so as to close the opening 54 from the outside of the housing 23. That is, in the colorimetric camera 20 described above, the reference chart 400 is arranged on the inner surface side facing the sensor unit 26 of the bottom surface part 23a of the housing 23, whereas in the colorimetric camera 20C of the third modification example. The reference chart 400 is arranged on the outer surface side of the bottom surface 23a of the housing 23 facing the recording medium P.

具体的には、たとえば、筐体23の底面部23aの外面側に、基準チャート400の厚みに相当する深さの凹部が、開口部54と連通するように形成されている。そして、基準チャート400は、各基準パッチが形成された面をセンサ部26側に向けた状態で、その端部が上記凹部内に装着され、例えば、接着剤などによって筐体23の底面部23aに接合されている。   Specifically, for example, a recess having a depth corresponding to the thickness of the reference chart 400 is formed on the outer surface side of the bottom surface portion 23 a of the housing 23 so as to communicate with the opening 54. The reference chart 400 is mounted in the recess with the surface on which each reference patch is formed facing the sensor unit 26 side. For example, the bottom surface portion 23a of the housing 23 is formed with an adhesive or the like. It is joined to.

以上のように構成される第3変形例の測色カメラ20Cでは、基準チャート400を筐体23の底面部23aの外面側に配置することにより、上述した測色カメラ20に比べて、センサ部26から測色対象パッチCPまでの光路長とセンサ部26から基準チャート400までの光路長との差を小さくすることができる。   In the color measurement camera 20 </ b> C of the third modified example configured as described above, the reference chart 400 is arranged on the outer surface side of the bottom surface portion 23 a of the housing 23, so that the sensor unit is compared with the color measurement camera 20 described above. Thus, the difference between the optical path length from the sensor 26 to the colorimetric object patch CP and the optical path length from the sensor unit 26 to the reference chart 400 can be reduced.

<第4変形例>
図24は、第4変形例の測色カメラ20Dの縦断面図であり、図5−1に示した測色カメラ20の縦断面図と同じ位置の断面図である。
<Fourth Modification>
FIG. 24 is a longitudinal sectional view of the colorimetric camera 20D of the fourth modified example, and is a sectional view at the same position as the longitudinal sectional view of the colorimetric camera 20 shown in FIG. 5-1.

第4変形例の測色カメラ20Dでは、第3変形例の測色カメラ20Cと同様に、筐体23の底面部23aの外面側に基準チャート400が配置されている。ただし、第3変形例の測色カメラ20Cでは、基準チャート400が接着剤などによって筐体23の底面部23aに接合され、筐体23と一体化されていたのに対して、第4変形例の測色カメラ20Dでは、基準チャート400が筐体23に対して着脱可能に保持されている。   In the color measurement camera 20D of the fourth modified example, the reference chart 400 is arranged on the outer surface side of the bottom surface portion 23a of the housing 23, similarly to the color measurement camera 20C of the third modified example. However, in the colorimetric camera 20C of the third modified example, the reference chart 400 is joined to the bottom surface portion 23a of the housing 23 by an adhesive or the like and integrated with the housing 23, whereas the fourth modified example. In the colorimetric camera 20D, the reference chart 400 is detachably held with respect to the housing 23.

具体的には、たとえば、第3変形例の測色カメラ20Cと同様に、筐体23の底面部23aの外面側に開口部54と連通する凹部が形成され、この凹部内に基準チャート400の端部が装着されている。また、第4変形例の測色カメラ20Dは、凹部内に端部が装着された基準チャート400を筐体23の底面部23aの外面側から押さえ込んで保持する保持部材55を備える。保持部材55は、筐体23の底面部23aに対して取り外し可能に装着されている。したがって、第4変形例の測色カメラ20Dでは、保持部材55を筐体23の底面部23aから取り外すことにより、基準チャート400を取り出すことができる。   Specifically, for example, similarly to the colorimetric camera 20C of the third modified example, a recessed portion communicating with the opening 54 is formed on the outer surface side of the bottom surface portion 23a of the housing 23, and the reference chart 400 of the reference chart 400 is formed in this recessed portion. The end is attached. The color measurement camera 20 </ b> D of the fourth modified example includes a holding member 55 that holds the reference chart 400 with the end portion mounted in the recess from the outer surface side of the bottom surface portion 23 a of the housing 23. The holding member 55 is detachably attached to the bottom surface portion 23 a of the housing 23. Therefore, in the colorimetric camera 20D of the fourth modified example, the reference chart 400 can be taken out by removing the holding member 55 from the bottom surface portion 23a of the housing 23.

以上のように、第4変形例の測色カメラ20Dでは、基準チャート400が筐体23に対して着脱可能に保持され、基準チャート400を取り出すことができるので、基準パッチの汚れなどにより基準チャート400が劣化した場合に、基準チャート400を交換する作業を簡単に行うことができる。また、第4変形例の測色カメラ20Dでは、上述したシェーディング補正用の補正データを得る際に、基準チャート400を取り出して代わりに白基準板を配置し、この白基準板をセンサ部26の2次元イメージセンサ27で撮像すれば、シェーディング補正用の補正データの取得を簡便に行うことができる。   As described above, in the colorimetric camera 20D of the fourth modified example, the reference chart 400 is detachably held with respect to the housing 23, and the reference chart 400 can be taken out. When 400 is deteriorated, the operation of replacing the reference chart 400 can be easily performed. Further, in the colorimetric camera 20D of the fourth modified example, when the correction data for shading correction described above is obtained, the reference chart 400 is taken out and a white reference plate is placed instead. If the image is captured by the two-dimensional image sensor 27, correction data for shading correction can be easily obtained.

<第5変形例>
図25は、第5変形例の測色カメラ20Eの縦断面図であり、図5−1に示した測色カメラ20の縦断面図と同じ位置の断面図である。
<Fifth Modification>
FIG. 25 is a longitudinal sectional view of a colorimetric camera 20E of the fifth modification, and is a sectional view at the same position as the longitudinal sectional view of the colorimetric camera 20 shown in FIG.

第5変形例の測色カメラ20Eでは、筐体23の開口部25を塞ぐミスト防止ガラス32が省略され、光路長変更部材31により、筐体23の開口部25を塞ぐ構成となっている。   In the color measurement camera 20E of the fifth modification, the mist prevention glass 32 that closes the opening 25 of the housing 23 is omitted, and the opening 25 of the housing 23 is closed by the optical path length changing member 31.

第5変形例の測色カメラ20Eでは、筐体23の開口部25が光路長変更部材31により塞がれているため、ミスト防止ガラス32を設けた場合と同様に、筐体23の内部にミストが進入することを防止できる。本変形例の場合、開口部25から外部に露出している光路長変更部材31の露出部にミストや埃が付着することが懸念されるため、測色対象パッチCPの測色を行う前に、光路長変更部材31の露出部に付着した汚れを拭き取るなどして、光路長変更部材31を清浄な状態に保つことが望ましい。   In the colorimetric camera 20E of the fifth modification, the opening 25 of the housing 23 is blocked by the optical path length changing member 31, so that the mist prevention glass 32 is provided inside the housing 23 as in the case where the mist prevention glass 32 is provided. Mist can be prevented from entering. In the case of this modification, there is a concern that mist or dust may adhere to the exposed portion of the optical path length changing member 31 exposed to the outside from the opening 25, so before performing color measurement of the color measurement target patch CP. It is desirable to keep the optical path length changing member 31 in a clean state by wiping off dirt adhering to the exposed portion of the optical path length changing member 31.

<第6変形例>
図26は、第6変形例の測色カメラ20Fの縦断面図であり、図5−1に示した測色カメラ20の縦断面図と同じ位置の断面図である。
<Sixth Modification>
FIG. 26 is a longitudinal sectional view of a colorimetric camera 20F of a sixth modification, and is a sectional view at the same position as the longitudinal sectional view of the colorimetric camera 20 shown in FIG. 5-1.

第6変形例の測色カメラ20Fでは、筐体23の内部の光路長変更部材31が省略されている。   In the colorimetric camera 20F of the sixth modification, the optical path length changing member 31 inside the housing 23 is omitted.

光路長変更部材31は、上述したように、センサ部26から測色対象パッチCPまでの光路長を変更し、センサ部26から基準チャート400までの光路長に合わせる機能を持つ。しかし、これらの光路長の差がセンサ部26の被写界深度の範囲内であれば、光路長に差が生じていても、測色対象パッチCPと基準チャート400との双方に焦点の合った画像を撮像することができる。   As described above, the optical path length changing member 31 has a function of changing the optical path length from the sensor unit 26 to the colorimetric target patch CP to match the optical path length from the sensor unit 26 to the reference chart 400. However, if the difference between these optical path lengths is within the range of the depth of field of the sensor unit 26, even if there is a difference in the optical path length, both the colorimetric object patch CP and the reference chart 400 are in focus. Images can be taken.

センサ部26から測色対象パッチCPまでの光路長とセンサ部26から基準チャート400までの光路長との差は、概ね、筐体23の底面部23aの厚みに間隙dを加えた値となる。したがって、間隙dを十分に小さな値とすれば、センサ部26から測色対象パッチCPまでの光路長とセンサ部26から基準チャート400までの光路長との差を、センサ部26の被写界深度の範囲内とすることができ、光路長変更部材31を省略して部品コストの削減を図ることができる。   The difference between the optical path length from the sensor unit 26 to the color measurement target patch CP and the optical path length from the sensor unit 26 to the reference chart 400 is generally a value obtained by adding the gap d to the thickness of the bottom surface portion 23a of the housing 23. . Therefore, if the gap d is set to a sufficiently small value, the difference between the optical path length from the sensor unit 26 to the colorimetric object patch CP and the optical path length from the sensor unit 26 to the reference chart 400 is determined as the object field of the sensor unit 26. The depth can be within the range, and the optical path length changing member 31 can be omitted to reduce the component cost.

なお、センサ部26の被写界深度は、センサ部26の絞り値や結像レンズ28の焦点距離、センサ部26と被写体との間の距離などに応じて定まる、センサ部26に固有の特性である。本変形例の測色カメラ20Fにおいては、筐体23の底面部23aと記録媒体Pとの間の間隙dをたとえば1mm〜2mm程度の十分に小さな値としたときに、センサ部26から被写体(測色対象パッチCP)までの光路長と、センサ部26から基準チャート400までの光路長との差が被写界深度の範囲内となるように、センサ部26が設計されている。   Note that the depth of field of the sensor unit 26 is determined according to the aperture value of the sensor unit 26, the focal length of the imaging lens 28, the distance between the sensor unit 26 and the subject, and the like. It is. In the colorimetric camera 20F of the present modification, when the gap d between the bottom surface portion 23a of the housing 23 and the recording medium P is set to a sufficiently small value, for example, about 1 mm to 2 mm, the subject ( The sensor unit 26 is designed so that the difference between the optical path length to the color measurement target patch CP) and the optical path length from the sensor unit 26 to the reference chart 400 is within the depth of field.

<第7変形例>
図27−1は、第7変形例の測色カメラ20Gの縦断面図であり、図5−1に示した測色カメラ20の縦断面図と同じ位置の断面図である。また、図27−2は、筐体23の底面部23aを図27−1中のX4方向から見た平面図である。なお、図27−2では、筐体23の底面部23aにおける照明光源30の垂直投影位置(底面部23aに対して垂直に見下ろしたときに投影される位置)を破線で示している。
<Seventh Modification>
FIG. 27A is a longitudinal sectional view of a colorimetric camera 20G of the seventh modified example, and is a sectional view at the same position as the longitudinal sectional view of the colorimetric camera 20 shown in FIG. FIG. 27-2 is a plan view of the bottom 23a of the housing 23 as viewed from the X4 direction in FIG. 27-1. In FIG. 27-2, the vertical projection position of the illumination light source 30 on the bottom surface portion 23a of the housing 23 (the position projected when looking down perpendicular to the bottom surface portion 23a) is indicated by a broken line.

第7変形例の測色カメラ20Gでは、筐体23の底面部23aにおいて、センサ部26から該底面部23aに対して垂直に下ろした垂線上(つまり、センサ部26の光軸中心)に位置して開口部25Gが設けられ、この開口部25Gを介して測色対象パッチCPの撮像を行う。すなわち、第7変形例の測色カメラ20Gでは、筐体23の外部の測色対象パッチCPを撮像するための開口部25Gが、センサ部26の撮像対象領域において略中心に位置するように設けられている。   In the color measurement camera 20G of the seventh modified example, the bottom surface portion 23a of the housing 23 is positioned on a perpendicular line that is perpendicular to the bottom surface portion 23a from the sensor portion 26 (that is, the optical axis center of the sensor portion 26). An opening 25G is provided, and the color measurement target patch CP is imaged through the opening 25G. That is, in the colorimetric camera 20G of the seventh modified example, the opening 25G for imaging the colorimetric target patch CP outside the housing 23 is provided so as to be positioned substantially at the center in the imaging target region of the sensor unit 26. It has been.

また、第7変形例の測色カメラ20Gでは、センサ部26により測色対象パッチCPとともに撮像される基準チャート400が、開口部25Gの周囲を取り囲むように、筐体23の底面部23aに配置されている。たとえば、基準チャート400は、開口部25Gを中心とする円環状に形成され、基準パッチが形成された面とは逆側の面を接着面として、筐体23の底面部23aの内面側に接着材などにより接着され、筐体23に対して固定された状態で保持されている。   In the color measurement camera 20G of the seventh modification, the reference chart 400 imaged together with the color measurement target patch CP by the sensor unit 26 is arranged on the bottom surface portion 23a of the housing 23 so as to surround the opening 25G. Has been. For example, the reference chart 400 is formed in an annular shape centered on the opening 25G, and is bonded to the inner surface side of the bottom surface portion 23a of the housing 23 with the surface opposite to the surface on which the reference patch is formed as an adhesive surface. It is bonded with a material or the like and is held in a fixed state with respect to the housing 23.

また、第7変形例の測色カメラ20Gでは、照明光源30として、筐体23の側壁を構成する枠体21の内周側の4隅に配置された4つのLEDを用いる。照明光源30として用いるこれら4つのLEDは、たとえば、センサ部26の2次元イメージセンサ27とともに、基板22の内面に実装されている。照明光源30として用いる4つのLEDをこのように配置することにより、被写体である測色対象パッチCPと基準チャートKCとを、概ね同一の条件にて照明することができる。   Further, in the colorimetric camera 20G of the seventh modified example, as the illumination light source 30, four LEDs arranged at the four corners on the inner peripheral side of the frame body 21 constituting the side wall of the housing 23 are used. These four LEDs used as the illumination light source 30 are mounted on the inner surface of the substrate 22 together with the two-dimensional image sensor 27 of the sensor unit 26, for example. By arranging the four LEDs used as the illumination light source 30 in this way, the color measurement target patch CP that is the subject and the reference chart KC can be illuminated under substantially the same conditions.

以上のように構成される第7変形例の測色カメラ20Gでは、筐体23の外部の測色対象パッチCPを撮像するための開口部25Gを、筐体23の底面部23aにおけるセンサ部26からの垂線上に設け、さらにその開口部25Gの周囲を取り囲むように、基準チャート400を配置しているので、測色対象パッチCPおよび基準チャート400の撮像をより適切に行うことができる。   In the color measurement camera 20G of the seventh modified example configured as described above, the opening 25G for imaging the color measurement target patch CP outside the housing 23 is provided in the sensor portion 26 in the bottom surface portion 23a of the housing 23. Since the reference chart 400 is disposed so as to be provided on the vertical line from the side and further surround the periphery of the opening 25G, the colorimetric object patch CP and the reference chart 400 can be imaged more appropriately.

<その他の変形例>
上述した実施形態では、測色対象パッチCPの測色値を算出する機能を測色カメラ20に持たせるようにしているが、測色カメラ20の外部で測色対象パッチCPの測色値を算出するようにしてもよい。例えば、画像形成装置100のメイン制御基板120に実装されたCPU101や制御用FPGA110が、測色対象パッチCPの測色値を算出するように構成することができる。この場合、測色カメラ20は、測色対象パッチCPの測色値の代わりに、測色対象パッチCPや基準チャート400のRGB値(あるいは撮像データ)を、CPU101や制御用FPGA110に送る構成となる。つまり、測色カメラ20は、測色値を算出する機能を持たない撮像ユニットとして構成される。
<Other variations>
In the above-described embodiment, the colorimetric camera 20 has a function of calculating the colorimetric value of the colorimetric target patch CP. However, the colorimetric value of the colorimetric target patch CP is outside the colorimetric camera 20. You may make it calculate. For example, the CPU 101 and the control FPGA 110 mounted on the main control board 120 of the image forming apparatus 100 can be configured to calculate the colorimetric values of the colorimetric target patch CP. In this case, the color measurement camera 20 sends the color measurement target patch CP and the RGB values (or image data) of the reference chart 400 to the CPU 101 and the control FPGA 110 instead of the color measurement values of the color measurement target patch CP. Become. That is, the colorimetric camera 20 is configured as an imaging unit that does not have a function of calculating a colorimetric value.

また、上述した実施形態では、測色カメラ20が画像形成装置100の機構を利用してテストパターンが形成された記録媒体P上を移動するようにしているが、測色カメラ20を画像形成装置100から分離して、独自の移動機構によりテストパターンが形成された記録媒体P上を移動する構成としてもよい。つまり、上述した実施形態は、画像形成装置100に測色装置としての機能を持たせた例であるが、測色装置を画像形成装置100とは異なる独立した装置として構成し、この測色装置により、画像形成装置100が形成したテストパターンに含まれる測色対象パッチCPの測色値を算出するようにしてもよい。   In the above-described embodiment, the colorimetric camera 20 is moved on the recording medium P on which the test pattern is formed using the mechanism of the image forming apparatus 100. However, the colorimetric camera 20 is connected to the image forming apparatus. A configuration may be adopted in which the recording medium P is separated from the recording medium P and moved on the recording medium P on which the test pattern is formed by a unique moving mechanism. In other words, the embodiment described above is an example in which the image forming apparatus 100 is provided with a function as a color measuring device. However, the color measuring device is configured as an independent device different from the image forming device 100, and this color measuring device. Thus, the colorimetric value of the colorimetric target patch CP included in the test pattern formed by the image forming apparatus 100 may be calculated.

また、上述した実施形態では、測色対象パッチCPの測色値を算出する機能を、測色カメラ20を含む画像形成装置100に持たせるようにしているが、測色対象パッチCPの測色値の算出は、必ずしも画像形成装置100内部で実行する必要はない。例えば、図28に示すように、画像形成装置100と外部装置500とが通信可能に接続された画像形成システム(測色システム)を構築し、測色対象パッチCPの測色値を算出する測色演算部44の機能を外部装置500に持たせて、外部装置500において測色値の算出を行うようにしてもよい。つまり、測色システムは、画像形成装置100に設けられた撮像ユニット200(上述した測色カメラ20から測色演算部44を除いた構成)と、外部装置500に設けられた測色演算部44と、これら撮像ユニット200と測色演算部44(画像形成装置100と外部装置500)とを接続する通信手段600と、を備えた構成となる。外部装置500は、例えば、DFE(Digital Front End)と呼ばれるコンピュータを用いることができる。また、通信手段600は、有線や無線によるP2P通信のほか、LANやインターネットなどのネットワークを利用した通信などを利用することができる。   In the embodiment described above, the image forming apparatus 100 including the colorimetric camera 20 has a function of calculating the colorimetric value of the colorimetric target patch CP. The calculation of the value is not necessarily executed inside the image forming apparatus 100. For example, as shown in FIG. 28, an image forming system (colorimetric system) in which the image forming apparatus 100 and the external apparatus 500 are communicably connected is constructed, and the colorimetric value of the colorimetric target patch CP is calculated. The color calculation value may be calculated in the external apparatus 500 by providing the function of the color calculation unit 44 to the external apparatus 500. That is, the color measurement system includes an imaging unit 200 (a configuration in which the color measurement camera 20 is excluded from the color measurement camera 20 described above) provided in the image forming apparatus 100 and a color measurement calculation unit 44 provided in the external apparatus 500. And a communication unit 600 that connects the imaging unit 200 and the colorimetric calculation unit 44 (the image forming apparatus 100 and the external apparatus 500). As the external device 500, for example, a computer called DFE (Digital Front End) can be used. The communication unit 600 can use communication using a network such as a LAN or the Internet, in addition to wired or wireless P2P communication.

上記の構成の場合、例えば、画像形成装置100は、撮像ユニット200の撮像画像から得られる測色対象パッチCPのRGB値および基準チャート400の各基準パッチのRGB値を、通信手段600を利用して外部装置500に送信する。外部装置500は、画像形成装置100から受信した測色対象パッチCPのRGB値や基準チャート400の各基準パッチのRGB値を用いて測色対象パッチCPの測色値を算出し、算出した測色対象パッチCPの測色値に基づいて、画像形成装置100の特性を記述したデバイスプロファイルを生成あるいは修正する。そして、外部装置500は、このデバイスプロファイルを、通信手段600を利用して画像形成装置100に送信する。画像形成装置100は、外部装置500から受信したデバイスプロファイルを保持し、画像形成を行う際には、このデバイスプロファイルに基づいて画像データを補正し、補正後の画像データに基づいて画像形成を行う。これにより、画像形成装置100は色再現性の高い画像形成を行うことができる。   In the case of the above configuration, for example, the image forming apparatus 100 uses the communication unit 600 for the RGB value of the colorimetric target patch CP obtained from the captured image of the imaging unit 200 and the RGB value of each reference patch of the reference chart 400. To the external device 500. The external apparatus 500 calculates the colorimetric value of the colorimetric target patch CP using the RGB value of the colorimetric target patch CP received from the image forming apparatus 100 and the RGB value of each reference patch of the reference chart 400. A device profile describing the characteristics of the image forming apparatus 100 is generated or modified based on the colorimetric values of the color target patch CP. Then, the external apparatus 500 transmits this device profile to the image forming apparatus 100 using the communication unit 600. The image forming apparatus 100 holds the device profile received from the external apparatus 500, and when performing image formation, the image forming apparatus 100 corrects the image data based on the device profile and performs image formation based on the corrected image data. . Thereby, the image forming apparatus 100 can perform image formation with high color reproducibility.

また、外部装置500が、測色対象パッチCPの測色値に基づいて生成した画像形成装置100のデバイスプロファイルを保持し、外部装置500において画像データの補正を行うようにしてもよい。すなわち、画像形成装置100は、画像形成を行う際に、画像データを外部装置500に送信する。外部装置500は、画像形成装置100から受信した画像データを、自身が保持する画像形成装置100のデバイスプロファイルに基づいて補正し、補正した画像データを画像形成装置100に送信する。画像形成装置100は、外部装置500から受信した補正後の画像データに基づいて画像形成を行う。これにより、画像形成装置100は色再現性の高い画像形成を行うことができる。   Further, the external apparatus 500 may hold the device profile of the image forming apparatus 100 generated based on the colorimetric values of the colorimetric target patch CP, and the external apparatus 500 may correct the image data. That is, the image forming apparatus 100 transmits image data to the external apparatus 500 when performing image formation. The external apparatus 500 corrects the image data received from the image forming apparatus 100 based on the device profile of the image forming apparatus 100 held by itself, and transmits the corrected image data to the image forming apparatus 100. The image forming apparatus 100 forms an image based on the corrected image data received from the external apparatus 500. Thereby, the image forming apparatus 100 can perform image formation with high color reproducibility.

また、画像形成装置100から外部装置500に対して測色対象パッチCPのRGB値および基準チャート400の各基準パッチのRGB値を送信する代わりに、撮像ユニット200の撮像画像そのものを送信するようにしてもよい。この場合は、外部装置500は、画像形成装置100から受信した撮像画像から測色対象パッチCPのRGB値や基準チャート400の各基準パッチのRGB値を求め、得られたRGB値を用いて測色対象パッチCPの測色値を算出する。   In addition, instead of transmitting the RGB value of the color measurement target patch CP and the RGB value of each reference patch of the reference chart 400 from the image forming apparatus 100 to the external apparatus 500, the captured image itself of the imaging unit 200 is transmitted. May be. In this case, the external device 500 obtains the RGB value of the color measurement target patch CP and the RGB value of each reference patch of the reference chart 400 from the captured image received from the image forming apparatus 100, and measures using the obtained RGB value. A colorimetric value of the color target patch CP is calculated.

なお、上述した本実施形態に係る画像形成装置100や測色カメラ20を構成する各部の制御機能は、ハードウェア、または、ソフトウェア、あるいは、両者の複合構成を用いて実現することができる。本実施形態に係る画像形成装置100や測色カメラ20を構成する各部の制御機能をソフトウェアにより実現する場合は、画像形成装置100や測色カメラ20が備えるプロセッサが処理シーケンスを記述したプログラムを実行する。プロセッサにより実行されるプログラムは、例えば、画像形成装置100や測色装置内部のROMなどに予め組み込まれて提供される。また、プロセッサが実行するプログラムを、インストール可能な形式または実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disc)などのコンピュータで読み取り可能な記録媒体に記録されて提供するようにしてもよい。   Note that the control functions of the respective parts constituting the image forming apparatus 100 and the colorimetric camera 20 according to the present embodiment described above can be realized using hardware, software, or a combined configuration of both. When the control function of each unit constituting the image forming apparatus 100 and the colorimetric camera 20 according to the present embodiment is realized by software, the processor included in the image forming apparatus 100 or the colorimetric camera 20 executes a program describing a processing sequence. To do. The program executed by the processor is provided by being incorporated in advance in, for example, the image forming apparatus 100 or a ROM in the color measurement apparatus. In addition, a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, a DVD (Digital Versatile Disc), etc., in which the program executed by the processor is an installable or executable file. It may be recorded and provided.

また、プロセッサにより実行されるプログラムを、インターネットなどのネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また、プロセッサにより実行されるプログラムを、インターネットなどのネットワーク経由で提供または配布するように構成してもよい。   Further, the program executed by the processor may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. The program executed by the processor may be configured to be provided or distributed via a network such as the Internet.

以上、本発明の具体的な実施形態について詳細に説明したが、本発明は上述した実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で様々な変形や変更を加えながら具体化することができる。   Although specific embodiments of the present invention have been described in detail above, the present invention is not limited to the above-described embodiments as they are, and various modifications and changes are made without departing from the scope of the invention in the implementation stage. It can be embodied.

5 キャリッジ
6 記録ヘッド
17 キャリッジ昇降モータ
20 測色カメラ(撮像ユニット、測色装置)
26 センサ部
27 2次元イメージセンサ
30 照明光源
40 光源駆動制御部
31 光路長変更部材
32 ミスト防止ガラス
44 測色演算部
46 距離演算部
47 距離調整部
51 第1ミラー
52 第2ミラー
53 距離測定用照明光源
100 画像形成装置
200 撮像ユニット
500 外部装置
5 Carriage 6 Recording Head 17 Carriage Lifting Motor 20 Colorimetric Camera (Imaging Unit, Colorimetric Device)
26 Sensor unit 27 Two-dimensional image sensor 30 Illumination light source 40 Light source drive control unit 31 Optical path length changing member 32 Mist prevention glass 44 Color measurement calculation unit 46 Distance calculation unit 47 Distance adjustment unit 51 First mirror 52 Second mirror 53 For distance measurement Illumination light source 100 Image forming apparatus 200 Imaging unit 500 External apparatus

特開2012−63270号公報JP 2012-63270 A

Claims (13)

被写体領域を含む所定の撮像対象領域を撮像するセンサ部と、
前記センサ部と前記被写体領域との間に配置されて光を透過する光透過部材と、
前記撮像対象領域を照明するものであって、前記光透過部材を透過し前記被写体領域で正反射しさらに前記光透過部材を透過した正反射光を前記センサ部に入射させる照明光源と、
前記センサ部が出力する撮像画像に含まれる前記正反射光の画像に基づいて、前記センサ部から前記被写体領域までの距離を算出する距離演算部と、
を備えることを特徴とする撮像ユニット。
A sensor unit for imaging a predetermined imaging target area including a subject area;
A light transmitting member that is disposed between the sensor unit and the subject region and transmits light;
An illumination light source that illuminates the imaging target area, and that makes regular reflection light that is transmitted through the light transmission member, specularly reflected by the subject area, and further transmitted through the light transmission member enter the sensor unit;
A distance calculation unit that calculates a distance from the sensor unit to the subject region based on the image of the regular reflection light included in the captured image output by the sensor unit;
An imaging unit comprising:
前記照明光源は、前記被写体領域内の予め定められた範囲外で光が正反射する位置に光を入射させることを特徴とする請求項1に記載の撮像ユニット。   The imaging unit according to claim 1, wherein the illumination light source causes light to be incident on a position where the light is regularly reflected outside a predetermined range in the subject area. 前記距離演算部は、前記距離を基準距離としたときの前記撮像画像における前記正反射光の画像の位置と、前記距離を算出する際の前記撮像画像における前記正反射光の画像の位置とに基づいて、前記距離を算出することを特徴とする請求項1または2に記載の撮像ユニット。   The distance calculation unit includes a position of the regular reflected light image in the captured image when the distance is a reference distance, and a position of the regular reflected light image in the captured image when the distance is calculated. The imaging unit according to claim 1, wherein the distance is calculated based on the distance. 前記距離演算部は、前記距離を基準距離としたときの前記撮像画像における前記正反射光の画像の大きさと、前記距離を算出する際の前記撮像画像における前記正反射光の画像の大きさとに基づいて、前記距離を算出することを特徴とする請求項1または2に記載の撮像ユニット。   The distance calculation unit includes a size of the image of the regular reflection light in the captured image when the distance is set as a reference distance, and a size of the image of the regular reflection light in the captured image at the time of calculating the distance. The imaging unit according to claim 1, wherein the distance is calculated based on the distance. 前記距離演算部による前記距離の算出に際して、被写体の撮像時に前記撮像対象領域を照明する前記照明光源と共通の前記照明光源に、前記撮像対象領域を照明させる光源駆動制御部を備えることを特徴とする請求項1〜4のいずれか1つに記載の撮像ユニット。   When calculating the distance by the distance calculation unit, the light source drive control unit is configured to illuminate the imaging target area to the illumination light source that is common to the illumination light source that illuminates the imaging target area when imaging a subject. The imaging unit according to any one of claims 1 to 4. 前記照明光源として、被写体の撮像時に前記撮像対象領域を照明する光源と、該光源の光を任意の方向に反射して該光の経路を変更するミラーと、を備え、
前記光源駆動制御部は、前記距離演算部による前記距離の算出に際して、前記ミラーにより前記光源からの光の経路を被写体の撮像時とは異なる経路に変更させることを特徴とする請求項5に記載の撮像ユニット。
The illumination light source includes a light source that illuminates the imaging target region when imaging a subject, and a mirror that reflects light of the light source in an arbitrary direction to change the path of the light,
The said light source drive control part changes the path | route of the light from the said light source by the said mirror in the path | route different from the time of imaging | photography of a to-be-photographed object at the time of calculation of the said distance by the said distance calculating part. Imaging unit.
前記照明光源として、被写体の撮像時に前記撮像対象領域を照明する第1光源と、前記距離を算出する際に前記撮像対象領域を照明する第2光源と、を備えることを特徴とする請求項1〜4のいずれか1つに記載の撮像ユニット。   2. The illumination light source comprising: a first light source that illuminates the imaging target area when imaging a subject; and a second light source that illuminates the imaging target area when calculating the distance. The imaging unit according to any one of? 前記距離演算部が算出した前記距離と基準距離との差分に基づき前記距離を調整する距離調整部をさらに備えることを特徴とする請求項1に記載の撮像ユニット。   The imaging unit according to claim 1, further comprising a distance adjustment unit that adjusts the distance based on a difference between the distance calculated by the distance calculation unit and a reference distance. 請求項1〜8のいずれか一項に記載の撮像ユニットと、
前記撮像画像に基づいて、前記被写体領域に含まれる被写体の測色値を算出する測色演算部と、を備えることを特徴とする測色装置。
The imaging unit according to any one of claims 1 to 8,
A colorimetric apparatus comprising: a colorimetric calculation unit that calculates a colorimetric value of a subject included in the subject region based on the captured image.
前記距離演算部が算出した前記距離に基づいて、前記測色値を補正する補正部をさらに備えることを特徴とする請求項9に記載の測色装置。   The colorimetric apparatus according to claim 9, further comprising a correction unit that corrects the colorimetric value based on the distance calculated by the distance calculation unit. 請求項9または10に記載の測色装置と、
画像を形成する画像形成部と、を備え、
前記被写体は、前記画像形成部が形成した画像であることを特徴とする画像形成装置。
A colorimetric device according to claim 9 or 10,
An image forming unit for forming an image,
The image forming apparatus, wherein the subject is an image formed by the image forming unit.
請求項1〜8のいずれか一項に記載の撮像ユニットと、
前記撮像画像に基づいて、前記被写体領域に含まれる被写体の測色値を算出する測色演算部と、を備えることを特徴とする測色システム。
The imaging unit according to any one of claims 1 to 8,
A colorimetric system comprising: a colorimetric calculation unit that calculates a colorimetric value of a subject included in the subject region based on the captured image.
被写体領域を含む所定の撮像対象領域を撮像するセンサ部と、
前記センサ部と前記被写体領域との間に配置されて光を透過する光透過部材と、
前記撮像対象領域を照明するものであって、前記光透過部材を透過し前記被写体領域で正反射しさらに前記光透過部材を透過した正反射光を前記センサ部に入射させる照明光源と、
を備える撮像ユニットにより実行される距離測定方法であって、
前記照明光源により照明された前記撮像対象領域を前記センサ部が撮像する工程と、
前記センサ部が出力する撮像画像に含まれる前記正反射光の画像に基づいて、前記センサ部から前記被写体領域までの距離を算出する工程と、
を含むことを特徴とする距離測定方法。
A sensor unit for imaging a predetermined imaging target area including a subject area;
A light transmitting member that is disposed between the sensor unit and the subject region and transmits light;
An illumination light source that illuminates the imaging target area, and that makes regular reflection light that is transmitted through the light transmission member, specularly reflected by the subject area, and further transmitted through the light transmission member enter the sensor unit;
A distance measurement method executed by an imaging unit comprising:
A step in which the sensor unit images the imaging target area illuminated by the illumination light source;
Calculating a distance from the sensor unit to the subject region based on the image of the specularly reflected light included in the captured image output by the sensor unit;
The distance measuring method characterized by including.
JP2013054444A 2013-03-15 2013-03-15 Imaging unit, color measuring device, image forming apparatus, and color measuring system Expired - Fee Related JP6131649B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013054444A JP6131649B2 (en) 2013-03-15 2013-03-15 Imaging unit, color measuring device, image forming apparatus, and color measuring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013054444A JP6131649B2 (en) 2013-03-15 2013-03-15 Imaging unit, color measuring device, image forming apparatus, and color measuring system

Publications (2)

Publication Number Publication Date
JP2014181909A true JP2014181909A (en) 2014-09-29
JP6131649B2 JP6131649B2 (en) 2017-05-24

Family

ID=51700778

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013054444A Expired - Fee Related JP6131649B2 (en) 2013-03-15 2013-03-15 Imaging unit, color measuring device, image forming apparatus, and color measuring system

Country Status (1)

Country Link
JP (1) JP6131649B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017203653A (en) * 2016-05-10 2017-11-16 株式会社Msテクノロジー Colorimetric device
US10158767B2 (en) 2015-06-09 2018-12-18 Ricoh Company, Ltd. Image capturing apparatus, image forming apparatus, distance measuring method, and computer-readable recording medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000131243A (en) * 1998-10-21 2000-05-12 Omron Corp Reflection type sensor
JP2003191581A (en) * 2001-12-25 2003-07-09 Seiko Epson Corp Printer, method for judging dot formation, computer program, recording medium, and computer system
JP2005291938A (en) * 2004-03-31 2005-10-20 Sunx Ltd Light receiving center detection method, distance measuring apparatus, angle-measuring apparatus and optical measuring apparatus
JP2007093586A (en) * 2005-08-31 2007-04-12 Canon Inc Sensor and recording device using same
JP2008209306A (en) * 2007-02-27 2008-09-11 Nikon Corp Camera
JP2012063270A (en) * 2010-09-16 2012-03-29 Ricoh Co Ltd Imaging device and recording apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000131243A (en) * 1998-10-21 2000-05-12 Omron Corp Reflection type sensor
JP2003191581A (en) * 2001-12-25 2003-07-09 Seiko Epson Corp Printer, method for judging dot formation, computer program, recording medium, and computer system
JP2005291938A (en) * 2004-03-31 2005-10-20 Sunx Ltd Light receiving center detection method, distance measuring apparatus, angle-measuring apparatus and optical measuring apparatus
JP2007093586A (en) * 2005-08-31 2007-04-12 Canon Inc Sensor and recording device using same
JP2008209306A (en) * 2007-02-27 2008-09-11 Nikon Corp Camera
JP2012063270A (en) * 2010-09-16 2012-03-29 Ricoh Co Ltd Imaging device and recording apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10158767B2 (en) 2015-06-09 2018-12-18 Ricoh Company, Ltd. Image capturing apparatus, image forming apparatus, distance measuring method, and computer-readable recording medium
JP2017203653A (en) * 2016-05-10 2017-11-16 株式会社Msテクノロジー Colorimetric device

Also Published As

Publication number Publication date
JP6131649B2 (en) 2017-05-24

Similar Documents

Publication Publication Date Title
JP6111730B2 (en) Color measuring device, image forming apparatus, color measuring system and color measuring method
JP5942534B2 (en) Imaging apparatus, color measuring apparatus, color measuring system, and image forming apparatus
JP6127448B2 (en) Imaging unit, color measuring device, image forming apparatus, and color measuring system
JP5958099B2 (en) Color measuring device, image forming apparatus and program
JP5783194B2 (en) Imaging unit, color measuring device, image forming apparatus, color measuring system, and color measuring method
JP5962239B2 (en) Color measuring device, image forming apparatus and program
JP6424586B2 (en) Image pickup apparatus, medium type determination apparatus, and image forming apparatus
JP5845987B2 (en) Imaging apparatus, imaging system, colorimetric apparatus, colorimetric system, and image forming apparatus
JP6107264B2 (en) Imaging unit, color measuring device, image forming apparatus, color measuring system, and distance measuring method
JP6350158B2 (en) Imaging apparatus, medium type determination apparatus, and image forming apparatus
JP6107167B2 (en) Imaging unit, color measuring device, image forming apparatus, color measuring system, and color measuring method
US9609163B2 (en) Image capturing device, color measurement apparatus, and image forming apparatus
JP6236799B2 (en) Color measuring device, image forming apparatus, color measuring method and program
JP2015133689A (en) Imaging device, image forming apparatus, and drive control method of two-dimensional image sensor
JP6131649B2 (en) Imaging unit, color measuring device, image forming apparatus, and color measuring system
JP6142537B2 (en) Inkjet recording apparatus, color measuring apparatus and color measuring method
JP6048155B2 (en) Color measuring device, image forming apparatus and color measuring system
JP6471436B2 (en) Imaging apparatus, colorimetric apparatus, and image forming apparatus
JP6064345B2 (en) Imaging apparatus, colorimetric apparatus, colorimetric system, and image forming apparatus
JP6852723B2 (en) Imaging unit, color measuring device, image forming device and color measuring system
JP7151110B2 (en) Imaging device, colorimetric device and image forming device
JP2022049509A (en) Color measuring device, recording device, method for measuring color, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160212

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170104

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170306

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170403

R151 Written notification of patent or utility model registration

Ref document number: 6131649

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees